Solved

Which is faster - Actionscript Tween or in-flash animation?

Posted on 2008-10-28
3
342 Views
Last Modified: 2013-11-11
I am working on a new Flash game, and have currently animated the 'peeps' walking using the actionscript Tween class. The movements are stored in an array and executed one after the other.

However, performance is a big issue in this game, and I was wondering if it would be less CPU intensive if I created the animations in flash and then did a gotoAndPlay('walk') instead?
0
Comment
Question by:JPardoe
3 Comments
 
LVL 9

Expert Comment

by:asaivan
ID: 22824625
Not that I'm aware of.  Things on the timeline just compile down to binary anyway, same as AS.  My thought is, that it's less intensive overall to use ActionScript.  But it may just be the same.
0
 
LVL 1

Accepted Solution

by:
trypt earned 125 total points
ID: 22840457
as tween is definitely faster than timeline tween.
but if u're so concern about performance,
i suggest not to use the default tween class in the class library.
go get TweenMax from greensock. it's the fastest as tween engine so far that i know...
or get Tweener from google code, that one is also a great tween engine, but not as fast as TweenMax.
0
 

Author Comment

by:JPardoe
ID: 22849700
Many thanks for your input! That info was very useful!
0

Featured Post

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

This is a very simple example to help those of you who are still migrating from AS2 to AS3 understand the redesigned event model in AS3. In AS2.0, event functions (that is, the function to be performed when an event is fired) were stored as a pro…
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 how to load their YouTube profile onto Flash Media Live Encoder.
This Micro Tutorial will teach to how to utilize bit rate in Adobe Flash Media Live Encoder.

747 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

12 Experts available now in Live!

Get 1:1 Help Now