Oops, forgot to put it on stage:

var obj:Sprite = new Sprite();
obj.graphics.beginFill(0xff0000);
obj.graphics.drawRect(0,0,20,20);
obj.graphics.endFill();
obj.x = 50;
obj.y = 50;
addChild(obj);

function init():void{
addEventListener(Event.ENTER_FRAME, rotate, false,0,true);      
}

function rotate(e:Event):void{
obj.rotation +=5;
}

//start the show
init();


regards
Cor


_______________________________________________
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Reply via email to