Skip to main content
September 30, 2007
Question

No tweening, but still lagging

  • September 30, 2007
  • 7 replies
  • 531 views
Just when I think I've got a good understanding of Flash, I come across something that I never would have thought about before. I was always told that if I animate everything through actionscript, it will run much more smoothly than if I used tweening. Now I animate everything through actionscript, but I'm still having problems with my apps lagging. Would it have to do with the stage being 1366x768? I know that's an unusually large size for flash to push out. I work on a very good/fast mac, so I don't think it has to do with the computer I'm running it on. I read something recently about conserving CPU usage by calling upon scripts only when needed. I didn't know I could even be executing a script when I didn't need it. Is there something I'm completely missing here?
This topic has been closed for replies.

7 replies

November 27, 2007
I see...ok guess I'll have to find some other ways to reduce the lag. Thanks!
kglad
Community Expert
Community Expert
November 26, 2007
no.
November 26, 2007
Hi,

I've got a similar problem. Just wished to enquire, what if the images I'm using are already bitmap images instead of vectors? Will it make a difference to "cacheAsBitmap" on a bitmap movieclip?

Thanks!
October 29, 2007
thank you very much for your help!
kglad
Community Expert
Community Expert
October 29, 2007
you're welcome.
kglad
Community Expert
Community Expert
October 26, 2007
if you're not doing much scaling, alpha changes and rotations you might get a significant benefit (with flash 8 or 9) by enabling the cacheAsBitmap properties of those movieclips that aren't scaling etc.
October 26, 2007
my flash movies do load graphics on a large scale. i noticed that when i scale my swf down, the movie runs flawless, but when i scale it up it starts to lag. that probably has to do with loading all those objects. my coding is very simple and i apply it directly to the movie clips that i'm targetting so the code only exists when that movie clip is on the stage. are there any quick fixes (or any fixes for that matter) that might keep my movie from lagging as much? are png files that much worse than jpg files?
kglad
Community Expert
Community Expert
October 1, 2007
that stage is no problem. if you have thousands of objects that flash must manipulate that could cause a performance problem, but more likely you have some inefficient coding.