flash question
- Started
- Last post
- 14 Responses
- warheros
how do you make a movie clip only play when it has "on roll over" and "on roll out" behaviors...cant figure it out. just keeps playing but it'll do those actions too.
- warheros0
here's the file:
- warheros0
anyone?
- niceland0
how bout putting two frames on the stage with a button that says on rollover go to frame two where you have your mc that you want to play. on rollout goto frame 1.
Oh and put a stop action on each frame.
- canuck0
stick the mc inside of a buttons on rollover state?
- joyride0
you will need to put a stop(); on the first frame of your movie clip. Then you should create a function using the onRollOver call to play the movie from frame 2. Then create an onRollOut function to gotoAndStop(1) so it stops. Hope this puts you in the right direction.
- niceland0
there you go. I was going to add that but canuck beat me to it. Much easier!
- warheros0
how do i stick the mc inside of a button?
- niceland0
a button mc
F8 to create a new button.
- warheros0
ohhh, gotcha...
- niceland0
doon't forget to define an area in the hit frame
- warheros0
the hit frame? i dont know what that is....
- warheros0
*looks up hit area*
ahh, ill do that later. good idea though, it will be done.
- nice-land0
http://www.actionscripts.org/tut…
learn it, know it, live it
- warheros0
yes that site is a good friend to me.