PDA

View Full Version : layered movieclips - overlapping problem



thebluebus
08-21-2007, 01:27 PM
Ok, please bear with me while i try and explain.
I've got an image (map), with buttons on, when you hover over one of the buttons it fades in another image (movie clip) in the top right of the page. I had 11 of these movie clips in the same position, all working well and fading in and out depending on the button that was hovered over.

When i came to add another one, just like the rest, it won't show up. Its being hidden behind the other ones there. This happens for any subsequent movie clips i add to this area.

the fla is

www.mk2vr6.com/NEW.fla (http://www.mk2vr6.com/NEW.fla)

basically there are 4 icons (top right) that appear to be hidden when you hover over their button on the map. I've moved them away from their orginal position a bit so you can see what is happening. Have a play around and you'll see what i mean. All the others work fine. I can't see what is different with these 4.

some of the pins are not set up yet with corresponding pictures.
If you move across them though, some work, and there are 4 that appear partially blocked. Its these i need to look at and sort out why its doing it.

NTD
08-21-2007, 11:52 PM
Hi,

It is a good habit to mention what version of Flash your using. There is a difference between layers and levels. Layers are an authortime object that allows you to stack content as you create it. Levels are a run time event that dynamically places content in a stacked manner. Levels are mostly identified with the attachMovie, duplicateMovie, swapDepths, as well as a few others.Authortime created content is automatically assigned a negative depth level when created. Runtime content, such as the attachMovie method, is assigned a positve depth level. This is just the way Flash keeps track of things internally. If movieclip is attached from the library, it will appear above all other authortime created content unless the authortime content is swaped to a higher depth level...


myMC.swapDepths(100)

The above hard codes the depth level to 100. Flash only allows one object per level. If I wanted to place another mc above the last...


myOtherMC.swapDepths(101);

Flash also has a built in depth manager, so you can also do something like...


myMC.swapDepths(getNextHighestDepth())

However, I find it often an advantage to manage your own depth levels. This makes removing content much easier since you preassign it a particular depth level.

Hope it helps
NTD

thebluebus
08-22-2007, 08:16 AM
thanks for the reply. I'm still very new to this flash m'larky.
I managed to get it working using

myMC.swapDepths(100)

so thanks a lot :)