1 person found this helpful
I don't know about the plug-in but with Flex Builder you just type the colon (:) after the variable name and then start typing arr... and then select ArrayCollection from the popup. If the current piece of code needs to import that class then it will put the import statement in for you.
Well that does in fact happen with an ArrayCollection....
Now I guess this is what threw me off... for example if I was adding something like:
var myDate:Date = new Date();
I assumed it would do the same when I typed the "myDate:Date" - but it did not. But there was no import created for the Date class. So that threw me off. Then I realized that in this case I guess the Date class doesn't need an import, just like String, etc does not either.
So moving forward, I assume that if Flex builder needs to import for it's own classes, it will do so, and ignore for the ones it doesn't actually need the import.
Flex didn't make an import for Date because it's a top level class, these
top level classes are availble everywhere without the need for an import.