A Flash Developer Resource Site

Results 1 to 3 of 3

Thread: Simple navigation issue is driving me crazy!

  1. #1
    Member
    Join Date
    Jun 2000
    Posts
    67
    Ok.

    I have an MC on the main timeline which has buttons within it. Click on a button, and it takes you to a certain scene. Pretty damn simple. In fact, it's so simple, IT DOESN'T WORK. I'm using this code:

    on (release) {
    gotoAndPlay ("workflow", 1);
    }

    "workflow" is the name of the scene the button is supposed to take you to. But it doesn't work. What the hell. It just sits there. I tried a button up on the main timeline and it works fine. Is there something I'm missing?!


  2. #2
    (sic) Covenent's Avatar
    Join Date
    Dec 2000
    Location
    Ireland
    Posts
    709
    Scenes in Flash are flawed, and if you have button inside of a movie clip it is hard to navigate scenes on the main timeline.

    The easiest solution is to use frame labels to define points on the timeline you want to go to. Go to the scene and frame you want your button to go to, and give it a lable of "myFrame" (no quotes), now on your button add these actions:

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

    Note, you do not have to speficy which Scene the label is on.

  3. #3
    Member
    Join Date
    Jun 2000
    Posts
    67
    Many thanks. It blows my mind that I've never come across this problem before.

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