thanx Cor

But i need like this

http://www.somersetdesign.co.uk/3drotator.php

regards
amol

----- Original Message ----- From: "Cor" <c...@chello.nl>
To: "'Flash Coders List'" <flashcoders@chattyfig.figleaf.com>
Sent: Monday, April 25, 2011 12:26 PM
Subject: RE: [Flashcoders] 360 degree rotation


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

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

Reply via email to