PDA

View Full Version : Placing something over a duplicated movie clip


fd9
03-05-2005, 02:02 AM
I have a movie clip that I have duplicated many times using code, but I can't place anything over the movie clip (like text) even though I have it on a higher layer. I tried changing the depth of the duplicated MC's to something like -1 but that didn't work. It's probably something simple but I don't know what it is.

Xeef
03-05-2005, 02:07 AM
hi

to swap the dublicated is the wrong way (what if on depth -1 is something ?)

what ever shoud by on the top :

instancename.swapDepths(_root.getNextHighestDepth( ))

fd9
03-05-2005, 02:38 AM
The above code doesn't do the trick. Besides what I want to have on top is not even an MC - It's just text.

Xeef
03-05-2005, 03:18 AM
is this a clipINClipINclip story ??

can you show a cut down example of you code ???

fd9
03-05-2005, 04:34 AM
Ok, all I did, was duplicate an MC, and now I'm trying to put text over it. The problem is the text shows up underneath it.

So I have one layer with an MC, and one layer with just plain text (the text layer is above the MC layer).

The MC layer has code like,

_root.bla.duplicateMovieClip("AnotherBla", 0);

bla will show up behind the text. AnotherBla won't, instead it will cover the text. It's as simple as that. Hope this helps you understand what I'm trying say.

For example, you can check out this fla ( http://www.actionscript.org/tutorials/beginner/DuplicateMovieClip/duplMC3.zip ) which is from a tutorial on this website. Just add a new layer and put some text over the square, then run it and see what happens when you click on the button to duplicate it.

Xeef
03-05-2005, 03:19 PM
anything you place by HAND on the stage gets a negative depth usualy somwhere around -16380

so your original clip will have -16381 your text -16380 (is a bove it) the dublicated
is on "0" and will by above the other 2

fd9
03-05-2005, 05:12 PM
So is there any way I can make text have a higher depth even though it's not an MC?