var myObjects:Array = new Array();

for(var i:Number = 0; i<10; i++)
{
        myObject = new Object();
        myObject.id = "myObject"+i
        trace(myObject.id)
        myObjects.push(myObject);
}

trace(myObjects[0]);


ACE Flash wrote:
hi there, I am trying to dynamically create objects and target them
later....

Thanks

var myObject:Object;

for(var i:Number = 0; i<10; i++)
{
myObject = new Object();
myObject.id = "myObject"+i
trace(myObject.id)
}

// how do I target them here?

// myObject[0]?
_______________________________________________
Flashcoders mailing list
[email protected]
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders



_______________________________________________
Flashcoders mailing list
[email protected]
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Reply via email to