User Name Password Register
DaniWeb IT Discussion Community
All
What is DaniWeb IT Discussion Community?
You're currently browsing the Graphics and Multimedia section within the Web Development category of DaniWeb, a massive community of 423,337 software developers, web developers, Internet marketers, and tech gurus who are all enthusiastic about making contacts, networking, and learning from each other. In fact, there are 5,185 IT professionals currently interacting right now! Registration is free, only takes a minute and lets you enjoy all of the interactive features of the site.
Please support our Graphics and Multimedia advertiser: Programming Forums
Views: 717 | Replies: 5 | Solved
Reply
Join Date: May 2008
Location: Hyderabad, India
Posts: 261
Reputation: sreein1986 is an unknown quantity at this point 
Rep Power: 0
Solved Threads: 30
sreein1986's Avatar
sreein1986 sreein1986 is offline Offline
Posting Whiz in Training

movie clip in flash

  #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,
Sreekanth

www.saap.in
if you problem solved add me as a reputation and mark it mark as solved
AddThis Social Bookmark Button
Reply With Quote  
Join Date: Oct 2006
Location: India
Posts: 1,289
Reputation: vishesh is on a distinguished road 
Rep Power: 4
Solved Threads: 32
vishesh's Avatar
vishesh vishesh is offline Offline
Nearly a Posting Virtuoso

Re: movie clip in flash

  #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.

on (rollOver) {
    _movieClipName.stop();
}
Reply With Quote  
Join Date: Jul 2007
Posts: 23
Reputation: CoffeeChef is an unknown quantity at this point 
Rep Power: 2
Solved Threads: 2
CoffeeChef's Avatar
CoffeeChef CoffeeChef is offline Offline
Newbie Poster

Re: movie clip in flash

  #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:

movieclipname.onRollOver = function(){
this.stop();
}
Reply With Quote  
Join Date: Oct 2006
Location: India
Posts: 1,289
Reputation: vishesh is on a distinguished road 
Rep Power: 4
Solved Threads: 32
vishesh's Avatar
vishesh vishesh is offline Offline
Nearly a Posting Virtuoso

Re: movie clip in flash

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

Re: movie clip in flash

  #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  
Join Date: May 2008
Location: Hyderabad, India
Posts: 261
Reputation: sreein1986 is an unknown quantity at this point 
Rep Power: 0
Solved Threads: 30
sreein1986's Avatar
sreein1986 sreein1986 is offline Offline
Posting Whiz in Training

Re: movie clip in flash

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

once again thnx very much
Thanx,
Sreekanth

www.saap.in
if you problem solved add me as a reputation and mark it mark as solved
Reply With Quote  
Reply

Only community members can participate in forum threads. You must register or log in to contribute.

DaniWeb Graphics and Multimedia Marketplace
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)

 

Thread Tools Display Modes

Similar Threads
Other Threads in the Graphics and Multimedia Forum

All times are GMT -4. The time now is 11:41 am.
Forum system based on vBulletin Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
©2003 - 2008 DaniWeb® LLC