View Full Version : Multiple Movie clips and rollovers
10-19-2006, 05:21 PM
Hi, I need some help. I am putting together a flash file with 3 movieclips. I have three movie clips I made - one for each of the 3 big circles. When they roll over the other circles are supposed to disappear under the circle that they have their mouse on. I placed all 3 movie clips on the first scene, but when they roll over one of the circles the other circle movie clips stay there while the other one runs on the mouse over. I need the other ones to disappear. You can view what I have so far: http://www.feeco.com/Portals/0/encap.swf. If you need to see my fla file I can email it to you. I don't know if I have set the whole thing up wrong, with creating the different movie clips or what... Thanks! Stephanie
It sounds like what your looking for is the swapDepths method. You can use this method to control the stacking order of movieclips on the stage at runtime. Wherever your code is to control the drag of the movieclip, try adding.....
...whichever clip is selected will replace the currently placed object on that level.....hence, the currently dragged object will appear on top.
hope it helps
10-30-2006, 05:46 PM
I recommend not using this.swapDepths(9999);
but rather this.swapDepths(this.getNextHighestDepth());
This will guarentee that you are swapping to the next highest depth that is NOT OCCUPIED.
The problem with getNextHighestDepth is that it doesn't define what depth your clip is set to. Using a set standard allows you to quickly swap between objects and keeps the depth from expanding to an inifinite level. If your simply switching the stacking order of a clip or a few clips, a single depth is more efficient.
Powered by vBulletin™ Version 4.1.1 Copyright © 2013 vBulletin Solutions, Inc. All rights reserved.