Question
Tween on N800
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.
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.