A swapdepths question

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 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.