Solved

easing rotation as3

Posted on 2011-02-23
2
407 Views
Last Modified: 2013-11-11
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
Comment
Question by:higginz
2 Comments
 
LVL 20

Accepted Solution

by:
ChristoferDutz earned 500 total points
ID: 34967924
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
 

Author Closing Comment

by:higginz
ID: 35023363
thank you!
0

Featured Post

Highfive Gives IT Their Time Back

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

I have been doing hardcore actionscripting for some time; and needless to say I have faced a lot of problems in just understanding others' code rather than understanding what the code executes. A programmer's life can become hell when there are a lo…
The last time I worked with Flash and Socket connections was in AS1. A recent project required flash connecting to a Socket, and sending receiving information - we figured it would be easy enough - we all know about the socket policy documents and c…
In this tutorial viewers will learn how to create a basic motion tween animation in Flash Open a new document in Flash: Draw/import an image: Press CTRL + F8 to convert it into a graphic symbol: Select a frame (how long you want the tween to last): …
This Micro Tutorial will teach to how to utilize bit rate in Adobe Flash Media Live Encoder.

758 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

23 Experts available now in Live!

Get 1:1 Help Now