What's difference between constructor and as operator?
Hi, all~
Sometimes a property returns value as "super" as the class related. For a simple example: a child call its parent MovieClip to .stop(); However, this.parent property returns a DisplayObjectContainer which has no such method. At this time, I like to use (parent as MovieClip).stop(); to "treat him as" a MovieClip, because I think its already a MovieClip, there's no need to "convert". But I noticed that many people and many examples in the reference and documents use the constructor, like: MovieClip(parent).stop(); even the constructor do not receive a parameter. I'm wondering what's the difference between them, and which is better?
Am I entanglement
? Thanks~~~~
