Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

onMouseEvent action 1

Status
Not open for further replies.

toughGirl

MIS
Mar 26, 2001
68
I have an animation (9 layers) that when I load i want to be static. Then I have an activation button that will start the animation. My book mentions something about converting to MovieClips, but this seems rather labor intensive for all 9 layers. Plus, all the layers are instances of 2 button types. Confused yet? My animation is a sort of runes that are going to expand from 3 to a keypad layout. This is going to act as a navigational system for the rest of my site. So I have the animation in frames 2-31 and have put in a seperate layer the activation button that is in frame 1. I guess my main question is how do I stop the animation from rolling onLoad? I've already programmed the activation button to play...

Thanks! :)
 
Just put an action in frame one of "Stop", if I understand your question properly...
 
I put that in the keyframe for the activation button before the play command?
 
No, not on every layer -- only in the first frame...

It's considered good practice to put all your actions on one layer -- it's easier to keep up with them that way, so just create a new layer, call it "actions", and double click on the first frame --

Click the actions tab, and select "Stop" from the pull down menu --

That will let your movie load up, but not play until they hit the "play" button that you described up there.

:)
 
If you add a stop action on the first frame (and don't have a preloader, for instance, that will set up play by sending it to frame 2 or higher), the movie will never play on it's own. You'll have to use Control or the contextmenu (embedded player) to start it up.

In your case, you should use an actions layer, as link9 suggested, but put a keyframe stop action parrallel to your play button. If you fade in (or whatever) that button, that stop action should only come when the button is fully established. The movie will then play on it's own and stop, until the user hits that button.

:)
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top