Hey, I am having problems dynamicly setting depth of a line that I drew from actionscript. I use this in an onclipevent(load) to make a clip to draw a line.
Code:
_root.createEmptyMovieClip("wallpiece"+instance, instance);
after that I would draw a line. The line draws fine but it is in front of all the other instances. In other instances I use this code. In the script I calculate the depth and "try" to set it with this
Code:
_root["wallpiece"+instance].swapDepths(this.newdepth);
Is it even possible to dynamicly set the depth of a dynamicly drawn line?