Pero solo me hereda las propiedades el último...
No tengo ni idea de como solucionarlo.
Algún experto del foro puede ayudarme?
Código ActionScript :
import soulwire.display.PaperSprite; for (var i:int = 0; i < 15; i++) { var myPaperSprite:PaperSprite = new PaperSprite(); myPaperSprite.pivot = new Point(0.5,0.5); //myPaperSprite.x = stage.stageWidth / 2; //myPaperSprite.y = stage.stageHeight / 2; myPaperSprite.front = createSprite(0x66FF00); myPaperSprite.back = createSprite(0xFF3399); myPaperSprite.x = i * 25 + 75; myPaperSprite.y = 100; addChild(myPaperSprite); } function createSprite (colour:uint):Sprite { var mySprite:Sprite = new Sprite(); mySprite.graphics.beginFill ( colour ); mySprite.graphics.drawRect (0,0,25,25); mySprite.graphics.endFill (); return mySprite; } addEventListener ( Event.ENTER_FRAME, spin ); function spin ( event:Event ):void { var mX:Number = ((mouseX / stage.stageWidth) - 0.5) * 360; var mY:Number = ((mouseY / stage.stageHeight) - 0.5) * 360; myPaperSprite.rotationY += (mX - myPaperSprite.rotationY) / 40; myPaperSprite.rotationX += (mY - myPaperSprite.rotationX) / 40; }