If anyone's seen me posting lots of questions about this project in the past couple days, I greatly appreciate everyone's help. Having lots of trouble and deadline is coming up soon.
The sample file (fla and swf) is located here:
http://www.mediafire.com/download.php?ejy6j9h9r1c1829
If you load the .swf, it's super intense on the cpu and ram usage and I don't know how to fix it. That .swf at the link above is only loading two videos, in which my real one is loading about 45 videos (totaling 78MB) and they're both using about the same cpu usage. The one loading more videos is using nearly 1GB of ram as well.
I don't know how to find what the main problem is. I've been having lots of help, so the code isn't optimized or refactored at all. It's repeatedly calling a php file every three seconds (flashpull.php) to check for a variable in a database on my server. When I inspected the local storage, it was infinitely putting more and more "flashpull.php" files on the server, but that file is only 2KB and i dont think that would cause the swf to be as intensive as it is. Is there a way I can keep checking that file, but overwrite the local storage copy, or is that even a big deal?
I'm using greensock to load all the videos, I have maxConnections set at 6, don't know if that affects it.
I'm really hoping there's a glaring problem or memory leak, instead of the overall file just being so bloated that it's causing such bad performance. ANY help is greatly appreciated, thanks
You seem to have a 3D rotation applied to your video container. On the stage, select the clip "rewinder", and in Property Inspector -> 3D position you'll see a Y rotation of -1. That means that every frame, Flash is rendering your video into a bitmap and applying a slight 3D transformation. Which is very costly, and I have a feeling, not intended. ;)
To fix, Modify > Transform > Remove transform (ctrl-shift-Z). Or just setting the Y rotation back to zero should work as well.
addChild( new Stats() );
somewhere appropriate. Are you getting an error? If you're just not seeing it, it might be underneath something else.. try making a movieclip for stats, adding the code inside, and putting that MC on top of everything else on the stage - fenomas 2012-04-06 09:56