• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 463
  • 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
Cloud Class® Course: Amazon Web Services - Basic

Are you thinking about creating an Amazon Web Services account for your business? Not sure where to start? In this course you’ll get an overview of the history of AWS and take a tour of their user interface.

 
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
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Cloud Class® Course: MCSA MCSE Windows Server 2012

This course teaches how to install and configure Windows Server 2012 R2.  It is the first step on your path to becoming a Microsoft Certified Solutions Expert (MCSE).

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