Link to home
Start Free TrialLog in
Avatar of higginz
higginz

asked on

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

ASKER CERTIFIED SOLUTION
Avatar of ChristoferDutz
ChristoferDutz
Flag of Germany image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of higginz
higginz

ASKER

thank you!