Onrelease gotoandplay PLEASE HELP!

I am new to CS4 and actionscript 3.0. I am developing a flash website for a friend of mine as a favor. Ive been stuck with a small problem for a day and a half already. I am used to the oldschool flash MX 5.0 and actionscript 1.0 where you could simply add an action to a button intself. For instance I used to be able to put this action directly on a button and it would work fine.
on(Release) {
gotoAndPlay(2)
I've been doing a little research and reading about how to do this in CS4 and its something like this.
button1.addEventListener(MouseEvent.CLICK, functionName)
button2.addEventListener(MouseEvent.CLICK, functionName)
button3.addEventListener(MouseEvent.CLICK, functionName)
button4.addEventListener(MouseEvent.CLICK, functionName)
button5.addEventListener(MouseEvent.CLICK, functionName)
button6.addEventListener(MouseEvent.CLICK, functionName)
button7.addEventListener(MouseEvent.CLICK, functionName)
var targetName:String;
function functionName(e:MouseEvent):void
targetFrame = e.currentTarget.name;
gotoAndStop(targetFrame);
I've tried this as well and it doesnt seem to work even after labeling frames and everything. It will work for 1 button and when i click the other buttons, they will all go to the same frame instead of going to the other labeled frames. On top of that its causing my button animations to loop instead of stopping after playing once.
So what I'm asking is for someone to please download my fla file (CS4) at http://upload.frostbytez.com/index.php/files/get/HWf-zEmwhj/roughcopy.fla and put the appropriate actions for just two of the buttons and make them go to say frame 2 for one of them and frame 150 for the other one. After seeing the actions on two of the buttons I will understand better and ill be able to finish up the rest of the buttons. I stripped all the actions and labels off of the fla file before uploading it. The button names are home - about - faq - services - forum - contact and are all located on the last frame on the buttons layer. I'm desperate for some help with this. So please , anyone I'm begging you for a little help to get me through this one problem i ran into. I would genuinely apprechiate any help that anyone can give to me. If anyone could just download my fla and add the correct actions and email it to me at [email protected] or just tell me the exact script i should copy and paste into my action frame where the buttons are i would greatly apprechiate it. Thanks ahead of time.

Here is one way you can do that. Actually there are many more much more efficient ways but that would involve additional coding (here is where class creation/OOP programming come really handy!) but here is what you can do given you are devoted to the timeline:
1. You can rename you frames where buttons clicks will lead and then: home - about - faq - services - forum - contact
2. Give your buttons names that contain frame names:
button1.name = "button_home";
button2.name = "button_about";
button3.name = "button_faq";
button4.name = "button_services";
button5.name = "button_forum";
button6.name = "button_contact";
3. Extract name of the clicked button and reroute to the frame:
function functionName(e:MouseEvent):void
    // split the name according to the convention
    // and then get the second array memeber as the frame
    var frameName:String = e.currentTarget.name.split("_")[1];
    gotoAndStop(frameName);
Using frame numbers is not wise because if you add an extra frame (say, by accident) you code will break and you will have to reconsider your conventions all over again. If you rely on frame names - even if you add frames - code will hold.

Similar Messages

  • PLEASE HELP--gotoandPlay plays through frames I dont want it to.

    Hello--I am an architecture student and I am having problems
    with my Flash website. I have uploaded my half-done website on
    http://ilocker.bsu.edu/users/msgoyak/WORLD_SHARED/
    My animations end on frame 311, where I have five buttons
    linking to different frames (The Resume button links to 312 and the
    About Me button links to 313 using
    on (release) {gotoAndPlay(frame number);
    I also have "back" buttons on 312 and 313 which link back to
    311. All three frames have the stop command applied.
    My problem: Whenever I publish and try to click on Resume or
    About Me, it will only play to 312 due to the stop command, thereby
    not allowing me to get to the About Me frame (313). I have tried
    taking away the stop command but then when I click on the About Me
    button the timeline plays through 312 to get to 313 and you can
    actually see it flash through on-screen. I just want ithese buttons
    to jump to their respective frames and stop, without seeing
    anything in-between or stopping where it shouldn't. Is there a
    specific actions script that needs to be applied or would it be
    easier to create new flash documents for each link?
    Hopefully someone can help m after viewing the website
    itself.
    I have version 7 MX 2004.
    Thank you if you can provide any feedback!!!!!! Hopefully
    this frustration thing can be corrected.

A: PLEASE HELP--gotoandPlay plays through frames I dont want it to.

Use the gotoAndStop(frame number): instead of play.
The playhead will stop on the disignated frame, and you won't
need a stop
action on it.
"[email protected]" <[email protected]> wrote
in message
news:f0b17u$5ot$[email protected]..
> Hello--I am an architecture student and I am having
problems with my Flash
> website. I have uploaded my half-done website on
>
http://ilocker.bsu.edu/users/msgoyak/WORLD_SHARED/
>
> My animations end on frame 311, where I have five
buttons linking to
> different
> frames (The Resume button links to 312 and the About Me
button links to
> 313
> using
> on (release) {gotoAndPlay(frame number);
>
> }
> I also have "back" buttons on 312 and 313 which link
back to 311. All
> three
> frames have the stop command applied.
> My problem: Whenever I publish and try to click on
Resume or About Me, it
> will
> only play to 312 due to the stop command, thereby not
allowing me to get
> to the
> About Me frame (313). I have tried taking away the stop
command but then
> when I
> click on the About Me button the timeline plays through
312 to get to 313
> and
> you can actually see it flash through on-screen. I just
want ithese
> buttons to
> jump to their respective frames and stop, without seeing
anything
> in-between or
> stopping where it shouldn't. Is there a specific actions
script that
> needs to
> be applied or would it be easier to create new flash
documents for each
> link?
>
> Hopefully someone can help m after viewing the website
itself.
> I have version 7 MX 2004.
> Thank you if you can provide any feedback!!!!!!
Hopefully this frustration
> thing can be corrected.
>
>

Use the gotoAndStop(frame number): instead of play.
The playhead will stop on the disignated frame, and you won't
need a stop
action on it.
"[email protected]" <[email protected]> wrote
in message
news:f0b17u$5ot$[email protected]..
> Hello--I am an architecture student and I am having
problems with my Flash
> website. I have uploaded my half-done website on
>
http://ilocker.bsu.edu/users/msgoyak/WORLD_SHARED/
>
> My animations end on frame 311, where I have five
buttons linking to
> different
> frames (The Resume button links to 312 and the About Me
button links to
> 313
> using
> on (release) {gotoAndPlay(frame number);
>
> }
> I also have "back" buttons on 312 and 313 which link
back to 311. All
> three
> frames have the stop command applied.
> My problem: Whenever I publish and try to click on
Resume or About Me, it
> will
> only play to 312 due to the stop command, thereby not
allowing me to get
> to the
> About Me frame (313). I have tried taking away the stop
command but then
> when I
> click on the About Me button the timeline plays through
312 to get to 313
> and
> you can actually see it flash through on-screen. I just
want ithese
> buttons to
> jump to their respective frames and stop, without seeing
anything
> in-between or
> stopping where it shouldn't. Is there a specific actions
script that
> needs to
> be applied or would it be easier to create new flash
documents for each
> link?
>
> Hopefully someone can help m after viewing the website
itself.
> I have version 7 MX 2004.
> Thank you if you can provide any feedback!!!!!!
Hopefully this frustration
> thing can be corrected.
>
>

  • Need help with Flash/PHP online form, please help, URGENT!

    ive made my online form with the scripts shown below, when i
    submit i dont get any errors... but i also dont receive any emails
    from the form, if you can see anything that ive done wrong please
    help me out..
    -------------------------------------------------------PHP
    mailer.php------------------------------------------------------------------
    <?php
    $fname = $_REQUEST["fname"];
    $mail = $_REQUEST["mail"];
    $add1 = $_REQUEST["add1"];
    $add2 = $_REQUEST["add2"];
    $add3 = $_REQUEST["add3"];
    $town = $_REQUEST["town"];
    $county = $_REQUEST["county"];
    $postcode = $_REQUEST["postcode"];
    $telephone = $_REQUEST["telephone"];
    $subject = $_REQUEST["subject"];
    $message = $_REQUEST["message"];
    $full_message = $_SERVER['REMOTE_ADDR'] . "\n\n" . $message;
    $message= $full_message;
    $fname = stripslashes($fname);
    $mail = stripslashes($mail);
    $add1 = stripslashes($add1);
    $add2 = stripslashes($add2);
    $add3 = stripslashes($add3);
    $town = stripslashes($town);
    $county = stripslashes($county);
    $postcode = stripslashes($postcode);
    $telephone = stripslashes($telephone);
    $subject = stripslashes($subject);
    $message = stripslashes($message);
    $subject = "Vision Ten Online Form ". $subject;
    if(isset($fname) and isset($mail) and isset($add1) and
    isset($add2) and isset($add3) and isset($town) and isset($county)
    and isset($postcode) and isset($telephone) and isset($subject) and
    isset($message)){
    mail("[email protected]", $fname, $mail, $add1,
    $add2, $add3, $town, $county, $postcode, $telephone, $subject,
    $message "From: $mail");
    ?>
    -------------------------------------------------------PHP-------------------------------- ----------------------------------
    -----------------------------------------------ACTIONSCRIPT
    for the
    form----------------------------------------------------------
    stop();
    System.useCodepage = true
    this.sent.onRelease = function () {
    my_vars = new LoadVars ();
    my_vars.fname = fname_box.text;
    my_vars.mail = mail_box.text;
    my_vars.add1 = add1_box.text;
    my_vars.add2 = add2_box.text;
    my_vars.add3 = add3_box.text;
    my_vars.town = town_box.text;
    my_vars.county = county_box.text;
    my_vars.postcode = postcode_box.text;
    my_vars.telephone = telephone_box.text;
    my_vars.subject = subject_box.text;
    my_vars.message = message_box.text;
    if (my_vars.fname !="" and my_vars.mail !="" and
    my_vars.add1 !="" and my_vars.town !="" and my_vars.county !="" and
    my_vars.postcode !="" and my_vars.telephone !="" and
    my_vars.subject !="" and my_vars.message !="") {
    my_vars.sendAndLoad("script/mailer.php", my_vars, "POST");
    gotoAndStop(2);
    } else {
    error_clip.gotoAndPlay(2);
    my_vars.onLoad = function (){
    gotoAndPlay(3);
    fname_box.onSetFocus = mail_box.onSetFocus =
    add1_box.onSetFocus = add2_box.onSetFocus = add3_box.onSetFocus =
    town_box.onSetFocus = county_box.onSetFocus =
    postcode_box.onSetFocus = telephone_box.onSetFocus =
    subject_box.onSetFocus = message_box.onSetFocus = function () {
    if (error_clip._currentframe !=1) {
    error_clip.gotoAndPlay(6);
    -----------------------------------------------ACTIONSCRIPT------------------------------- ---------------------------

    that php mail function looks suspect. that should be
    mail(to,subject,message,headers,parameters)

  • Please, help with AS2 / CS3

    In this zip file, I replaced the images, with blank photos, with the image titles, to make it easier to see the problem.
    (download files) http://www.pbsjbuzz.tv/site_flash/site_flash.zip
    (view online) http://www.pbsjbuzz.tv/site_flash
    Thank you !
    Hello, actionscript experts,
    Please, help me, if you have the time. The company that I am doing some flash design work for, bought a template, from templatemonster.com. The template ID that they purchased, is 20643. I usually work more on the design/creative side, but I know a little of simple actionscript. Although, I can not figure out why this is not working, after some simple modifications. I believe that it is an issue with the actionscript, somewhere, in the "pages2/sub_menu2" part or somewhere, in the "pages2/gall_main2" part, in the .fla file. I am 99.99% finished with this site and I would greatly appreciate any of your help, in any way, possible. This site is currently online, for you to view, at your earliest convenience.
    http://www.pbsjbuzz.tv/site_flash
    NOTE: (Additional Information):
    Sorry, about so much info!
    This template originally came with 4 main menus (PORTFOLIO / ABOUT US / OUR NEWS / CONTACT US).
    The PORTFOLIO section has 3 submenu links (INTERIOR / LANDSCAPE / ANIMALS).
    I changed the 3 submenu links from, (INTERIOR / LANDSCAPE / ANIMALS), to (AVIATION / EDUCATION / FEDERAL).
    Those work fine.
    Now, I have added 4 additional submenu links. (LEISURE SERVICES / SUSTAINABLE DESIGN / TRANSIT / ARCHITECTURE ENGINEERING).
    So, I now have a total of 7 links, within the PORTFOLIO section, named (AVIATION / EDUCATION / FEDERAL / LEISURE SERVICES / SUSTAINABLE DESIGN / TRANSIT / ARCHITECTURE ENGINEERING).
    My first 3 links work perfect, but the other (4-7) links are not working, correctly.
    They seem to link to the correct category, but do not load correct image, until you click on a thumbnail, then the big image loads, as it is supposed to do, but the thumbnails still have the wrong images loaded.
    I have checked every word for word of the actionscript, but I still can not figure this out.
    I believe that this is a simple solution, surely consisting of only 1 letter, word or sentence of code being wrong, somewhere, in the actionscript, within the flash (fla) file. I have the files, available to download, if anyone willing to help me needs them.
    Thank you, for all of your help.
    <!--
    My friend looked over the files and sent me this:
    _parent["item"+_root.main_gall_num].gotoAndPlay("s2");
    _root.main_gall_num = num;
    _parent.gall.play();
    Where are those "item1", "item2", defined?
    The functionality of the submenu is fine, but it seems the elements are missing. I tried changing a different "num", and it loaded that
    so i guess you are missing the element on the parent symbol.
    -->
    In the main .fla file, this actionscript, is on the first frame:
    Stage.align = "MC";
    Stage.scaleMode = "noScale";
    url = "tfile";
    _root.cacheKiller="true";
    import gs.dataTransfer.XMLParser;
    function onFinish(success_boolean, results_obj, xml) { //This fhunction gets called as soon as the XML loads and gets parsed.
    if (success_boolean) {
    //trace (1);
    play();
    stop();
    var parsed_obj = {}; //We'll use this to hold the parsed xml object (once the XML loads and gets parsed successfully).
    var unCash= new Date().getTime();
    if (_root.cacheKiller=="true") {
    fileToLoad=url+"_main.xml?cacheKiller="+unCash;
    fileToLoad=url+"_main.xml";
    else {
    fileToLoad=url+"_main.xml";
    XMLParser.load(fileToLoad, onFinish, parsed_obj);
    _root.emp.useHandCursor = 0;
    ///forplayer
    _root.mus = 1;
    _root.n = 1;
    _root.num = 1;
    In the main .fla file, this actionscript, is on the second frame:
    import gs.dataTransfer.XMLParser;
    function onFinish(success_boolean, gallery_obj, xml) { //This fhunction gets called as soon as the XML loads and gets parsed.
    if (success_boolean) {
    play();
    //system settings
    // frame number where readMore movieClip is situated   
    pagesReadMoreFrame=5;
    // frame number of the first content page
    firstPageFrame=1;
    //system settings
    #include "gs/dataTransfer/xmlFunctions.as"
    //_root.link=_root.getMenuSystemOrder(0);
    In the main .fla file, this actionscript, is on the third frame:
    import mx.transitions.Tween;
    import mx.transitions.easing.*;
    function pic_movs(my_x) {
    var name1:MovieClip = _root.pages.gall.gall.thumbs;
    myTween = new Tween(name1, "_x", Strong.easeInOut, name1._x, my_x, 25, false);
    When the "PORTFOLIO" page loads, this actionscript, is on the first frame:
    _root.main_gall_num=1;
    _root.gall_num=1;
    item1.gotoAndStop(15);
    Each "sub_menu" link (AVIATION / EDUCATION / FEDERAL / LEISURE SERVICES / SUSTAINABLE DESIGN / TRANSIT / ARCHITECTURE ENGINEERING), has this actionscript, on each link, the only difference is the num = 1 (AVIATION), has num = 2 (EDUCATION), num = 3 (FEDERAL), etc, etc, through num = 7, for (ARCHITECTURE ENGINEERING):
    onClipEvent (load) {
    num = 1;
    this.title1.gotoAndStop(num);
    this.title2.gotoAndStop(num);
    on (rollOver) {
    if (_root.main_gall_num<>num) {
    this.gotoAndPlay("s1");
    on (releaseOutside, rollOut) {
    if (_root.main_gall_num<>num) {
    this.gotoAndPlay(_totalframes-_currentframe);
    on (release) {
    if (_root.main_gall_num<>num and _root.gall_animation == 1) {
    _root.gall_animation = 0;
    _parent["item"+_root.main_gall_num].gotoAndPlay("s2");
    _root.main_gall_num = num;
    _parent.gall.play();
    In the section where the photos load, each frame has a different category of photos that loads on that frame.
    The actionscript, on frame 1, is:
    _root.gall_num=1;
    Then, frame 2 has:
    _root.gall_num=2;
    frame 3 has:
    _root.gall_num=3;
    frame 4 has:
    _root.gall_num=4;
    frame 5 has:
    _root.gall_num=5;
    frame 6 has:
    _root.gall_num=6;
    frame 7 has:
    _root.gall_num=7;
    I added all of the extra images, to the xml file.
    The original xml file came with only 3 categories, of images (12 small and 12 big, in each category).

    did u try something like that :
    for (var iii:uint=1; iii<5; iii++) {
    root["item"+iii].addEventListener(Event.ENTER_FRAME,
    mover1);
    root["item"+iii].addEventListener(MouseEvent.ROLL_OUT,
    itemOut1);
    root["item"+iii].addEventListener(MouseEvent.ROLL_OVER,
    itemOver1);
    root["item"+iii].buttonMode=true;
    }

  • :::Flash Debugging Please Help:::

    Hello all,
    I've just finished a website and there is a bug and I've
    been having the most trouble figuring out. Go to
    www.chameleonworldwide.com/CCD.swf . Click on the mainsite button,
    and it will take you to a random part of my intro, I used the code
    on(release){
    gotoAndPlay("main", 1);
    and if it actually did that we would be fine, however, what
    you see when you click the button is not in the "main" movie scene
    at all. Its in the "intro" scene. I can't figure how I would change
    this code, because I've typed in exactly what I wanted to do.
    Please Help! My site cannot officially lauch until I fix
    this.

    D. Porter wrote:
    > Hello all,
    > I've just finished a website and there is a bug and I've
    been having
    > the most trouble figuring out. Go to
    www.chameleonworldwide.com/CCD.swf . Click
    the button does not work here at all... tho running SWF
    directly w/o html
    might have such effects. So can't even test it, sorry.
    Regards
    Urami
    Happy New Year guys - all the best there is in the 2006 :)
    <urami>
    http://www.Flashfugitive.com
    </urami>
    <web junk free>
    http://www.firefox.com
    </web junk free>

  • Flash 8 preloader problems PLEASE HELP

    Hello;
    I have read all the questions about preloaders out here with
    no solutions for this project. I am trying to use 2 scenes.
    I have a preloader on the first scene, there is a TV with the
    dynamic text in it and I am using static text as the "offPreloader"
    the dynamic text is called "preload_txt" using 3 layers. I put this
    code in the first frame with the dynamic text:
    stop();
    this.onEnterFrame = function () {
    bl = this.getBytesLoaded();
    bt = this.getBytesTotal();
    if (bt <= 0) {bt = 99;}
    offPreloader.gotoAndStop(Math.floor((bl / bt) * 100));
    preload_txt.text = Math.round((bl / bt) * 100) + " %";
    if ((bl == bt) && (bt > 0)) {
    delete this.onEnterFrame;
    gotoAndPlay (3);
    My second scene is the same TV with a streamed .flv file, but
    the preloader just hangs up at 100% and does nothing. What am I
    doing wrong? Should it all be in one sceen? make my 100 frames as a
    preloader then have the video after that at like frame 101? or
    should this code be preloading the movie? I am using flash 8 pro.
    Like I said, I read all the preloader questions out here and
    none of them deal with video. Can someone please help me out.
    Thank you.

    nooo I did not say or suggest they they will work, or easy or with OEM DVD.
    But if you are going to use 8 go ahead but plan to redo (unlikely to be an upgrade install).
    You still have to look around and see what others have managed to do with some not working drivers.

  • Please help with simple Drag N Drop

    I’m desperate and need some help with this simple drag
    and drop. Here is the scenario…this animation is for a
    kindergarten course. I have 6 different colored teddy bears on the
    floor and the bears are to be placed on the middle shelf in the
    room, in no particular order. I have the code in place to drag the
    bears, and they return to their original location if dropped in the
    wrong area. Everything works, except I can’t make the bears
    stick to the target area. The target area has to be the same for
    all 6 bears. Can someone help me out with this?
    I have a feeling that the problem has something to do with my
    instance names, but I have tried everything I can think of and
    cannot get it to work. Is there some way I can post, send, or
    attach my .fla file for someone to look at? I’m desperate.
    PLEASE HELP!

    var startX3:Number;
    var startY3:Number;
    var counter3:Number=0;
    vf_A.addEventListener(MouseEvent.MOUSE_DOWN, pickUp3);
    vf_A.addEventListener(MouseEvent.MOUSE_UP, dropIt3);
    vf_E.addEventListener(MouseEvent.MOUSE_DOWN, pickUp3);
    vf_E.addEventListener(MouseEvent.MOUSE_UP, dropIt3);
    vf_I.addEventListener(MouseEvent.MOUSE_DOWN, pickUp3);
    vf_I.addEventListener(MouseEvent.MOUSE_UP, dropIt3);
    vf_O.addEventListener(MouseEvent.MOUSE_DOWN, pickUp3);
    vf_O.addEventListener(MouseEvent.MOUSE_UP, dropIt3);
    vf_U.addEventListener(MouseEvent.MOUSE_DOWN, pickUp3);
    vf_U.addEventListener(MouseEvent.MOUSE_UP, dropIt3);
    function pickUp3(event:MouseEvent):void {
    event.target.startDrag(true);
    reply2_txt.text="";
    event.target.parent.addChild(event.target);
    startX2=event.target.x;
    startY2=event.target.y;
    function dropIt3(event:MouseEvent):void {
    event.target.stopDrag();
    var myTargetName:String="target"+event.target.name;
    var myTarget:DisplayObject=getChildByName(myTargetName);
    if (event.target.dropTarget != null &&
    event.target.dropTarget.name == "instance112") {
    reply2_txt.text="Good Job!";
    event.target.removeEventListener(MouseEvent.MOUSE_DOWN,
    pickUp3);
    event.target.removeEventListener(MouseEvent.MOUSE_UP,
    dropIt3);
    event.target.buttonMode=false;
    event.target.x=myTarget.x;
    event.target.y=myTarget.y;
    var mySound:Sound = new vowels_NAR_goodjob();
    mySound.play();
    counter3++;
    } else {
    reply2_txt.text="Try Again!";
    event.target.x=startX2;
    event.target.y=startY2;
    var mySound2:Sound = new vowel_NAR_nopetryagain();
    mySound2.play();
    if (counter2==5) {
    reply2_txt.text="Great Job! You did it!";
    gotoAndPlay(3300);
    vf_A.buttonMode=true;
    vf_E.buttonMode=true;
    vf_I.buttonMode=true;
    vf_O.buttonMode=true;
    vf_U.buttonMode=true;

  • Please help me, turning insane!

    So for three days this has been annoying me, and now I'm
    close to turning insane. I've gone through code by code, tutorial
    by tutorial and post by post, but it doesnt seem to work!
    Please help me, and tell me why this isn't working!

    Firstly you have a typo in the php....
    $xml_file=fopen("xmlData.xml,"w");
    should be
    $xml_file=fopen("xmlData.xml","w");
    I have changed it a little to use loadVars to load and send
    the variables.
    actionscript:
    writeXml=new LoadVars();
    writtenXml=new LoadVars;
    submit_button.onRelease = function() {
    if (heading_text.text == ""){
    status_text.text = "Please enter a heading";
    } else if (date_text.text == "") {
    status_text.text = "Please enter a date";
    } else if (main_text.text == "") {
    status_text.text = "Please enter the main news";
    else {
    writeXml.heading=heading_text.text;
    writeXml.date=date_text.text;
    writeXml.main= main_text.text;
    writeXml.sendAndLoad("xmlwrite.php", writtenXml, "POST");
    status_text.text = "Your message is being processed. Please
    hold on.";
    writtenXml.onLoad=function(){
    status_text.text = "Your message has been processed."; }
    your Php,
    <?
    $heading=$_POST['heading'];
    $date=$_POST['date'];
    $main=$_POST['main'];
    $xml_file=fopen("xmlData.xml","w");
    $write_data="<br/><heading>$heading</heading><br/><date>$date</date><br/><main>$main</main >";
    fwrite($xml_file, $write_data);
    fclose($xml_file);
    ?>
    Hope this helps. J

  • Please help on the Loader.content to movieclip

    Hello there,
    I have been search around and got some mixed solutions,
    summarized as follow:
    If I need to load external swf into the main swf file, I need
    to Loader with appropriate URLRequest for this purpose.
    After loaded, you can listen to the complete event and
    addChild the loader.content to the main swf.
    Because I have a stop on the loaded swf first frame, I need
    to start the swf with a button. Some solutions on the net pointed
    that to make this happened, you need to cast the loader.content to
    MovieClip and have to through a tricky way to accomplish it like
    var movie:*=loader.content ;
    var clip:MovieClip=movie;
    clip.gotoAndPlay(4);
    I tried this method and still got Type Coercion failed
    ::cannot convert flash.display to MovieClip
    Please help, don't know why some experts said it is working
    while I can not get it to work. Thanks in advance

    Thanks WL, you are very close. I have a flash8 movie (purely
    animation)
    and I actually opened it in CS3 and saved as CS3. after
    publishing that's the movie I am tring to load.
    I recreate the whole animation in CS3 and everything start to
    run as supposed to. By trace the loader.content I find out one is
    [object AVM1Movie] for sudo as2 movie and [object MainTimeline] for
    the pure as3 movie. Thanks again.

  • Please help me, HSC major project, urgent

    Hi,
    I am doing an interactive storybook for a HSC project. I am trying to code for it and it is telling me two error messages. These are 1120: Access of undefined property. I tried to insert a screenshot but it wont let me in this question. Maybe I message individual people the screenshot ?
    How do I fix this error message ?
    here is my code:
    stop();
    Page1_btn.addEventListener(MouseEvent.CLICK,turnpage2);
    function turnpage1 (evt:MouseEvent):void {
      screen_mov.gotoAndPlay ("Page2");
      page1_btn.visible = false;
    So the pages are numbered starting at 1, 2,3 3, 4, 5, ..............................
    Screen_mov is the movie clip for the project containing all the pages/ graphics
    and page1_btn is the button for page 1
    PLEASE HELP THIS IS URGENT !

    Hi,
    I am having further troubles. In my storybook on the first page all the buttons are appearing, I do not want this. How do I code to fix that, the only button I want on the first page is "page1_btn"
    will paste my coding into here, and could you please tell me what to do to fix this ?
    page2_btn.visible= false;
    p3_first_btn.visible= false;
    page1_btn.addEventListener(MouseEvent.CLICK,turnpage2);
    function turnpage2 (evt:MouseEvent):void {
      screen_movie.gotoAndPlay ("page2");
      page1_btn.visible = false;
    page2_btn.visible= true; 
    page2_btn.addEventListener(MouseEvent.CLICK,turnpage3);
    function turnpage3 (evt:MouseEvent):void {
    screen_movie.gotoAndPlay ("page3");
    page2_btn.visible= false;
    p3_first_btn.visible= true;
    p3_first_btn.addEventListener(MouseEvent.CLICK,turnpage3a);
    function turnpage3a (evt:MouseEvent):void {
    screen_movie.gotoAndPlay ("page3a");
    p3_first_btn.visible= false;
    And, also the reason why I am setting the buttons to visible= true; at the start and visible= false; at the end is because I can only have one button for each page.
    Please help someone,
    Regards,
    Adam

  • Problem with threads and simulation: please help

    please help me figure this out..
    i have something like this:
    import java.awt.*;
    import java.awt.event.*;
    import javax.swing.*;
    public class DrawShapes extends JApplet{
         private JButton choices[];
         private String names[]={"line", "square", "oval"};
         private JPanel buttonPanel;
         private DrawPanel drawingArea;
         private int width=300, height=200;
         public void init(){
              drawingArea=new DrawPanel(width, height);
              choices=new JButton[names.length];
              buttonPanel=new JPanel();
              buttonPanel.setLayout(new GridLayout(1, choices.length));
              ButtonHandler handler=new ButtonHandler();
              for(int i=0; i<choices.length; i++){
                   choices=new JButton(names[i]);
                   buttonPanel.add(choices[i]);
                   choices[i].addActionListener(handler);
              Container c=getContentPane();
              c.add(buttonPanel, BorderLayout.NORTH);
              c.add(drawingArea, BorderLayout.CENTER);
         }//end init
         public void setWidth(int w){
              width=(w>=0 ? w : 300);
         public void setHeight(int h){
              height=(h>=0 ? h : 200);
         /*public static void main(String args[]){
              int width, height;
              if(args.length!=2){
                   height=200; width=300;
              else{
                        width=Integer.parseInt(args[0]);
                        height=Integer.parseInt(args[1]);
              JFrame appWindow=new JFrame("An applet running as an application");
              appWindow.addWindowListener(
                   new WindowAdapter(){
                        public void windowClosing(WindowEvent e){
                             System.exit(0);
              DrawShapes appObj=new DrawShapes();
              appObj.setWidth(width);
              appObj.setHeight(height);
              appObj.init();          
              appObj.start();
              appWindow.getContentPane().add(appObj);
              appWindow.setSize(width, height);
              appWindow.show();
         }//end main*/
         private class ButtonHandler implements ActionListener{
              public void actionPerformed(ActionEvent e){
                   for(int i=0; i<choices.length; i++){
                        if(e.getSource()==choices[i]){
                             drawingArea.setCurrentChoice(i);
                             break;
    }//end class DrawShapes
    class DrawPanel extends JPanel{
         private int currentChoice=-1;
         private int width=100, height=100;
         public DrawPanel(int w, int h){
              width=(w>=0 ? w : 100);
              height=(h>=0 ? h : 100);
         public void paintComponent(Graphics g){
              super.paintComponent(g);
              switch(currentChoice){
                   case 0:     g.drawLine(randomX(), randomY(), randomX(), randomY());
                             break;
                   case 1: g.drawRect(randomX(), randomY(), randomX(), randomY());
                             break;
                   case 2: g.drawOval(randomX(), randomY(), randomX(), randomY());
                             break;
         public void setCurrentChoice(int c){
              currentChoice=c;
              repaint();          
         private int randomX(){
              return (int) (Math.random()*width);
         private int randomY(){
              return (int) (Math.random()*height);
    }//end class drawPanel
    That one's from a book. I used that code to start with my applet. Mine calls different merthod from the switch cases. Say I have:
    case 0: drawStart(g); break;
    public void drawStart(Graphics g){
      /* something here */
    drawMain(g);
    public void drawMain(graphics g){
    g.drawString("test", x, y);
    //here's where i'm trying to pause
    //i've tried placing Thread.sleep between these lines
    g.drawLine(x, y, a, b);
    //Thread.sleep here
    g.drawRect(x, y, 50, 70);
    }I also need to put delays between method calls but I need to synchronize them. Am I doing it all wrong? The application pauses or sleeps but afterwards, it still drew everything all at once. Thanks a lot!

    It is. Sorry about that. Just answer any if you want to. I'd appreciate your help. Sorry again if it caused you anything or whatever. .n_n.

  • Apple Mini DVI to Video Adapter is not working. Please Help...

    I bought an Apple Mini DVI to Video Adapter to connect my Macbook to a TV using normal video cable. When I connect the cable, my Laptop DIsplay gives a flickr once and then it shows nothing. I checked Display in the system preference where I don't get a secondary monitor option. My TV is panasonic and it's an old one. I work on Final Cut Pro and it's very very important to see my videos on a TV. What am I doing wrong with the connection? Anyone Please Please help...

    Your probably not doing anything wrong. There are thousands of users with Similar issues and it seems to be with many different adapters.
    We have Mini DP to VGA (3 different brands) and they all fail most of the time. This seems more prevalent with LCD Projectors. I've tested some (50+) with VGA Monitor (HP) and they all worked, LCD Projector (Epson, Hitachi, and Sanyo) and they all fail, DLP Projector (Sanyo) and one worked.
    My Apple Mini DP to DVi works most of the time. My Mini DP to HDMI (Generic non Apple) works every time.
    The general consensus is that Apple broke something in the OS around 10.6.4 or 10.6.5 and its not yet fixed. As we are a school we have logged a case with the EDU Support group so will see what happens.
    Dicko

  • PSE icons instead of the photo. I need to view photos at a glance. Please help me????

    Please help, this is driving me crazy.  I have downloaded my free PSE #9, it came with my Leica Camera.  I cannot view at a glance any of my photos.  There is only an icon that reads, PSE.  To view any of my photos, I must click select and then preview.  This gets old, and I am doing 4 times the work. I am having to use the dates to guess where my photos might be.  I hate this!  My old Photo Shop #5 didn't do this.  When you went to my pictures, you could see every photo.
    I have tried the right click and open as any program.  What ever program I choose, that is the icon that appears.  No photo. Still no good.
    Please help.
    Thanking anyone in advance,
    Leica

    Hi,
    Are you using Windows Explorer to view the files?
    If so, load Explorer, go to the Tools menu and select Folder Options.
    Click on the View tab and make sure the first option (Always show icons, never thumbnails) is not checked.
    Click on OK and see if that is any better.
    Brian

  • Error Log during logon of RAR 5.3 Portal - please help

    Hi Experts,
    We are unable to login into the CC portal [GRC RAR 5.3]. The login screen is appearing again and again without logging into the CC portal
    Below is the log file which we are getting and we understand that the product is not responding properly to the application
    Can somebody please help us in resolving this at the earliest
    Thanks in Advance
    Best Regagards,
    Srihari.K
    Date : 12/05/2008
    Time : 2:38:16:008
    Message : Exception of type com.sap.sql.log.OpenSQLException caught: Cannot assign NULL to host variable 1. setNull() can only be used in INSERT and UPDATE statements. The statement is "SELECT MIN("YEARMONTH") "YEARMONTH",MIN("VIOLTYPE") "VIOLTYPE",MIN("VSYSKEY") "VSYSKEY",MIN("ANLTYPE") "ANLTYPE",MIN("USERGROUP") "USERGROUP",SUM("TOTCOUNT") "TOTCOUNT",SUM("RISKLOW") "RISKLOW",SUM("RISKMED") "RISKMED",SUM("RISKHIGH") "RISKHIGH",SUM("RISKCRT") "RISKCRT",SUM("URNONE") "URNONE",SUM("URLOW") "URLOW",SUM("URMED") "URMED",SUM("URHIGH") "URHIGH",SUM("URCRT") "URCRT",SUM("URMIT") "URMIT",MAX("TOTCRTCD") "TOTCRTCD",SUM("CRTCD") "CRTCD",MAX("TOTCRROLE") "TOTCRROLE",SUM("CRROLE") "CRROLE",SUM("TOTUSER") "TOTUSER",MIN("RUNDATE") "RUNDATE" FROM "VIRSA_CC_MGMTTOT" WHERE "YEARMONTH" = ? AND "VIOLTYPE" = ? AND "VSYSKEY" LIKE ? AND "ANLTYPE" = ? AND "USERGROUP" LIKE ?"..
    [EXCEPTION]
    com.sap.sql.log.OpenSQLException: Cannot assign NULL to host variable 1. setNull() can only be used in INSERT and UPDATE statements. The statement is "SELECT MIN("YEARMONTH") "YEARMONTH",MIN("VIOLTYPE") "VIOLTYPE",MIN("VSYSKEY") "VSYSKEY",MIN("ANLTYPE") "ANLTYPE",MIN("USERGROUP") "USERGROUP",SUM("TOTCOUNT") "TOTCOUNT",SUM("RISKLOW") "RISKLOW",SUM("RISKMED") "RISKMED",SUM("RISKHIGH") "RISKHIGH",SUM("RISKCRT") "RISKCRT",SUM("URNONE") "URNONE",SUM("URLOW") "URLOW",SUM("URMED") "URMED",SUM("URHIGH") "URHIGH",SUM("URCRT") "URCRT",SUM("URMIT") "URMIT",MAX("TOTCRTCD") "TOTCRTCD",SUM("CRTCD") "CRTCD",MAX("TOTCRROLE") "TOTCRROLE",SUM("CRROLE") "CRROLE",SUM("TOTUSER") "TOTUSER",MIN("RUNDATE") "RUNDATE" FROM "VIRSA_CC_MGMTTOT" WHERE "YEARMONTH" = ? AND "VIOLTYPE" = ? AND "VSYSKEY" LIKE ? AND "ANLTYPE" = ? AND "USERGROUP" LIKE ?".
         at com.sap.sql.log.Syslog.createAndLogOpenSQLException(Syslog.java:85)
         at com.sap.sql.log.Syslog.createAndLogOpenSQLException(Syslog.java:124)
         at com.sap.sql.jdbc.common.CommonPreparedStatement.setNull(CommonPreparedStatement.java:303)
         at com.sap.sql.jdbc.common.CommonPreparedStatement.setString(CommonPreparedStatement.java:509)
         at com.sap.sql.sqlj.runtime.profile.ref.RTStatementJDBCPrepared.setString(RTStatementJDBCPrepared.java:359)
         at com.virsa.cc.xsys.mgmreport.dao.sqlj.MGMTotalDAO.getResult(MGMTotalDAO.sqlj:63)
         at com.virsa.cc.ui.RARiskVGraph.refreshData(RARiskVGraph.java:476)
         at com.virsa.cc.ui.RARiskVGraph.wdDoInit(RARiskVGraph.java:130)
         at com.virsa.cc.ui.wdp.InternalRARiskVGraph.wdDoInit(InternalRARiskVGraph.java:191)
         at com.sap.tc.webdynpro.progmodel.generation.DelegatingView.doInit(DelegatingView.java:61)
         at com.sap.tc.webdynpro.progmodel.controller.Controller.initController(Controller.java:215)
         at com.sap.tc.webdynpro.progmodel.view.View.initController(View.java:445)
         at com.sap.tc.webdynpro.progmodel.controller.Controller.init(Controller.java:200)
         at com.sap.tc.webdynpro.progmodel.view.ViewManager.getView(ViewManager.java:709)
         at com.sap.tc.webdynpro.progmodel.view.ViewManager.bind(ViewManager.java:555)
         at com.sap.tc.webdynpro.progmodel.view.ViewManager.getView(ViewManager.java:724)
         at com.sap.tc.webdynpro.progmodel.view.ViewManager.bindRoot(ViewManager.java:579)
         at com.sap.tc.webdynpro.progmodel.view.ViewManager.init(ViewManager.java:155)
         at com.sap.tc.webdynpro.progmodel.view.InterfaceView.initController(InterfaceView.java:43)
         at com.sap.tc.webdynpro.progmodel.controller.Controller.init(Controller.java:200)
         at com.sap.tc.webdynpro.progmodel.view.ViewManager.getView(ViewManager.java:709)
         at com.sap.tc.webdynpro.progmodel.view.ViewManager.bind(ViewManager.java:555)
         at com.sap.tc.webdynpro.progmodel.view.ViewManager.getView(ViewManager.java:724)
         at com.sap.tc.webdynpro.progmodel.view.ViewManager.bind(ViewManager.java:555)
         at com.sap.tc.webdynpro.progmodel.view.ViewManager.getView(ViewManager.java:724)
         at com.sap.tc.webdynpro.progmodel.view.ViewManager.bind(ViewManager.java:555)
         at com.sap.tc.webdynpro.progmodel.view.ViewManager.getView(ViewManager.java:724)
         at com.sap.tc.webdynpro.progmodel.view.ViewManager.bindRoot(ViewManager.java:579)
         at com.sap.tc.webdynpro.progmodel.view.ViewManager.init(ViewManager.java:155)
         at com.sap.tc.webdynpro.clientserver.window.WebDynproWindow.doOpen(WebDynproWindow.java:295)
         at com.sap.tc.webdynpro.clientserver.window.ApplicationWindow.show(ApplicationWindow.java:183)
         at com.sap.tc.webdynpro.clientserver.window.ApplicationWindow.open(ApplicationWindow.java:178)
         at com.sap.tc.webdynpro.clientserver.cal.ClientApplication.init(ClientApplication.java:364)
         at com.sap.tc.webdynpro.clientserver.session.ApplicationSession.initApplication(ApplicationSession.java:754)
         at com.sap.tc.webdynpro.clientserver.session.ApplicationSession.doProcessing(ApplicationSession.java:289)
         at com.sap.tc.webdynpro.clientserver.session.ClientSession.doApplicationProcessingStandalone(ClientSession.java:713)
         at com.sap.tc.webdynpro.clientserver.session.ClientSession.doApplicationProcessing(ClientSession.java:666)
         at com.sap.tc.webdynpro.clientserver.session.ClientSession.doProcessing(ClientSession.java:250)
         at com.sap.tc.webdynpro.clientserver.session.RequestManager.doProcessing(RequestManager.java:149)
         at com.sap.tc.webdynpro.serverimpl.defaultimpl.DispatcherServlet.doContent(DispatcherServlet.java:62)
         at com.sap.tc.webdynpro.serverimpl.defaultimpl.DispatcherServlet.doGet(DispatcherServlet.java:46)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
         at com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl.runServlet(HttpHandlerImpl.java:401)
         at com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl.handleRequest(HttpHandlerImpl.java:266)
         at com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java:386)
         at com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java:364)
         at com.sap.engine.services.httpserver.server.RequestAnalizer.invokeWebContainer(RequestAnalizer.java:1039)
         at com.sap.engine.services.httpserver.server.RequestAnalizer.handle(RequestAnalizer.java:265)
         at com.sap.engine.services.httpserver.server.Client.handle(Client.java:95)
         at com.sap.engine.services.httpserver.server.Processor.request(Processor.java:175)
         at com.sap.engine.core.service630.context.cluster.session.ApplicationSessionMessageListener.process(ApplicationSessionMessageListener.java:33)
         at com.sap.engine.core.cluster.impl6.session.MessageRunner.run(MessageRunner.java:41)
         at com.sap.engine.core.thread.impl3.ActionObject.run(ActionObject.java:37)
         at java.security.AccessController.doPrivileged(Native Method)
         at com.sap.engine.core.thread.impl3.SingleThread.execute(SingleThread.java:102)
         at com.sap.engine.core.thread.impl3.SingleThread.run(SingleThread.java:172)
    Severity : Error
    Category : /System/Database/sql/jdbc/common
    Location : com.sap.sql.jdbc.common.CommonPreparedStatement
    Application : sap.com/tcwddispwda
    Thread : SAPEngine_Application_Thread[impl:3]_32
    Datasource : 1666450:/apps/usr/sap/HLG/JC00/j2ee/cluster/server0/log/defaultTrace.trc
    Message ID : 0003BAF96A51006E0000001F0000265200045D4A46588084
    Source Name : com.sap.sql.jdbc.common.CommonPreparedStatement
    Argument Objs : com.sap.sql.log.OpenSQLException,Cannot assign NULL to host variable 1. setNull() can only be used in INSERT and UPDATE statements. The statement is "SELECT MIN("YEARMONTH") "YEARMONTH",MIN("VIOLTYPE") "VIOLTYPE",MIN("VSYSKEY") "VSYSKEY",MIN("ANLTYPE") "ANLTYPE",MIN("USERGROUP") "USERGROUP",SUM("TOTCOUNT") "TOTCOUNT",SUM("RISKLOW") "RISKLOW",SUM("RISKMED") "RISKMED",SUM("RISKHIGH") "RISKHIGH",SUM("RISKCRT") "RISKCRT",SUM("URNONE") "URNONE",SUM("URLOW") "URLOW",SUM("URMED") "URMED",SUM("URHIGH") "URHIGH",SUM("URCRT") "URCRT",SUM("URMIT") "URMIT",MAX("TOTCRTCD") "TOTCRTCD",SUM("CRTCD") "CRTCD",MAX("TOTCRROLE") "TOTCRROLE",SUM("CRROLE") "CRROLE",SUM("TOTUSER") "TOTUSER",MIN("RUNDATE") "RUNDATE" FROM "VIRSA_CC_MGMTTOT" WHERE "YEARMONTH" = ? AND "VIOLTYPE" = ? AND "VSYSKEY" LIKE ? AND "ANLTYPE" = ? AND "USERGROUP" LIKE ?".,com.sap.sql.log.OpenSQLException: Cannot assign NULL to host variable 1. setNull() can only be used in INSERT and UPDATE statements. The statement is "SELECT MIN("YEARMONTH") "YEARMONTH",MIN("VIOLTYPE") "VIOLTYPE",MIN("VSYSKEY") "VSYSKEY",MIN("ANLTYPE") "ANLTYPE",MIN("USERGROUP") "USERGROUP",SUM("TOTCOUNT") "TOTCOUNT",SUM("RISKLOW") "RISKLOW",SUM("RISKMED") "RISKMED",SUM("RISKHIGH") "RISKHIGH",SUM("RISKCRT") "RISKCRT",SUM("URNONE") "URNONE",SUM("URLOW") "URLOW",SUM("URMED") "URMED",SUM("URHIGH") "URHIGH",SUM("URCRT") "URCRT",SUM("URMIT") "URMIT",MAX("TOTCRTCD") "TOTCRTCD",SUM("CRTCD") "CRTCD",MAX("TOTCRROLE") "TOTCRROLE",SUM("CRROLE") "CRROLE",SUM("TOTUSER") "TOTUSER",MIN("RUNDATE") "RUNDATE" FROM "VIRSA_CC_MGMTTOT" WHERE "YEARMONTH" = ? AND "VIOLTYPE" = ? AND "VSYSKEY" LIKE ? AND "ANLTYPE" = ? AND "USERGROUP" LIKE ?".
         at com.sap.sql.log.Syslog.createAndLogOpenSQLException(Syslog.java:85)
         at com.sap.sql.log.Syslog.createAndLogOpenSQLException(Syslog.java:124)
         at com.sap.sql.jdbc.common.CommonPreparedStatement.setNull(CommonPreparedStatement.java:303)
         at com.sap.sql.jdbc.common.CommonPreparedStatement.setString(CommonPreparedStatement.java:509)
         at com.sap.sql.sqlj.runtime.profile.ref.RTStatementJDBCPrepared.setString(RTStatementJDBCPrepared.java:359)
         at com.virsa.cc.xsys.mgmreport.dao.sqlj.MGMTotalDAO.getResult(MGMTotalDAO.sqlj:63)
         at com.virsa.cc.ui.RARiskVGraph.refreshData(RARiskVGraph.java:476)
         at com.virsa.cc.ui.RARiskVGraph.wdDoInit(RARiskVGraph.java:130)
         at com.virsa.cc.ui.wdp.InternalRARiskVGraph.wdDoInit(InternalRARiskVGraph.java:191)
         at com.sap.tc.webdynpro.progmodel.generation.DelegatingView.doInit(DelegatingView.java:61)
         at com.sap.tc.webdynpro.progmodel.controller.Controller.initController(Controller.java:215)
         at com.sap.tc.webdynpro.progmodel.view.View.initController(View.java:445)
         at com.sap.tc.webdynpro.progmodel.controller.Controller.init(Controller.java:200)
         at com.sap.tc.webdynpro.progmodel.view.ViewManager.getView(ViewManager.java:709)
         at com.sap.tc.webdynpro.progmodel.view.ViewManager.bind(ViewManager.java:555)
         at com.sap.tc.webdynpro.progmodel.view.ViewManager.getView(ViewManager.java:724)
         at com.sap.tc.webdynpro.progmodel.view.ViewManager.bindRoot(ViewManager.java:579)
         at com.sap.tc.webdynpro.progmodel.view.ViewManager.init(ViewManager.java:155)
         at com.sap.tc.webdynpro.progmodel.view.InterfaceView.initController(InterfaceView.java:43)
         at com.sap.tc.webdynpro.progmodel.controller.Controller.init(Controller.java:200)
         at com.sap.tc.webdynpro.progmodel.view.ViewManager.getView(ViewManager.java:709)
         at com.sap.tc.webdynpro.progmodel.view.ViewManager.bind(ViewManager.java:555)
         at com.sap.tc.webdynpro.progmodel.view.ViewManager.getView(ViewManager.java:724)
         at com.sap.tc.webdynpro.progmodel.view.ViewManager.bind(ViewManager.java:555)
         at com.sap.tc.webdynpro.progmodel.view.ViewManager.getView(ViewManager.java:724)
         at com.sap.tc.webdynpro.progmodel.view.ViewManager.bind(ViewManager.java:555)
         at com.sap.tc.webdynpro.progmodel.view.ViewManager.getView(ViewManager.java:724)
         at com.sap.tc.webdynpro.progmodel.view.ViewManager.bindRoot(ViewManager.java:579)
         at com.sap.tc.webdynpro.progmodel.view.ViewManager.init(ViewManager.java:155)
         at com.sap.tc.webdynpro.clientserver.window.WebDynproWindow.doOpen(WebDynproWindow.java:295)
         at com.sap.tc.webdynpro.clientserver.window.ApplicationWindow.show(ApplicationWindow.java:183)
         at com.sap.tc.webdynpro.clientserver.window.ApplicationWindow.open(ApplicationWindow.java:178)
         at com.sap.tc.webdynpro.clientserver.cal.ClientApplication.init(ClientApplication.java:364)
         at com.sap.tc.webdynpro.clientserver.session.ApplicationSession.initApplication(ApplicationSession.java:754)
         at com.sap.tc.webdynpro.clientserver.session.ApplicationSession.doProcessing(ApplicationSession.java:289)
         at com.sap.tc.webdynpro.clientserver.session.ClientSession.doApplicationProcessingStandalone(ClientSession.java:713)
         at com.sap.tc.webdynpro.clientserver.session.ClientSession.doApplicationProcessing(ClientSession.java:666)
         at com.sap.tc.webdynpro.clientserver.session.ClientSession.doProcessing(ClientSession.java:250)
         at com.sap.tc.webdynpro.clientserver.session.RequestManager.doProcessing(RequestManager.java:149)
         at com.sap.tc.webdynpro.serverimpl.defaultimpl.DispatcherServlet.doContent(DispatcherServlet.java:62)
         at com.sap.tc.webdynpro.serverimpl.defaultimpl.DispatcherServlet.doGet(DispatcherServlet.java:46)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
         at com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl.runServlet(HttpHandlerImpl.java:401)
         at com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl.handleRequest(HttpHandlerImpl.java:266)
         at com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java:386)
         at com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java:364)
         at com.sap.engine.services.httpserver.server.RequestAnalizer.invokeWebContainer(RequestAnalizer.java:1039)
         at com.sap.engine.services.httpserver.server.RequestAnalizer.handle(RequestAnalizer.java:265)
         at com.sap.engine.services.httpserver.server.Client.handle(Client.java:95)
         at com.sap.engine.services.httpserver.server.Processor.request(Processor.java:175)
         at com.sap.engine.core.service630.context.cluster.session.ApplicationSessionMessageListener.process(ApplicationSessionMessageListener.java:33)
         at com.sap.engine.core.cluster.impl6.session.MessageRunner.run(MessageRunner.java:41)
         at com.sap.engine.core.thread.impl3.ActionObject.run(ActionObject.java:37)
         at java.security.AccessController.doPrivileged(Native Method)
         at com.sap.engine.core.thread.impl3.SingleThread.execute(SingleThread.java:102)
         at com.sap.engine.core.thread.impl3.SingleThread.run(SingleThread.java:172)
    Arguments : com.sap.sql.log.OpenSQLException,Cannot assign NULL to host variable 1. setNull() can only be used in INSERT and UPDATE statements. The statement is "SELECT MIN("YEARMONTH") "YEARMONTH",MIN("VIOLTYPE") "VIOLTYPE",MIN("VSYSKEY") "VSYSKEY",MIN("ANLTYPE") "ANLTYPE",MIN("USERGROUP") "USERGROUP",SUM("TOTCOUNT") "TOTCOUNT",SUM("RISKLOW") "RISKLOW",SUM("RISKMED") "RISKMED",SUM("RISKHIGH") "RISKHIGH",SUM("RISKCRT") "RISKCRT",SUM("URNONE") "URNONE",SUM("URLOW") "URLOW",SUM("URMED") "URMED",SUM("URHIGH") "URHIGH",SUM("URCRT") "URCRT",SUM("URMIT") "URMIT",MAX("TOTCRTCD") "TOTCRTCD",SUM("CRTCD") "CRTCD",MAX("TOTCRROLE") "TOTCRROLE",SUM("CRROLE") "CRROLE",SUM("TOTUSER") "TOTUSER",MIN("RUNDATE") "RUNDATE" FROM "VIRSA_CC_MGMTTOT" WHERE "YEARMONTH" = ? AND "VIOLTYPE" = ? AND "VSYSKEY" LIKE ? AND "ANLTYPE" = ? AND "USERGROUP" LIKE ?".,com.sap.sql.log.OpenSQLException: Cannot assign NULL to host variable 1. setNull() can only be used in INSERT and UPDATE statements. The statement is "SELECT MIN("YEARMONTH") "YEARMONTH",MIN("VIOLTYPE") "VIOLTYPE",MIN("VSYSKEY") "VSYSKEY",MIN("ANLTYPE") "ANLTYPE",MIN("USERGROUP") "USERGROUP",SUM("TOTCOUNT") "TOTCOUNT",SUM("RISKLOW") "RISKLOW",SUM("RISKMED") "RISKMED",SUM("RISKHIGH") "RISKHIGH",SUM("RISKCRT") "RISKCRT",SUM("URNONE") "URNONE",SUM("URLOW") "URLOW",SUM("URMED") "URMED",SUM("URHIGH") "URHIGH",SUM("URCRT") "URCRT",SUM("URMIT") "URMIT",MAX("TOTCRTCD") "TOTCRTCD",SUM("CRTCD") "CRTCD",MAX("TOTCRROLE") "TOTCRROLE",SUM("CRROLE") "CRROLE",SUM("TOTUSER") "TOTUSER",MIN("RUNDATE") "RUNDATE" FROM "VIRSA_CC_MGMTTOT" WHERE "YEARMONTH" = ? AND "VIOLTYPE" = ? AND "VSYSKEY" LIKE ? AND "ANLTYPE" = ? AND "USERGROUP" LIKE ?".
         at com.sap.sql.log.Syslog.createAndLogOpenSQLException(Syslog.java:85)
         at com.sap.sql.log.Syslog.createAndLogOpenSQLException(Syslog.java:124)
         at com.sap.sql.jdbc.common.CommonPreparedStatement.setNull(CommonPreparedStatement.java:303)
         at com.sap.sql.jdbc.common.CommonPreparedStatement.setString(CommonPreparedStatement.java:509)
         at com.sap.sql.sqlj.runtime.profile.ref.RTStatementJDBCPrepared.setString(RTStatementJDBCPrepared.java:359)
         at com.virsa.cc.xsys.mgmreport.dao.sqlj.MGMTotalDAO.getResult(MGMTotalDAO.sqlj:63)
         at com.virsa.cc.ui.RARiskVGraph.refreshData(RARiskVGraph.java:476)
         at com.virsa.cc.ui.RARiskVGraph.wdDoInit(RARiskVGraph.java:130)
         at com.virsa.cc.ui.wdp.InternalRARiskVGraph.wdDoInit(InternalRARiskVGraph.java:191)
         at com.sap.tc.webdynpro.progmodel.generation.DelegatingView.doInit(DelegatingView.java:61)
         at com.sap.tc.webdynpro.progmodel.controller.Controller.initController(Controller.java:215)
         at com.sap.tc.webdynpro.progmodel.view.View.initController(View.java:445)
         at com.sap.tc.webdynpro.progmodel.controller.Controller.init(Controller.java:200)
         at com.sap.tc.webdynpro.progmodel.view.ViewManager.getView(ViewManager.java:709)
         at com.sap.tc.webdynpro.progmodel.view.ViewManager.bind(ViewManager.java:555)
         at com.sap.tc.webdynpro.progmodel.view.ViewManager.getView(ViewManager.java:724)
         at com.sap.tc.webdynpro.progmodel.view.ViewManager.bindRoot(ViewManager.java:579)
         at com.sap.tc.webdynpro.progmodel.view.ViewManager.init(ViewManager.java:155)
         at com.sap.tc.webdynpro.progmodel.view.InterfaceView.initController(InterfaceView.java:43)
         at com.sap.tc.webdynpro.progmodel.controller.Controller.init(Controller.java:200)
         at com.sap.tc.webdynpro.progmodel.view.ViewManager.getView(ViewManager.java:709)
         at com.sap.tc.webdynpro.progmodel.view.ViewManager.bind(ViewManager.java:555)
         at com.sap.tc.webdynpro.progmodel.view.ViewManager.getView(ViewManager.java:724)
         at com.sap.tc.webdynpro.progmodel.view.ViewManager.bind(ViewManager.java:555)
         at com.sap.tc.webdynpro.progmodel.view.ViewManager.getView(ViewManager.java:724)
         at com.sap.tc.webdynpro.progmodel.view.ViewManager.bind(ViewManager.java:555)
         at com.sap.tc.webdynpro.progmodel.view.ViewManager.getView(ViewManager.java:724)
         at com.sap.tc.webdynpro.progmodel.view.ViewManager.bindRoot(ViewManager.java:579)
         at com.sap.tc.webdynpro.progmodel.view.ViewManager.init(ViewManager.java:155)
         at com.sap.tc.webdynpro.clientserver.window.WebDynproWindow.doOpen(WebDynproWindow.java:295)
         at com.sap.tc.webdynpro.clientserver.window.ApplicationWindow.show(ApplicationWindow.java:183)
         at com.sap.tc.webdynpro.clientserver.window.ApplicationWindow.open(ApplicationWindow.java:178)
         at com.sap.tc.webdynpro.clientserver.cal.ClientApplication.init(ClientApplication.java:364)
         at com.sap.tc.webdynpro.clientserver.session.ApplicationSession.initApplication(ApplicationSession.java:754)
         at com.sap.tc.webdynpro.clientserver.session.ApplicationSession.doProcessing(ApplicationSession.java:289)
         at com.sap.tc.webdynpro.clientserver.session.ClientSession.doApplicationProcessingStandalone(ClientSession.java:713)
         at com.sap.tc.webdynpro.clientserver.session.ClientSession.doApplicationProcessing(ClientSession.java:666)
         at com.sap.tc.webdynpro.clientserver.session.ClientSession.doProcessing(ClientSession.java:250)
         at com.sap.tc.webdynpro.clientserver.session.RequestManager.doProcessing(RequestManager.java:149)
         at com.sap.tc.webdynpro.serverimpl.defaultimpl.DispatcherServlet.doContent(DispatcherServlet.java:62)
         at com.sap.tc.webdynpro.serverimpl.defaultimpl.DispatcherServlet.doGet(DispatcherServlet.java:46)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
         at com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl.runServlet(HttpHandlerImpl.java:401)
         at com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl.handleRequest(HttpHandlerImpl.java:266)
         at com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java:386)
         at com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java:364)
         at com.sap.engine.services.httpserver.server.RequestAnalizer.invokeWebContainer(RequestAnalizer.java:1039)
         at com.sap.engine.services.httpserver.server.RequestAnalizer.handle(RequestAnalizer.java:265)
         at com.sap.engine.services.httpserver.server.Client.handle(Client.java:95)
         at com.sap.engine.services.httpserver.server.Processor.request(Processor.java:175)
         at com.sap.engine.core.service630.context.cluster.session.ApplicationSessionMessageListener.process(ApplicationSessionMessageListener.java:33)
         at com.sap.engine.core.cluster.impl6.session.MessageRunner.run(MessageRunner.java:41)
         at com.sap.engine.core.thread.impl3.ActionObject.run(ActionObject.java:37)
         at java.security.AccessController.doPrivileged(Native Method)
         at com.sap.engine.core.thread.impl3.SingleThread.execute(SingleThread.java:102)
         at com.sap.engine.core.thread.impl3.SingleThread.run(SingleThread.java:172)
    Dsr Component : n/a
    Dsr Transaction : d2d9c100c2b811dd9eb60003baf96a51
    Dsr User :
    Indent : 0
    Level : 0
    Message Code : com.sap.sql_0019
    Message Type : 1
    Relatives : /System/Database/sql/jdbc/common
    Resource Bundlename :
    Session : 92
    Source : com.sap.sql.jdbc.common.CommonPreparedStatement
    ThreadObject : SAPEngine_Application_Thread[impl:3]_32
    Transaction :
    User : ac_admin

    Hi,
    The shear length  of your post is frightening - this would keep many potential replies away !!
    What i woudl recommend is --> Open an OSS messgae ! This would resolve your problem !!
    Thanks

  • Lock-Ups and Freezes PLEASE HELP

    Hello everyone..
    I come here to see if anyone can help me... Ive done it all and nothing is working.
    I just recently started having problems with my computer, im not sure why this happend but ill try to explain everything as best as I can.
    The problem started a few days ago while I was playing SWG's. I was playing and all of a sudden my machine froze, the screen locked-up and then after about 2 min the entire system restarted. I then logged back into my windows and after a while a system froze and restarted yet again. I though it was a SWGs issue but then the computer would freeze while browsing the net and doing other tasks.
    I have formated my machine, re-installed my drivers, and re-installed the hardward. Nothing has worked.
    My computer specs are
    300watt PSU Enermax True Power
    MSI K7n2 nforce2 8xagp mobo
    athon 1700xp
    512mb of Kingmax DDR 2700
    SB audigy x-gamer sound card
    MSI geforce4 ti 4200 8xAGP graphics card
    Hope thats enough..
    One last thing... When my computer restarts after the problem i get a message asking me to report the problem to microsoft... i located the error file and this is what was writen in it....
    // Watchdog Event Log File
    LogType: Watchdog
    Created: 2003-07-19 01:30:24
    TimeZone: 300 - Eastern Standard Time
    WindowsVersion: XP
    EventType: 0xEA - Thread Stuck in Device Driver
    // The driver for the display device got stuck in an infinite loop. This
    // usually indicates a problem with the device itself or with the device
    // driver programming the hardware incorrectly. Please check with your
    // display device vendor for any driver updates.
    ShutdownCount: 5
    Shutdown: 0
    EventCount: 5
    BreakCount: 5
    BugcheckTriggered: 1
    DebuggerNotPresent: 1
    DriverName: nv4_disp
    EventFlag: 1
    DeviceClass: Display
    DeviceDescription: MSI MS-StarForce GeForce4 Ti 4200 with 8X (NVIDIA GeForce4 Ti 4200 with AGP8X)
    HardwareID: PCI\VEN_10DE&DEV_0281&SUBSYS_89431462&REV_A1
    Manufacturer: NVIDIA
    DriverFixedFileInfo: FEEF04BD 00010000 0006000D 000A0C1C 0006000D 000A0C1C 0000003F 00000008 00040004 00000003 00000004 00000000 00000000
    DriverCompanyName: NVIDIA Corporation
    DriverFileDescription: NVIDIA Compatible Windows 2000 Display driver, Version 31.00
    DriverFileVersion: 6.13.10.3100
    DriverInternalName: nv_disp.dll
    DriverLegalCopyright: (c) NVIDIA Corporation. All rights reserved.
    DriverOriginalFilename: nv_disp.dll
    DriverProductName: NVIDIA Compatible Windows 2000 Display driver, Version 31.00
    DriverProductVersion: 6.13.10.3100
    Hope this helps, i dont understand what it means so maybe one of you might...
    Please help me on this... Ive tried everything i can...
    Thanks in advance

    If what you are saying, and I am reading correctly:
    The machine and game was working just peachy and all of a sudden the problem manifested itself?
    Did you do ANYTHING to change your system prior to this happening to possibly have an effect?
    the fast that you said you have re-loaded the OS and removed and re-installed the hardware with the same result tells me that there may be some sort of hardware failure and this could get difficult to troubleshoot.
    First things first, try a memory testing software like memtest86 to see if you get any errors.
    http://www.memtest86.com/

  • Maybe you are looking for

    • When syncing apps, window says authorize this computer.  When I authorize it says computer already authoized.  Then the window reappears and sync does not continue.

      When syncing app, a window pops up saying to authorize this computer,  When I authorize the computer, I am told it already is authorized.  Then the same window pops up again.  Is there a cache that can be emptied or what can I do to sync my ipad.  Th

    • I need help with my Ipod

      I recently got a 4GB Ipod Nano from a friend. When I plug it in to my computer, which has the latest Itunes software and has been used for an Ipod Nano before, my Ipod shows up in "My Computer" but not in Itunes. I have been searching all over this s

    • Delivery date sales order / purchase requisition

      Hello, I am trying to create a sales order. In my case, the sales order has got two lines for schedule lines: -delivery date: 24.03.2009 -delivery date: 06.04.2009. This line is the one confirmed. This is because on the material master record the fie

    • Inherited display method

      I am trying to modify the display method in a custom window super class. Within my application, the user should be able to hit the F3 key to exit. I have coded it in a display method on a particular window and it works. However, when I attempt to mov

    • Using to get Web Services in Widgets

      Hi, I wanted to use web services in widgets. How can we make publicly available Web Services to be available in the widgets. and once we get those web services, how to consume those web services in Eclipse IDE. Can anybody provide the information reg