Solved

easing rotation as3

Posted on 2011-02-23
2
409 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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

There are times in your Flash CS4 application when you want more than a simple pointer or a hand, and it's hard to find an ideal walk-through to tell you what to do.  I spent a few days recently learning my way around making custom cursors in Flash,…
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…
The goal of the tutorial is to teach the user how to live broadcast using Flash Media Live Encoder and connecting it to YouTube to broadcast. Log into your Youtube account, choose live stream settings, start live stream from Flash Media Live Enc…
The goal of the tutorial is to teach the user how to select the video input device. Make sure you have an input device that in connected and work and recognized by Adobe Flash Media Live Encoder and select it in the “video input” menu.

867 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

16 Experts available now in Live!

Get 1:1 Help Now