-
I need help with getting my animation to play completely through after you move the mouse out of the hit area. The button works, the animation works, the only problem is that it stops the minute it leaves the hit area. Any help would be greatly appreciated
SyN
-
Here is one way and it allows LOTS of control over buttons.
You need to create a dummy button that controls movieclips using some actionscript.
Here's how.
Create a button with just a hit area (blank keyframes for all other states). This is your dummy button.
Create movie clips for whatever button states you require. ie up, over and down.
Place each of these on the stage underneath the button and aligned with it.
Eg
layer 1 button
layer 2 movie_down
layer 3 movie_over
layer 4 movie_up
Now add some actionscript to the button to control each of these movies.
eg
On (Roll Over)
Begin Tell Target ("movie_over")
Play
Go to and Play (2)
End Tell Target
End On
"movie_over" should be empty in frame 1 (all blank keyframes)and give it a frame 1 action of "stop". The statement above will start playing from frame 2. This is where your animation should start.
Also put a stop action at the end of the movie and the movie will play once even when the mouse leaves the button. Use a blank frame at the end if you need the movie to "disappear" once played.
Use similar actionscript and blank frames to control the “down_movie” as well.
“movie_up” doesn’t require a blank frame.
Setting the "visibility" properties of the movies is extremely useful as it allows full control over a button eg to cancel an over movie when the button is clicked.
Hope this opens up a world of possibilities,
Rich.
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
|