PDA

View Full Version : a swapdepths question...



tomtom
September 19th, 2003, 08:20 AM
hello there, i'm quite new to flash and i'm still trying to get to grips with it.

i'm trying to use swapdepths, but it isn't working for me.

the code looks like this:

bottomwindow.swapDepths(topwindow);

bottomwindow and topwindow are not instance names but strings/variables that hold instance names; i think that flash is looking for instances named 'bottomwindow' and 'topwindow', which don't exist.

is this is the problem, does anyone know how to get around it?

i hope this makes sense, if needs be i can go into more detail.

thanks, tom.

Digitalosophy
September 19th, 2003, 01:48 PM
yup, you ned to give them insatnce names

welcome to the forums :)

Voetsjoeba
September 19th, 2003, 02:08 PM
You can always use eval(). Like this for example:



this.createEmptyMovieClip("border", 1);
str = "border";
eval(str).loadMovie("movie.swf");


:)