<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Flex-Flash-Air-ActionScript-JS &#187; Sprite</title>
	<atom:link href="http://blog.totusinfo.com/tag/sprite/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.totusinfo.com</link>
	<description>totusinfo team</description>
	<lastBuildDate>Wed, 24 Feb 2010 09:38:00 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.1</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Flash CS4 TextElement TextBlock FontDescription TextBlock TextLine</title>
		<link>http://blog.totusinfo.com/flashcs4-textelement-textblock-fontdescription-textblock-textline/</link>
		<comments>http://blog.totusinfo.com/flashcs4-textelement-textblock-fontdescription-textblock-textline/#comments</comments>
		<pubDate>Thu, 11 Feb 2010 17:48:34 +0000</pubDate>
		<dc:creator>druva</dc:creator>
				<category><![CDATA[AIR]]></category>
		<category><![CDATA[Flash]]></category>
		<category><![CDATA[Flex]]></category>
		<category><![CDATA[as3]]></category>
		<category><![CDATA[utils]]></category>
		<category><![CDATA[content]]></category>
		<category><![CDATA[createTextLine]]></category>
		<category><![CDATA[ElementFormat]]></category>
		<category><![CDATA[engine]]></category>
		<category><![CDATA[FontDescription]]></category>
		<category><![CDATA[fontSize]]></category>
		<category><![CDATA[rotationY]]></category>
		<category><![CDATA[Sprite]]></category>
		<category><![CDATA[Text]]></category>
		<category><![CDATA[text engine]]></category>
		<category><![CDATA[TextBlock]]></category>
		<category><![CDATA[TextElement]]></category>
		<category><![CDATA[TextLine]]></category>

		<guid isPermaLink="false">http://blog.totusinfo.com/?p=800</guid>
		<description><![CDATA[This code show how to use TextElement, TextBlock, FontDescription, TextBlock, TextLine

package druva{
import flash.display.Sprite;
import flash.text.engine.*;

public class TextTest extends Sprite {

public function TextTest() {

for (var j:int=0; j&#60;=10; j++) {
var myString:String=&#34;Druva&#34;;
var myFormat:ElementFormat = new ElementFormat();

var myFontDesc:FontDescription=new FontDescription('Georgia','normal','italic','device');
myFormat.fontSize=2+2*j;
myFormat.fontDescription=myFontDesc;
myFormat.color = Math.random() * 0xFFFFEE;

var textElement:TextElement=new TextElement(myString, myFormat);
var textBlock:TextBlock = new TextBlock();
textBlock.content=textElement;

var myTextLine:TextLine=textBlock.createTextLine(null,300);

myTextLine.x = 30+(3*(j*(j+1)/2));
myTextLine.y = 150;

addChild(myTextLine);
myTextLine.addEventListener(Event.ENTER_FRAME, onLoop);
}

}
import flash.events.*;
private function onLoop(e:Event) {
e.currentTarget.rotationY [...]]]></description>
		<wfw:commentRss>http://blog.totusinfo.com/flashcs4-textelement-textblock-fontdescription-textblock-textline/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Flash CS4 PerspectiveProjection projectionCenter with action script</title>
		<link>http://blog.totusinfo.com/flash-cs4-perspectiveprojection-projectioncenter-with-action-script/</link>
		<comments>http://blog.totusinfo.com/flash-cs4-perspectiveprojection-projectioncenter-with-action-script/#comments</comments>
		<pubDate>Wed, 10 Feb 2010 18:13:09 +0000</pubDate>
		<dc:creator>druva</dc:creator>
				<category><![CDATA[Flash]]></category>
		<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[as2]]></category>
		<category><![CDATA[as3]]></category>
		<category><![CDATA[Bitmap]]></category>
		<category><![CDATA[fieldOfView]]></category>
		<category><![CDATA[PerspectiveProjection]]></category>
		<category><![CDATA[Point]]></category>
		<category><![CDATA[projectionCenter]]></category>
		<category><![CDATA[rotationY]]></category>
		<category><![CDATA[Sprite]]></category>
		<category><![CDATA[tranform]]></category>

		<guid isPermaLink="false">http://blog.totusinfo.com/?p=805</guid>
		<description><![CDATA[This code show how to use PerspectiveProjection, projectionCenter tranform, point

var img:Bitmap=new Bitmap(new heart(158, 58));
img.x=-158/2;
img.y=-58/2;
var holder:Sprite=new Sprite();
addChild(holder);
holder.x=stage.stageWidth/2;
holder.y=stage.stageHeight/2;
holder.addChild(img);

var pp:PerspectiveProjection=new PerspectiveProjection();
pp.fieldOfView = 120
pp.projectionCenter=new Point(holder.x,holder.y);
holder.transform.perspectiveProjection=pp;

function swingImage(e:Event):void {
	holder.rotationY+=3;
}
this.addEventListener(Event.ENTER_FRAME, swingImage);











]]></description>
		<wfw:commentRss>http://blog.totusinfo.com/flash-cs4-perspectiveprojection-projectioncenter-with-action-script/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>flash effects with bitmapdata</title>
		<link>http://blog.totusinfo.com/flash-effects-with-bitmapdata-2/</link>
		<comments>http://blog.totusinfo.com/flash-effects-with-bitmapdata-2/#comments</comments>
		<pubDate>Mon, 08 Feb 2010 04:11:51 +0000</pubDate>
		<dc:creator>druva</dc:creator>
				<category><![CDATA[Flash]]></category>
		<category><![CDATA[Flex]]></category>
		<category><![CDATA[as3]]></category>
		<category><![CDATA[alphaMultiplier]]></category>
		<category><![CDATA[applyFilter]]></category>
		<category><![CDATA[Bitmap]]></category>
		<category><![CDATA[BitmapData]]></category>
		<category><![CDATA[BitmapDataChannel]]></category>
		<category><![CDATA[BlendMode]]></category>
		<category><![CDATA[blueMultiplier]]></category>
		<category><![CDATA[draw]]></category>
		<category><![CDATA[greenMultiplier]]></category>
		<category><![CDATA[Matrix]]></category>
		<category><![CDATA[setTextFormat]]></category>
		<category><![CDATA[Sprite]]></category>
		<category><![CDATA[TextFieldAutoSize]]></category>
		<category><![CDATA[TextFormat]]></category>
		<category><![CDATA[translate]]></category>

		<guid isPermaLink="false">http://blog.totusinfo.com/?p=688</guid>
		<description><![CDATA[Flash is great!!










]]></description>
		<wfw:commentRss>http://blog.totusinfo.com/flash-effects-with-bitmapdata-2/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How to Convert TextField to Bitmap using Flash and AS3</title>
		<link>http://blog.totusinfo.com/convert-textfield-to-bitmap-flash-as3/</link>
		<comments>http://blog.totusinfo.com/convert-textfield-to-bitmap-flash-as3/#comments</comments>
		<pubDate>Thu, 04 Feb 2010 03:15:18 +0000</pubDate>
		<dc:creator>druva</dc:creator>
				<category><![CDATA[Flash]]></category>
		<category><![CDATA[Flex]]></category>
		<category><![CDATA[as3]]></category>
		<category><![CDATA[utils]]></category>
		<category><![CDATA[as2]]></category>
		<category><![CDATA[AutoSize]]></category>
		<category><![CDATA[Bitmap]]></category>
		<category><![CDATA[BitmapData]]></category>
		<category><![CDATA[BitmapUtils]]></category>
		<category><![CDATA[smoothing]]></category>
		<category><![CDATA[Sprite]]></category>
		<category><![CDATA[TextField]]></category>
		<category><![CDATA[TextFieldAutoSize]]></category>

		<guid isPermaLink="false">http://blog.totusinfo.com/?p=678</guid>
		<description><![CDATA[Convert TextField to Bitmap

package {
	import flash.display.*;
	import flash.display.BitmapData;
	import flash.display.Sprite;
	import flash.text.TextField;
	import flash.text.TextFormat;
	import flash.text.TextFieldAutoSize;

	public class BitmapUtils extends Sprite {
		public function BitmapUtils() {
			addChild(tf2bm('Druva'));
		}
		public function tf2bm(str:String) {
			var fmt:TextFormat;
			var bmd:BitmapData;
			var bm:Bitmap;
			var tf:TextField;

			fmt = new TextFormat();
			fmt.font='Verdana';
			fmt.size=30;

			tf = new TextField();
			tf.text=str;
			tf.setTextFormat(fmt);
			tf.autoSize=TextFieldAutoSize.LEFT;
			bmd=new BitmapData(tf.width,tf.height,true,0);
			bmd.draw(tf);
			bm=new Bitmap(bmd);
			bm.smoothing=true;
			return bm
		}
	}
}

]]></description>
		<wfw:commentRss>http://blog.totusinfo.com/convert-textfield-to-bitmap-flash-as3/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Flood Fill with Flash ActionScript</title>
		<link>http://blog.totusinfo.com/flood-fill/</link>
		<comments>http://blog.totusinfo.com/flood-fill/#comments</comments>
		<pubDate>Fri, 01 Jan 2010 10:41:31 +0000</pubDate>
		<dc:creator>druva</dc:creator>
				<category><![CDATA[Flash]]></category>
		<category><![CDATA[as3]]></category>
		<category><![CDATA[utils]]></category>
		<category><![CDATA[Bitmap]]></category>
		<category><![CDATA[fillRect]]></category>
		<category><![CDATA[floodFill]]></category>
		<category><![CDATA[Rectangle]]></category>
		<category><![CDATA[Sprite]]></category>

		<guid isPermaLink="false">http://blog.totusinfo.com/?p=303</guid>
		<description><![CDATA[example

import flash.display.*;
import flash.events.MouseEvent;
import flash.geom.Rectangle;

var _rectData:BitmapData = new BitmapData(300, 300);

function FloodFill () {

	_rectData.fillRect(new Rectangle(0, 0, 150, 150), 0xFFCCCCCC);
	_rectData.fillRect(new Rectangle(150, 0, 150, 150), 0xFFCC0000);
	_rectData.fillRect(new Rectangle(0, 150, 150, 150), 0xFF00CC00);
	_rectData.fillRect(new Rectangle(150, 150, 150, 150), 0xFF0000CC);

	var rect:Sprite = new Sprite();
	addChild(rect);

	var bitmap:Bitmap = new Bitmap(_rectData);
	rect.addChild(bitmap);

	rect.addEventListener(MouseEvent.CLICK, onclickRect);
}

function onclickRect(event:MouseEvent):void {
	_rectData.floodFill(mouseX, mouseY, 0xFF000000 &#124; Math.random() * 0xCCCCCC);
}

FloodFill();












]]></description>
		<wfw:commentRss>http://blog.totusinfo.com/flood-fill/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>draw Ellipse with flash action script</title>
		<link>http://blog.totusinfo.com/draw-ellipse-with-flash-action-script/</link>
		<comments>http://blog.totusinfo.com/draw-ellipse-with-flash-action-script/#comments</comments>
		<pubDate>Sat, 20 Jun 2009 12:26:18 +0000</pubDate>
		<dc:creator>Vineela</dc:creator>
				<category><![CDATA[Flash]]></category>
		<category><![CDATA[Flex]]></category>
		<category><![CDATA[as3]]></category>
		<category><![CDATA[utils]]></category>
		<category><![CDATA[addChild]]></category>
		<category><![CDATA[drawEllipse]]></category>
		<category><![CDATA[lineStyle]]></category>
		<category><![CDATA[Shape]]></category>
		<category><![CDATA[Sprite]]></category>

		<guid isPermaLink="false">http://blog.totusinfo.com/?p=461</guid>
		<description><![CDATA[
package druva {

 import flash.display.*;

 public class drawEllipse extends Sprite {

 public function drawEllipse() {
 var canvas:Shape = new Shape(  );
 canvas.graphics.lineStyle(3, 0xFF0000);
 canvas.graphics.drawEllipse(0,0,100,50);
 addChild(canvas);

 }
 }
}












]]></description>
		<wfw:commentRss>http://blog.totusinfo.com/draw-ellipse-with-flash-action-script/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Number ordinalise using ActionScript</title>
		<link>http://blog.totusinfo.com/number-ordinalise-using-actionscript/</link>
		<comments>http://blog.totusinfo.com/number-ordinalise-using-actionscript/#comments</comments>
		<pubDate>Thu, 28 May 2009 06:48:39 +0000</pubDate>
		<dc:creator>druva</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[NumberUtil]]></category>
		<category><![CDATA[ordinalise]]></category>
		<category><![CDATA[Sprite]]></category>
		<category><![CDATA[substr]]></category>

		<guid isPermaLink="false">http://blog.totusinfo.com/?p=427</guid>
		<description><![CDATA[The below code shows how to use the class


import druva.NumberUtil;

trace(NumberUtil.ordinalise(1));//  1st
trace(NumberUtil.ordinalise(2));//  2nd
trace(NumberUtil.ordinalise(3));//  3rd
trace(NumberUtil.ordinalise(4));//  4th
trace(NumberUtil.ordinalise(111));//  3rd
trace(NumberUtil.ordinalise(113));//  4th

This is the actual class for validation


package druva{
	import flash.display.Sprite;

	public class NumberUtil extends Sprite {
		public function NumberUtil() {
		}

		public static function ordinalise(number:Number):String {
			var numS:String=String(number);
			var suffix:String;
			if (numS.substr(-2,2)!=&#34;13&#34;&#38;&#38;numS.substr(-2,2)!=&#34;12&#34;&#38;&#38;numS.substr(-2,2)!=&#34;11&#34;) {
				if (numS.substr(-1,1)==&#34;1&#34;) {
					suffix=&#34;st&#34;;
				} else if (numS.substr(-1, 1) == &#34;2&#34;) {
					suffix=&#34;nd&#34;;
				} [...]]]></description>
		<wfw:commentRss>http://blog.totusinfo.com/number-ordinalise-using-actionscript/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How to Draw a Circle with Flash Actionscript 3.0 &#8211;  AS3</title>
		<link>http://blog.totusinfo.com/draw-cirlce-flash-actionscript-as3/</link>
		<comments>http://blog.totusinfo.com/draw-cirlce-flash-actionscript-as3/#comments</comments>
		<pubDate>Sun, 04 Jan 2009 18:14:30 +0000</pubDate>
		<dc:creator>Vineela</dc:creator>
				<category><![CDATA[Flash]]></category>
		<category><![CDATA[Flex]]></category>
		<category><![CDATA[as3]]></category>
		<category><![CDATA[utils]]></category>
		<category><![CDATA[ActionScript]]></category>
		<category><![CDATA[as2]]></category>
		<category><![CDATA[drawCircle]]></category>
		<category><![CDATA[lineStyle]]></category>
		<category><![CDATA[Shape]]></category>
		<category><![CDATA[Sprite]]></category>

		<guid isPermaLink="false">http://blog.totusinfo.com/?p=395</guid>
		<description><![CDATA[
package druva {

 import flash.display.*;

 public class drawCircle extends Sprite {

 public function drawCircle() {
 var canvas:Shape = new Shape(  );
 canvas.graphics.lineStyle(3, 0xFF0000);
 canvas.graphics.drawCircle(100,100,50);
 addChild(canvas);

 }
 }
}

]]></description>
		<wfw:commentRss>http://blog.totusinfo.com/draw-cirlce-flash-actionscript-as3/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
