A Flash Developer Resource Site

Results 1 to 2 of 2

Thread: Simple Coding Problem

  1. #1
    Member
    Join Date
    Sep 2006
    Posts
    84

    Simple Coding Problem

    ok so i am building a website at the moment it consists of 2 frames...one holding the preloader and the other as mysite movie clip...
    within this movie clip i am building the site with 4 navigation buttons. on these buttons i have this code...

    on (rollOver)
    {
    gotoAndPlay("s1");
    }
    on (releaseOutside, rollOut)
    {
    gotoAndPlay("s2");
    }
    on(release){
    gotoAndStop(62);
    }


    s1 and s2 relates to an animation i have on rollover which works fine however i cant get my on(release) function to work...i need this example to go to frame 62 of this 'mysite' movieclip and i dont know what code to put in...obviously its not _root. as that would go back to the 1st scene with the preloader and this site in but im at a loss....so can anyone tell me what i need to put in to the on(release) function....thanks alot

  2. #2
    Member
    Join Date
    Sep 2006
    Posts
    84
    i tried this...after givin the site mc an instance name "site"...


    on (rollOver)
    {
    gotoAndPlay("s1");
    }
    on (releaseOutside, rollOut)
    {
    gotoAndPlay("s2");
    }
    on (release) {
    tellTarget ("site") {
    gotoAndPlay(62);
    }
    }


    but it came up with this....

    Target not found: Target="site" Base="_level0.popup.instance4"



Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  




Click Here to Expand Forum to Full Width

HTML5 Development Center