vendredi 29 mai 2015

Adding random IsoSpirite to the IsoSence

I am trying to add deffrent type of objects to a scene using as3Isolib.

I have all of my objects ( each object has different class ) in an array and then pass them using for loop to a temp spirit then add them to the sence:

for(var I=0; I<ObjectArray.length; I++)
{   
    var tempSprit:IsoSprite = new IsoSprite();
    var tempMC:* =  ObjectArray[I];

    tempSprit.sprites = [ tempMC ];
    scene.addChild(tempSprit);
}           

But nothing has been added to the scene after the issuing the render() function!

Can someone help me?

Aucun commentaire:

Enregistrer un commentaire