dcsimg
A Flash Developer Resource Site

Results 1 to 3 of 3

Thread: gotoAndPlay Question

  1. #1
    Junior Member
    Join Date
    Apr 2002
    Posts
    6

    gotoAndPlay Question

    i have a button inside a movie (so it can has an animation on rollover and rollout) and i want it to gotoAndPlay a frame in my "main" scene. so i added

    on(release)
    {
    gotoAndPlay("main",115);
    }
    in all the places where there are keyframes in my movie clip for the button. then when i test it out in the .swf , it does nothing.

  2. #2
    Banned
    Join Date
    Apr 2001
    Location
    Montréal, Québec.
    Posts
    25,397
    Scene names are useless, in this case!
    Best method... Label the targeted frame with a unique label such as unique1, add _root to your script and target that labeled frame.

    on (release){
    _root.gotoAndPlay("unique1");
    }

  3. #3
    Junior Member
    Join Date
    Apr 2002
    Posts
    6
    sweet, you own dude, thanks a lot

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