[haXe] Built-in classes implementing Dynamic

Nicolas Cannasse ncannasse at motion-twin.com
Mon Apr 24 15:19:32 CEST 2006


> Hello all,
> 
>   Having spent some time coding I now have a question in my mind - why
>   MovieClip, NetConnection and some other flash classes are
>   implementing Dynamic? I've spent some time figuring out that I have
>   made a type in the createEmptyMovieClip() method name... I
>   understand that the rationale might be to provide access to some
>   extra properties, but I think 'untyped' block will work just fine in
>   this case... So maybe it is better to remove the 'implements
>   Dynamic' clause then?

Exactly.
I actually made this morning some changes on CVS.

While keeping the default behavior for users that are coming from the
Dynamic Flash World, there is now a compilation option to turn off this
dynamicity. Try to get latest libraries and compile using :

haxe -D flash_strict ....

Nicolas



More information about the Haxe mailing list