In AS2 there is a compile-time type-checking only, the Flash VM itself doesn't care about type settings. If the type of an expression cannot be determined during the compilation, then type-checking is simply omitted. In your code it applies to the settings[tagName] reference, where the referred type could be determined run-time only, so the compiler obviously will not check it.
Run-time type-checking was introduced in AVM2 (Flash Player 9 & AS3). Attila _______________________________________________ [email protected] To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com

