Check if movieclip exists [FMX2004]

How do you check if a movieclip exists? Thanks.

trace(_root.movieclipinstance);

and replace the trace with an if and you got yourself the check :wink:

I tried that using:



if(this["mymovieclip"]){
//code here
}

And it didn’t work…

then that movieclip didnt exist :stuck_out_tongue:

Nice one Sen :stuck_out_tongue: