View Full Version : Placing something over a duplicated movie clip
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.
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( ))
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.
is this a clipINClipINclip story ??
can you show a cut down example of you code ???
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.
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
So is there any way I can make text have a higher depth even though it's not an MC?
vBulletin® v3.7.1, Copyright ©2000-2009, Jelsoft Enterprises Ltd.