PDA

View Full Version : static text on top of mc


jackson
05-25-2001, 02:23 PM
Using script to duplicate mc with fancy stuff.
On the toplayer in the main mc I have static text that I always want to remain on top of everything. But the mc with the dulication always covers it although it is on a lower layer. It there anyway to make the static text always be on top?

thanks

Marx
05-25-2001, 05:55 PM
Hi...
You need to place the text in an MC then you can set the depth of that MC to a higer level than the duplicated MC's.

If for example you set the duplication action as follows:

on (release) {
duplicateMovieClip ("_root.box", "newBox", 1);
}

Here we've set the depth to '1'. For our text MC to appear above the duplicated MC's we need to set the depth to a higher number, so add the following code to the text MC:

onClipEvent (load) {
this.swapDepths(10);
}

Just make sure that the figure you type as the depth is higher than your duplicates.

Hope this helps.

jackson
05-25-2001, 07:52 PM
Thanks, but what if I have

duplicateMovieClip ("new", "new" add mc, mc);

where mc is initialized to
mc = 1; in the previous frame?

thanks for the help, I really apreciate it.

jackson
05-25-2001, 07:55 PM
Hey I figured it out I just made the depth to "mc+ 1" and it worked.

thanks alot for the lead/answer