|
-
I would like to be able to have an animation in a button continue after it is clicked. Currently, I click the button, and as long as I hold the animation plays. I have tried experimenting with "on release" but since this is a button it doesnt seem to work. How do I have the animation continue after clicking on it?
-
Still Causing Trouble
Make the effect a sprite and have the button "on release" tell target "nameofyoursprite" go to frame one, play. put a stop action in frame 0 of the sprite. The stop in frame 0 tells the sprite NOT to play. The tell target tells the sprite to jump PAST the "stop" and makes the sprite play.
-
The only problem with that is I also want to have a rollover effect. Currently the button is a gif. When I roll over the button, the gif changes to another gif. How would I retain my rollover effect and still have my movie to play? Or, I guess, how would I have the sprite do both effects depending on the type of input?
-
If a sprite is INSIDE the button .. then that won't help. You only get the three states (up, over and down) .. and as mouse moves you'll get the sprite for the appropriate state playing.
What you need is an EXTERNAL sprite (or two) that are controlled by an invisible button that lies on top of the sprite.
When the button gets a mouse over event, you tell the sprite to go to the roll over animation. when you get a mouse press (or better, a release) you tell it to go to that bit of animation. And if you want the animation to continue, then put it in a loop with a Goto Frame action and don't jump out of the loop when the mouse leaves the button .. just let it keep running.
-
are you french ?
tu es français de Seine et Marne ?
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
|