|
-
when a user is finished watching a MC how can I get the MC to go back to a particular frame in the main time line?
what i want the main time line to do is.... it plays through to frame 94 and then stops the user then has a choice of four buttons to press (which starts an MC) in the button action i not only have the MC to start playing but another 10 frames that plays an animation as the MC is starting (this all works great)......
The problem is once they have finished with the MC I want the main stage to go back to frame 94 and not stay at frame 105 (where it stays while the MC is playing)
hope someone can help me!

Cheetah
-
curmudgeon
on (release) {
_root.gtoAndStop (94);
}
attached to the button will do it
-
If you don not have a button on the MC for a user to press and the MC simply plays and then ends without user input, then the next choice would be to add a variable to your MC that changes state when the MC stops. You can then check for this state from the main timeline and jump back to Fr94 when changes.
Set a variable in your MC called "Active" and give it a value of "1" at the first frame of your MC.
Then on the last frame of your MC, set "Active" to "0".
In your main timeline, create a loop at Fr105 that checks the value of /MCName:Active where "MCName" is the instance name of your MC. So you should end up with something like FR106 with an action that says;
If /MCName:Active=1
goto and play frame105
Esle goto and play Frame 94
End If
That way, whilst your MC is running, your main timeline will play through to frame 106 and then keep looping through Fr105 and Fr106 until the MC has finished. Then it will jump back to Frame 94.
Hope this helps....
Richard.
-
Thanks heaps guys!! i had a button on the mc the _root go to worked a treat!
)))
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|