A Flash Developer Resource Site

Results 1 to 3 of 3

Thread: Button and actionscript

  1. #1
    Hi,
    I have my menu inside a movie of it's own, and when i try to make the movie jump to a certain frame when the button is clicked, say 80 for example. The movie will jump to frame 80, but frame 80 of the menu movie and not the main movie?
    Can any1 help?

    Thanks
    Nick

  2. #2
    Senior Member
    Join Date
    Jun 2001
    Posts
    267
    You need to target the main movie clip. Use
    on(release){
    _root.gotoAndPlay(80);
    }

    Also-try labeling your frames instead of using frame numbers. It will save you some headaches if you have to edit later, or if you start using scenes. IF you do label your frames the code should look like this instead:
    _root.gotoAndPlay("framelabel");

  3. #3

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