• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 429
  • Last Modified:

easing rotation as3

How can I ease the rotation of an object between returned values?
var mycam:Camera = Camera.getCamera ();
trace (mycam);



video1.attachCamera(mycam);


function update(event:Event):void
{
	var activity:Number = mycam.activityLevel;
	if (activity>0)
	{
		
		
		red.rotation=red.rotation+ (activity * .45);
		
		trace(activity);
	}
}
function camstart (event:Event)
{
	
}
mycam.addEventListener (ActivityEvent.ACTIVITY,camstart);
addEventListener (Event.ENTER_FRAME,update);

Open in new window

0
higginz
Asked:
higginz
1 Solution
 
ChristoferDutzCommented:
My favourite is deffinitely Tweener ... it's a small lib that allows to to transition between 2 states.
http://code.google.com/p/tweener/

Here some examples:
http://asgamer.com/2009/using-tweener-in-as3-to-move-objects
0
 
higginzAuthor Commented:
thank you!
0

Featured Post

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Tackle projects and never again get stuck behind a technical roadblock.
Join Now