MovieClip exists

Is there a way to tell if a MovieClip exists in HAXE?

Example AS3 (works):
var thumbContainer:MovieClip = new MovieClip();
thumbContainer.name = “thumbContainer”;
addChild (thumbContainer);
if (getChildByName(“thumbContainer”) != null) {
trace(“exists”)
}

Thanks!

Reflect.isObject(myObject)

:wink:

Does this not work in OpenFL? I don’t see why it wouldn’t…

What are you targeting? Your code worked for me in HAXE with the AIR target.

neko and html5.
That must be it then.

Did you get some kind of error message that you can share?