import mx.collections.ArrayCollection;
Then:
static protected var myAC:ArrayCollection = new ArrayCollection();
It seems very simple, but in my project, The import (and ArrayCollection) could not be found/defined!
I am using Flash Builder 4 (Flex 4)-it is an ActionScript project, and the project properties are set to Flex SDK 4.0. Everything should be the default settings.
When I type When “import mx”. and press control space (auto-complete), I see a list of options, such as core, geometry and several others, but there is no’collection’.
I must have missed something?
I have some code that uses ArrayCollection, and it imports:
import mx.collections.ArrayCollection; pre>Then:
static protected var myAC:ArrayCollection = new ArrayCollection();It looks very simple, but in my project In, the import (and ArrayCollection) could not be found/defined!
I am using Flash Builder 4 (Flex 4)-it is an ActionScript project, and the project properties are set to Flex SDK 4.0. Everything should be the default settings.
When I type When "import mx". and press control space (auto-complete), I see a list of options, such as core, geometry and several others, but there is no'collection'.
I must have missed something?
>Export the project as a zip >Update to FlashBuilder 4.1 >Import the project from zip>Forget your mistakes)