sachin
sachin

Reputation: 1015

Swf is taking too much time to load, how do I make it faster?

I developed a project in flex and catalyst and the size of swf is too much, sometimes its take too much time to load. Product is already ready, so i cant change in code too much. Please help me to solve this issue. one more thing sometimes its load very fast and sometimes its take lots of time. Why its like that?

Upvotes: 1

Views: 1964

Answers (3)

Sean Fujiwara
Sean Fujiwara

Reputation: 4546

You're exporting a release build, not a debug build, right?

You can download SWFWire Inspector to examine what's in your file, and why it's so big. Like J_A_X said, it's probably mostly embedded assets, which you can try to load separately.

Disclaimer: I wrote this application

Upvotes: 1

J_A_X
J_A_X

Reputation: 12847

Quick answer is that there's no quick solution. There are several things you can do like caching RSLs (using the Adobe signed one), creating your own RSLs, dividing your application into modules, remove all embedded media and make it load on demand, use vectors (FXG) instead of bitmap files (png, jpg, etc) and make sure you don't add things that aren't needed.

All of these can make an application load faster and be much more responsive. The problem is that it's not a quick solution and needs quite a bit of architecting. Normally, you start this from the beginning of your project. From the sounds of it, you didn't know most of these concepts and you've added everything to one massive swf file (including RSLs).

You've got a long road ahead of you.

Upvotes: 2

MACMAN
MACMAN

Reputation: 1971

Do you have any query made to server? In that case it's better to check the server capabilities.

Upvotes: 1

Related Questions