0

please send me action script code below task
how to stop movieclip animation when mouseover
i created one animation using motion tweening but i want stop on mouse over this motion tweening

please help me
thanx

3
Contributors
5
Replies
6
Views
10 Years
Discussion Span
Last Post by sreein1986
1

Create a layer over the tween if both exist in same layer. Otherwise if would be simple. Posy if I not very clear.

on (rollOver) {
    _movieClipName.stop();
}
Votes + Comments
I got the solution for this thread thanx to Vishesh
1

I ususally try to put all my actionscript on its own layer. If this was the case, I would place the following code on the main timeline:

movieclipname.onRollOver = function(){
this.stop();
}
Votes + Comments
Thanx 2 CoffeeChef
0

Then this would work:

movieclipname.onRollOver = function(){
  stop();
}

I removed this because if you use that it will stop the clip playing inside that movie clip will stop, not the current layer. Otherwise if you have put actionscript a level above then put this . LOL its much hard to explain as compared to what it really is. :D

0

you explained it well! I thought that 'this' would just refer to the movieclip instance calling the functon since it is inside the function. I guess that might be redundant anyway.

0

than q very much for CoffeeChef and Vishesh this code it's working fine

once again thnx very much

This question has already been answered. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.