Rotating device fonts using flash actionscript

Posted by Vineela | Flash, as3, utils | Monday 30 November 2009 6:38 am

package druva{
import flash.display.Sprite;
import flash.text.TextField;
import flash.text.TextFormat;

public class textEffect extends Sprite {

	public function textEffect () {

		for (var i:int = 2; i <= 12; i++) {
			var txt:TextField = new TextField();
			txt.selectable = false;
			txt.width = 400;
			txt.text = "blog.totusinfo.com";
			txt.setTextFormat(new TextFormat("Georgia", 2*i,(2 + 0.35*i) * 0xCCCC00,false,true ));

			txt.x = 4.5*(i*(i+1)/2);
			txt.y = 3*(i*(i+2)/2);
			txt.rotationZ = 20;
			addChild(txt);
		}

	}
}
}

This movie requires Flash Player 9