Solved

easing rotation as3

Posted on 2011-02-23
2
418 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

Online Training Solution

Drastically shorten your training time with WalkMe's advanced online training solution that Guides your trainees to action. Forget about retraining and skyrocket knowledge retention rates.

Question has a verified solution.

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

Introduction This article is primarily concerned with ActionScript 3 and generally specific to AVM2.  Most suggestions would apply to ActionScript 2 as well, and I've noted those tips that differ between AS2 and AS3. With the advent of ActionS…
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 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.
The goal of the tutorial is to teach the user what frame rate is, how to control it and what effect it has on the video.

726 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