WLQ
11-16-2008, 09:53 AM
How to make a rule so If you click a movie clip, all other movie clips will stop playing?
|
Click to See Complete Forum and Search --> : Flash Stop WLQ 11-16-2008, 09:53 AM How to make a rule so If you click a movie clip, all other movie clips will stop playing? infinityspiral 11-16-2008, 02:14 PM You could do that a few different ways depending on how many movie clips you have and how they're generated. One would be to create a function that contains stop commands for each individual movie clip on stage. The other would be a function that traces the objects currently on stage and then traces any movieclips inside those objects within a loop that stops when it no longer finds any clips. WLQ 11-16-2008, 02:40 PM Should be easier, I have a menu, each item of it is a movie clip. So when I click a movie clip, all other menu items (movie clips) stop playing. So in each movie clip there's hover, onclick images... I don't want them to play their movie clips (disable all except for ""), when you clicked on specific item. Neither I want them to play when you mouse over it, though the (movie clip function says so).Till when you click on a movie clip which then enables that. infinityspiral 11-16-2008, 05:34 PM Is this AS3 or AS2? There isn't a .stop("all") function so what you end up doing is either a for loop to call out each menu item call them out manually with movieClipName.stop(); at the start. WLQ 11-17-2008, 05:07 AM as3, as2, so you can't stop all movie clips with a click of a button, you have to enter all movie clips manually? infinityspiral 11-17-2008, 08:17 AM Yeah each clip is a separate instance so they need to have the stop command applied to each one. There different ways of chaining the stop call together but there's no stopAll() command. WLQ 12-07-2008, 12:35 PM Another issue with that, ex. mediaOver.onPress = function() { gotoAndPlay(3); _root.todaystop.gotoAndStop(); } The todaystop movie clip stops when i click mediaOver movie clip but, if you mouse over on it, it will start play as there is a command to start play on mouse over. How can i disable any commands for a particular movie clip. So function stop, stops playing not just ending movie clip. infinityspiral 12-07-2008, 05:06 PM You could add some if/then logic to the mouseover command so that the function does all the current stuff IF the target clip's frame number does not equal the ending frame. So basically it won't do the function if it sits on a certain frame. webdeveloper.com
Copyright Internet.com Inc., All Rights Reserved. |