package { import flash.display.Sprite; //import stage.scaleMode; import gs.*; import gs.easing.*; import utiles.Dibujo; //Stage Configuration //stage.scaleMode = "noScale"; //stage.align=StageAlign.TOP_LEFT; public class Austria extends Sprite { public function Austria():void { creaBandera(); } private function creaBandera():void { /*var rectangulo : Sprite = Dibujo.forma(Dibujo.CUADRO, {x:0, y:100, width:550, height:100}); addChild(rectangulo); TweenMax.from(rectangulo, 1, {x:0, y:100, scaleX:0, scaleY:0, ease:Back.easeOut});*/ var rectrojo1 : Sprite = Dibujo.forma(Dibujo.CUADRO, {fillColor:0xCC0000, x:0, y:0, width:550, height:100}); addChild(rectrojo1); TweenMax.from(rectrojo1, 1, {x:Math.random()*stage.stageWidth,y:Math.random()*stage.stageHeight,alpha:0,delay:1}); var rectrojo2 : Sprite = Dibujo.forma(Dibujo.CUADRO, {fillColor:0xCC0000, x:0, y:200, width:550, height:100}); addChild(rectrojo2); TweenMax.from(rectrojo2, 1, {x:Math.random()*stage.stageWidth,y:Math.random()*stage.stageHeight,alpha:0,delay:1}); } } }