Is ActionScript-3 – MX.COLLECTIONS lost? ArrayCollection (FLASH Builder 4) in Flex4

I have some code that uses ArrayCollection, and it imports:

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?

>export project as zip >update to FlashBuilder 4.1 >import project from zip>forget yours Error)

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)

Leave a Comment

Your email address will not be published.