1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34
|
public class Main extends Sprite
{
/*déclarartion de mes var*/
public function Main()
{
var rectangle:Shape = new Shape ();
rectangle.graphics.beginFill(fluxXML.bgColor);
rectangle.graphics.drawRect(0, 0, stW, stH);
contenuGlobal.fenetreContenuBg.addChildAt(rectangle, 0);
var t:Timer = new Timer(4000, 1);
t.start();
t.addEventListener(TimerEvent.TIMER, function(e:TimerEvent)
{
contenuGlobal.width = stW;
contenuGlobal.height = stH;
});
}
private function ajoutLoader(urlStr:String, x:Number, y:Number, scaleX:Number, scaleY:Number, rotate:Number, level:Number, alpha:Number, isDropShadow:String, isFlou:String, isBiseau:String, isRayonnement:String, isAnim:String, valueAnim:String, isReflection:String):void
{
var imgSmoothy:ImageSmoothy = new ImageSmoothy(urlStr, root.loaderInfo.parameters.racine);
imgSmoothy.x = x;
imgSmoothy.y = y;
imgSmoothy.rotation = rotate;
imgSmoothy.alpha = alpha;
imgSmoothy.scaleX = scaleX;
imgSmoothy.scaleY = scaleY;
contenuGlobal.fenetreContenu.addChild(imgSmoothy);
} |
Partager