Array and ArrayCollection do not enforce any kind of type checking on their elements… each element can be anything.
If you need strongly-typed elements, use Vector: macList:Vector.<deviceClass> BTW, the convention is to start class names with a capital letter. Gordon Smith Adobe Flex SDK Team From: [email protected] [mailto:[email protected]] On Behalf Of Eric Dunn Sent: Wednesday, August 26, 2009 8:49 AM To: flexcoders Subject: [flexcoders] An Array of Class Objects??? Hello peeps, I am need of some assistance.. I am trying to define a complex object within a couple of classes. I am trying to build a data structure like: devices deviceType MAC port port port / MAC MAC port / MAC MAC port port / MAC /deviceType deviceType MAC port / MAC MAC port port / MAC MAC port port / MAC /deviceType /devices I have 3 classes defined: deviceClass modelName:string macList: ArrayCollection = new ArrayCollection macClass macID:string portList:portClass portClass portList:array Question: How do I define the macList in the deviceClass to be an array of macClass Objects. I know how to add the objects into the array as I am building the collection, but have no clue on how restrict them to deviceClass objects.. thanks, Eric W Dunn Adaption Technologies 281-465-3326 [email protected]

