4 ms·
AS3 is quite similar to Javascript also -- you can't do as much with the prototypes, but it still has closures, allowing a functional style; and everything's es
by iron_ball 17y ago
AS3 is quite similar to Javascript also -- you can't do as much with the prototypes, but it still has closures, allowing a functional style; and everything's essentially an Object with properties, allowing a dynamic style. You can turn off strict mode and it won't do compile-time type checking, or you can type specific signatures as "*" and they will not be type-checked. This means you can do all the duck-typing you like, instead of defining a Java-like interface.
One of AS3's goals was definitely to become more like Java, for whatever reason, but almost all of the new Java-y-ness is optional.