AS3: How to move a MovieClip to front?
- by Oden
Hey,
I have a problem with moving a MovieClip to front in actionscript3. The main problem is, everytime I try to move it to front, using setChildIndex() I get an error message witch tells me, that the movieclip (that I named my_tofront) cannot converted to a flash.display.DisplayObject
full error message:
TypeError: Error #1034: Type Coercion failed: cannot convert my_tofront$ to flash.display.DisplayObject.
Why is this happening, and whats the solution for this problem?