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
DJ_AM_JuiceboxAsked:
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

x
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

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
Determine the Perfect Price for Your IT Services

Do you wonder if your IT business is truly profitable or if you should raise your prices? Learn how to calculate your overhead burden with our free interactive tool and use it to determine the right price for your IT services. Download your free eBook now!

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

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Adobe Flash

From novice to tech pro — start learning today.