PDA

View Full Version : textFeld.swapDepths() ???


SmackMe
01-26-2006, 11:59 AM
As far as I know, swapDepths() doesn't work on textfields.
Does anyone know a way to change the depth of a textField?
:confused:

Billy T
01-26-2006, 12:11 PM
you can provide a textfield as a parameter but it must be called on an mc...what are you wanting to swap it with?

SmackMe
01-30-2006, 02:31 PM
I don't want to swap it with anything, I just need to keep ot on top eeryt other object on stage!

Xeef
01-30-2006, 02:41 PM
intresting aproach Billy_T


_root.createTextField("_txt", 1, 0, 0, 0, 0);
trace(_txt.getDepth());
_root.createEmptyMovieClip("SwapMC", 1000);
SwapMC.swapDepths(_txt.getDepth());
trace(_txt.getDepth());
SwapMC.removeMovieClip()

Billy T
01-30-2006, 08:14 PM
should even just be able to provide the textfield as the param

so swap

SwapMC.swapDepths(_txt.getDepth());

with

SwapMC.swapDepths(_txt);