Click to See Complete Forum and Search --> : OnClick disable animation


WLQ
08-22-2008, 01:30 PM
I need a script, so when you click on symbol, other symbol will stop an animation. I mean if you click a symbol, a defined symbol will not play animation, no mouse over nothing. And the same to enable symbol animation.

Eye for Video
08-22-2008, 10:34 PM
How about just setting up a button that simply stops or starts the animation. Create a movie clip which will have the characteristics of a button. Create a symbol of the type movie clip and give it an onRelease action:

stop_btn.onRelease = function() {
gotoAndStop(noPlay);
/*--- this is a frame label where no action is occurring
in this frame there is a new button with the play action
--*/
}

play_btn.onRelease = function() {
gotoAndStop(Play);
/*--- this is a frame label where the action is occurring
in this frame there is a new button with the stop action
--*/
}

This is the simplest form. Be sure to give each symbol the correct instance name. More coding could capture the current frame of the animation and restart it at that point.
Good luck,
Eye for Video,
www.cidigitalmedia.com

WLQ
08-23-2008, 06:17 AM
I need something that will stop animation only for one symbol. I have symbol with some animation on it (in it's own storyboard), the same with the second symbol. Now when I click one symbol for example it says: No animation to image 3. The symbol which I clicked still has it's animation, but the symbol which we don't want that. Do not play it's own storyboard.

WLQ
08-27-2008, 12:21 PM
I found the way out, simply creating a dummy that blocks animation.