In an AS3 Project I have a MovieClip in the Library which class (identifier) is DataCard.
My project fetches data from a database through a PHP File, and retruns data in an Array. Now in this project i wanted to do exactly what I used to do in AS2: for(i = 0; i<dataLength; i++) { var MC = this.attachMovieClip("DataCard", "DataCard_" + i, this.getNextHighestDepth()); } in this case flash created as much DataCards Instances as the number of indexes in the Array. In AS3 I tried the follwoing for(var i = 0; i<dataLength; i++) { var DC:DataCard = new DataCard(); DC.y += 30; } What comes up is an only one instance of the movieClip as in one replaces the one before. Is there another way to achieve this? How can I add instance name to the MovieClip using the i from the loop? Thanks for the help. -- Omar M. Fouad - Digital Emotions http://www.omarfouad.net This e-mail and any attachment is for authorised use by the intended recipient(s) only. It may contain proprietary material, confidential information and/or be subject to legal privilege. It should not be copied, disclosed to, retained or used by, any other party. If you are not an intended recipient then please promptly delete this e-mail and any attachment and all copies and inform the sender. Thank you. _______________________________________________ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders