Go to another frame when a frame is reached
Posted on 2005-04-02
I'm waaaaay over my head here, but I'm in it too far to back out. Here's the situation I need help with,
I need to have a series of transitions set up, click a button and run through x number of frames, and upon reaching the last frame, go to another frame depending on what button was clicked.
In other words, if you click "product" you go to frame 50 and play, it runs to frame 70, then based on what button you clicked, goes to like frame 90 and plays, or 110 and plays, or 130 and plays, then stops when it gets to the end.
Now, in pseudocode, I'd write it out like this,
home = 1, news = 2, product = 3, support = 4
product is clicked, set variable to 3, go to frame 50, play to 70, at frame 70 determine what variable is, then if 1 go to and play frame 30, if 2...if 3 gotoAndPlay frame 130, if 4....
Basically, I need to know what action to put in the button, and what action to put at frame 70 to determine the above pseudocode. 500 because I'm an idiot that got in over my head and need bailed out fast.