• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 450
  • Last Modified:

extending ArrayCollection?

Hi,

I'm using a third party library, one of their classes tries to extend ArrayCollection like:

    import mx.collections.ArrayCollection;

    public class Garage extends ArrayCollection
    {

I get a compile error about that though like:

    The definition of base class ArrayCollection was not found.

I don't understand what that means - flash can't find the definition of ArrayCollection? In my main as3 file (the one associated with the movie) I can import and use ArrayCollection with the same statements. What am I missing?

Thanks
0
DJ_AM_Juicebox
Asked:
DJ_AM_Juicebox
  • 4
  • 2
1 Solution
 
Aneesh ChopraCommented:
"mx.collections.ArrayCollection" is the part of Flash class library, it seems you are trying to use it in Flash CS3

FYI,
"mx.collections.*" package does not comes with Flash CS3 by default,
although you can copy these classes from Flex installation directory into your project folder and use it without any issues.

-------------------
Aneesh Chopra
-------------------
0
 
Aneesh ChopraCommented:
OOps, typo.........

correction:

"mx.collections.ArrayCollection" is the part of FLEX class library not Flash default Packages, it seems you are trying to use it in Flash CS3

0
 
DJ_AM_JuiceboxAuthor Commented:
Yeah this situation is massively confusing - we have the whole flash family, then now Flex, but they don't seem to be compatible with each other straight out of the box - that is madness! Furthermore, I don't see how Flex takes advantage of flash's timeline stuff - a brief read shows an interface builder where you can add more web-style components (buttons, edit fields etc) - what I really would like though is to take advantage of the movie stuff mixed with action script - very confusing! Anyway well I'm a c++ / java developer and I'm probably just not thinking about this the right way!

Thanks
0
Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
Aneesh ChopraCommented:
FYI,

you can use Flex classes in Flash AS3 projects, only need to care that all dependant classes should be available to the flash AS3 project, either by copying it to the Flash MAIN FLA folder, or by settings the Classes folder path in AS3.0 settings in preferences
0
 
DJ_AM_JuiceboxAuthor Commented:
Ok, so in my specific case it's just complaining that I'm missing "ArrayCollection" - where do I find that in a default installation so I can resolve the path to it in my Flash project? I've installed to default locations on my windows machine,

Thanks
0
 
Aneesh ChopraCommented:
you know exact location, but you should search for "ArrayCollection.as" at following locations:

Program Files/Adobe/Flex folder

and

XX://Users/<Username>/AppData/Adobe/Flex folder
0

Featured Post

New feature and membership benefit!

New feature! Upgrade and increase expert visibility of your issues with Priority Questions.

  • 4
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now