954,562 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Have something to say? Contribute New Article Reply to this Article

movie clip in flash

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

sreein1986
Posting Whiz
306 posts since May 2008
Reputation Points: 12
Solved Threads: 34
 

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();
}
vishesh
Nearly a Posting Virtuoso
1,381 posts since Oct 2006
Reputation Points: 85
Solved Threads: 42
 

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();
}
CoffeeChef
Light Poster
25 posts since Jul 2007
Reputation Points: 11
Solved Threads: 2
 

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

vishesh
Nearly a Posting Virtuoso
1,381 posts since Oct 2006
Reputation Points: 85
Solved Threads: 42
 

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.

CoffeeChef
Light Poster
25 posts since Jul 2007
Reputation Points: 11
Solved Threads: 2
 

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

once again thnx very much

sreein1986
Posting Whiz
306 posts since May 2008
Reputation Points: 12
Solved Threads: 34
 

This question has already been solved

Post: Markdown Syntax: Formatting Help
You
View similar articles that have also been tagged: