movie clip in flash

Thread Solved

Join Date: May 2008
Posts: 302
Reputation: sreein1986 is an unknown quantity at this point 
Solved Threads: 33
sreein1986's Avatar
sreein1986 sreein1986 is offline Offline
Posting Whiz

movie clip in flash

 
0
  #1
Jun 11th, 2008
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
Thanx,
Shiriyal

http://shiriyal.blogspot.com/
if you problem solved add me as a reputation and mark it mark as solved
Reply With Quote Quick reply to this message  
Join Date: Oct 2006
Posts: 1,311
Reputation: vishesh is on a distinguished road 
Solved Threads: 36
vishesh's Avatar
vishesh vishesh is offline Offline
Nearly a Posting Virtuoso

Re: movie clip in flash

 
1
  #2
Jun 11th, 2008
Create a layer over the tween if both exist in same layer. Otherwise if would be simple. Posy if I not very clear.

Graphics and Multimedia Syntax (Toggle Plain Text)
  1. on (rollOver) {
  2. _movieClipName.stop();
  3. }
Reply With Quote Quick reply to this message  
Join Date: Jul 2007
Posts: 23
Reputation: CoffeeChef is an unknown quantity at this point 
Solved Threads: 2
CoffeeChef's Avatar
CoffeeChef CoffeeChef is offline Offline
Newbie Poster

Re: movie clip in flash

 
1
  #3
Jun 12th, 2008
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:

Graphics and Multimedia Syntax (Toggle Plain Text)
  1. movieclipname.onRollOver = function(){
  2. this.stop();
  3. }
Reply With Quote Quick reply to this message  
Join Date: Oct 2006
Posts: 1,311
Reputation: vishesh is on a distinguished road 
Solved Threads: 36
vishesh's Avatar
vishesh vishesh is offline Offline
Nearly a Posting Virtuoso

Re: movie clip in flash

 
0
  #4
Jun 12th, 2008
Then this would work:

Graphics and Multimedia Syntax (Toggle Plain Text)
  1. movieclipname.onRollOver = function(){
  2. stop();
  3. }

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.
Last edited by vishesh; Jun 12th, 2008 at 7:34 am.
Reply With Quote Quick reply to this message  
Join Date: Jul 2007
Posts: 23
Reputation: CoffeeChef is an unknown quantity at this point 
Solved Threads: 2
CoffeeChef's Avatar
CoffeeChef CoffeeChef is offline Offline
Newbie Poster

Re: movie clip in flash

 
0
  #5
Jun 13th, 2008
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.
Reply With Quote Quick reply to this message  
Join Date: May 2008
Posts: 302
Reputation: sreein1986 is an unknown quantity at this point 
Solved Threads: 33
sreein1986's Avatar
sreein1986 sreein1986 is offline Offline
Posting Whiz

Re: movie clip in flash

 
0
  #6
Jun 13th, 2008
than q very much for CoffeeChef and Vishesh this code it's working fine

once again thnx very much
Thanx,
Shiriyal

http://shiriyal.blogspot.com/
if you problem solved add me as a reputation and mark it mark as solved
Reply With Quote Quick reply to this message  
Reply

This thread has been marked solved.
Perhaps start a new thread instead?
Message:



Similar Threads
Other Threads in the Graphics and Multimedia Forum
Thread Tools Search this Thread



About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC