Skip to main content
Participant
May 23, 2008
Question

Tween on N800

  • May 23, 2008
  • 1 reply
  • 203 views
Hi, I'm new to Flash and Actionscript. I'm working on writing a game in Actionscript 3 for the Nokia N800 Internet Tablet. I'm having trouble getting a Tween to appear smoothly. I have a line like this in my code:

overallTween = new Tween(overallContainer, "x", None.easeNone, 0, -833, 10, false);

The variable overallContainer is a Movie Clip that I added using the GUI. overallContainer has four other movie clips as children, and each of those four movie clips has five to ten children, which are bitmaps and textFields. When the above line executes on the N800, everything slides very slowly to the left, at about 2 fps. Also, it looks jerky and intermittent instead of smooth. When it executes on a desktop, it runs smoothly, at about 30 fps. 30 fps is the value I set in the fla file. Also, when I try executing the same Tween on a container with just one child, it displays smoothly on the N800. When the container has many children, I think the reason it's not smooth is because the CPU is being used a lot during the Tween. (The N800's CPU runs at 400 MHz.) Does anyone know of another way to do this same tween, or a similar effect, using fewer CPU cycles? Or is there another way to make it smoother? Thanks.
This topic has been closed for replies.

1 reply

Participant
May 23, 2008
I’ve been looking into various ActionScript 3.0 (AS3) Tween Class Libraries for Flash. Here’s what I’ve found so far:

Tweener ( http://code.google.com/p/tweener/)

* robust and fast
* adds about 11K of file size
* can easily tween “currentFrame” to control an animation forward or backwards along a timeline in a MovieClip

TweenerLite ( http://blog.greensock.com/tweenliteas3/)

* Nice, small and fast.
* adds about 3K of file size
* But I’ve seen buggy behavior when trying to change a Tween on a property without cancelling Tweens on other properties of the same MovieClip.
* Should be fine for simple Tweens.

Adobe built-in fl.transitions.Tween Class

* Official Tween class from Adobe
* adds about 2K of file size
* Much slower than Tweener and TweenLite
* Tween to multiple properties require multiple Tween objects

If you are using Adobe's built-in fl.transitions.Tween Class then I'd suggest trying either Tweener or TweenLite.

Good luck and let us know how it works out. I'm curious how the Flash performance on the N800 will be.

-Norm