Always importing too many classes... I think!

Posted by Bill on Stack Overflow See other posts from Stack Overflow or by Bill
Published on 2011-01-18T01:38:50Z Indexed on 2011/01/18 1:53 UTC
Read the original article Hit count: 463

Filed under:
|

I have a basic problem with knowing which classes to import for a given application, renderer, AS package, mxml component, etc. There seems to be hundreds of classes (both mx and flash) and I'm never sure which one(s) to import... so I just keep adding import statements until the errors go away. Is there a reference somewhere that I don't know about? Or does this just come with experience? Also... does importing a load of classes actually make the file size larger or does Flex only import the classes used nregardless of what I specify? If it only uses what is needed, why wouldn't everyone just do: import mx.*;

© Stack Overflow or respective owner

Related posts about actionscript-3

Related posts about flex3