I think what he is asking is if this is the same as import: var myObj:mx.core.UIObject = new mx.core.UIObject;
I think one of the answers is that it saves on typing out the class info for every reference. Any other benefits to import? On 5/25/06, Merrill, Jason <[EMAIL PROTECTED]> wrote:
>>So this is one of those things I wonder about. If I type a >>var to a custom type, doesn't the compiler automatically >>import the associated class files? >>When or why would I need to explicitly need to use the import >>directive? Because if Flash imported every class available to it automatically, then your .swf files would be huge and unnecessarily bloated. Do you really want the code to all the Remoting classes imported into your .swf if you're not using them? When you include, the actionscript cotained in the class is embedded in the .swf. Jason Merrill Bank of America Learning Technology Solutions
_______________________________________________ Flashcoders@chattyfig.figleaf.com 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