<?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; rotation</title>
	<atom:link href="http://blog.totusinfo.com/tag/rotation/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>Rotating and moving the image using action script</title>
		<link>http://blog.totusinfo.com/rotating-and-moving-the-image-using-action-script/</link>
		<comments>http://blog.totusinfo.com/rotating-and-moving-the-image-using-action-script/#comments</comments>
		<pubDate>Tue, 09 Feb 2010 10:14:16 +0000</pubDate>
		<dc:creator>druva</dc:creator>
				<category><![CDATA[Flash]]></category>
		<category><![CDATA[as3]]></category>
		<category><![CDATA[utils]]></category>
		<category><![CDATA[ENTER_FRAME]]></category>
		<category><![CDATA[rotation]]></category>

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

druva.addEventListener(Event.ENTER_FRAME, rightAnimation);

function rightAnimation (e:Event):void {
  if (druva.x &#60;= 300) {
	druva.x += 1;
	if (druva.x &#62; 300) {
	  druva.x -= 300;
	}
	druva.rotation += 10;
  }
}











]]></description>
		<wfw:commentRss>http://blog.totusinfo.com/rotating-and-moving-the-image-using-action-script/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Fly move according to the mouse movement</title>
		<link>http://blog.totusinfo.com/fly-move-according-to-the-mouse-movement/</link>
		<comments>http://blog.totusinfo.com/fly-move-according-to-the-mouse-movement/#comments</comments>
		<pubDate>Sun, 21 Dec 2008 07:45:13 +0000</pubDate>
		<dc:creator>druva</dc:creator>
				<category><![CDATA[CSS]]></category>
		<category><![CDATA[Flash]]></category>
		<category><![CDATA[as3]]></category>
		<category><![CDATA[utils]]></category>
		<category><![CDATA[atan2]]></category>
		<category><![CDATA[ENTER_FRAME]]></category>
		<category><![CDATA[mouseX]]></category>
		<category><![CDATA[mouseY]]></category>
		<category><![CDATA[rotation]]></category>

		<guid isPermaLink="false">http://blog.totusinfo.com/?p=860</guid>
		<description><![CDATA[This code shows the movement of the object fly according to the mouse movement


var flySpeed:Number = 0.1;

fly.addEventListener(Event.ENTER_FRAME,flyMove);

function flyMove(event:Event):void {

	var fly_x:Number = (mouseX - fly.x) * flySpeed;
	var fly_y:Number = (mouseY - fly.y) * flySpeed;
	var angle = Math.atan2(fly_y, fly_x);
	fly.x += fly_x;
	fly.y += fly_y;
	fly.rotation = 90 +(angle * 180 / 3.141593E+000);

}











]]></description>
		<wfw:commentRss>http://blog.totusinfo.com/fly-move-according-to-the-mouse-movement/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Flash Rotation2</title>
		<link>http://blog.totusinfo.com/flash-rotation2/</link>
		<comments>http://blog.totusinfo.com/flash-rotation2/#comments</comments>
		<pubDate>Fri, 17 Oct 2008 13:00:47 +0000</pubDate>
		<dc:creator>druva</dc:creator>
				<category><![CDATA[Flash]]></category>
		<category><![CDATA[as3]]></category>
		<category><![CDATA[Flex]]></category>
		<category><![CDATA[MOUSE_DOWN]]></category>
		<category><![CDATA[MOUSE_MOVE]]></category>
		<category><![CDATA[MOUSE_UP]]></category>
		<category><![CDATA[rotation]]></category>

		<guid isPermaLink="false">http://blog.totusinfo.com/?p=14</guid>
		<description><![CDATA[This is another way of rotation related to my previous post
Rotation changes depending on the mousex position


rotator.addEventListener(MouseEvent.MOUSE_DOWN, initialize);
rotator.addEventListener(MouseEvent.MOUSE_MOVE, mouseMover);
rotator.addEventListener(MouseEvent.MOUSE_UP, deinitialize);

var dragging;
var actual_rotation;
var mouse_pos;

function initialize(evt:Event){
 mouse_ref = mouseX;
 dragging = true;
 actual_rotation = rotator.rotation;

}

function mouseMover(evt:Event){
 if(dragging){
 rotator.rotation = actual_rotation + (mouseX - mouse_pos)* 3;
 }

}

function deinitialize(evt:Event){
 dragging = false;
}











]]></description>
		<wfw:commentRss>http://blog.totusinfo.com/flash-rotation2/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Flash-Rotation</title>
		<link>http://blog.totusinfo.com/flash-rotation/</link>
		<comments>http://blog.totusinfo.com/flash-rotation/#comments</comments>
		<pubDate>Wed, 15 Oct 2008 06:35:07 +0000</pubDate>
		<dc:creator>druva</dc:creator>
				<category><![CDATA[Flash]]></category>
		<category><![CDATA[as3]]></category>
		<category><![CDATA[utils]]></category>
		<category><![CDATA[rotation]]></category>

		<guid isPermaLink="false">http://blog.totusinfo.com/?p=23</guid>
		<description><![CDATA[This shows how you can rotation a button around itself on clicking and moving the mouse.


rotator.addEventListener(MouseEvent.MOUSE_DOWN, initialize);
rotator.addEventListener(MouseEvent.MOUSE_MOVE, mouseMover);
rotator.addEventListener(MouseEvent.MOUSE_UP, deinitialize);

var dragging;
var actual_mouse_angle;
var actual_rotation;
var actual_x;

function initialize(evt:Event){
 dragging = true;
 actual_mouse_angle = Math.atan2(mouseY-rotator.y, mouseX-rotator.x) * 180/Math.PI;
 actual_rotation = rotator.rotation;
 actual_x = mouseX;
}

function mouseMover(evt:Event){
 if(dragging){
 curr_mouse_angle = Math.atan2(mouseY-rotator.y, mouseX-rotator.x) * 180/Math.PI;
 rotator.rotation = actual_rotation + curr_mouse_angle - actual_mouse_angle;
 }
}

function [...]]]></description>
		<wfw:commentRss>http://blog.totusinfo.com/flash-rotation/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

