AS3: How to move a MovieClip to front?

Posted by Oden on Stack Overflow See other posts from Stack Overflow or by Oden
Published on 2010-06-17T08:39:11Z Indexed on 2010/06/17 8:43 UTC
Read the original article Hit count: 284

Filed under:
|
|

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?

© Stack Overflow or respective owner

Related posts about flash

Related posts about actionscript-3