Note that the annotation is only for compile-time checking (and only for MXML, it looks like?), so you were still mostly correct, Paul.
If he wants to get really fancy and can require FlashPlayer 10, there's always Vector: http://livedocs.adobe.com/flex/3/langref/Vector.html -- Maciek Sakrejda Truviso, Inc. http://www.truviso.com -----Original Message----- From: Paul Andrews <p...@ipauland.com> Reply-to: flexcoders@yahoogroups.com To: flexcoders@yahoogroups.com Subject: Re: [flexcoders] Array of objects Date: Fri, 13 Mar 2009 09:02:55 -0000 LOL, I should be doing the tutorials! http://livedocs.adobe.com/flex/201/html/wwhelp/wwhimpl/common/html/wwhelp.htm?context=LiveDocs_Book_Parts&file=metadata_141_05.html Paul ----- Original Message ----- From: "Paul Andrews" <p...@ipauland.com> To: <flexcoders@yahoogroups.com> Sent: Friday, March 13, 2009 8:59 AM Subject: Re: [flexcoders] Array of objects > > ----- Original Message ----- > From: "christophe_jacquelin" <christophe_jacque...@yahoo.fr> > To: <flexcoders@yahoogroups.com> > Sent: Friday, March 13, 2009 8:46 AM > Subject: [flexcoders] Array of objects > > >> Hello, >> >> How to declare an array of n Objects of the class myClass ? How did we >> indicates the type of the object to the array ? > > private var myArray:Array = []; // You cannot give the array a dimension, > nor can you type the obects it holds > private var anArray:Array = new Array(); // alternative. Naturally it > doesn't have to be private.. > > Please do some tutorials Christophe. > > Paul > >> >> Thank you, >> Christophe, >> >> >> >> ------------------------------------ >> >> -- >> Flexcoders Mailing List >> FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt >> Alternative FAQ location: >> https://share.acrobat.com/adc/document.do?docid=942dbdc8-e469-446f-b4cf-1e62079f6847 >> Search Archives: >> http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo! Groups >> Links >> >> >> > > > > ------------------------------------ > > -- > Flexcoders Mailing List > FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt > Alternative FAQ location: > https://share.acrobat.com/adc/document.do?docid=942dbdc8-e469-446f-b4cf-1e62079f6847 > Search Archives: > http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo! Groups > Links > > >