-
Decreasing load time
I have a menu on my website that is aprox 1 MB in size, and I don't want the viewer to have to wait that long for the menu to load. If I make some parts of the menu into seperate SWF files, will they be included in the file size the orignal SWF preloader uses? Also, what if I called the imported SWF before it was completely downloaded? And could I build a sepereate preloader for each seperate SWF and have work the same way?
Also, are there any general tips I could use to optomize loading time and file size?
-
your menu is 1mb?!? (just verifying)
-
-
That is one large menu!
What do you have in it? PNG sequences? Videos? Music? High quality sounds?
Hard to give any recomendations whitout knowing what you got...
/Mirandir
-
Small .avi files. 10 of them to be exact, but none of this really has to do with my original question.
-
If I make some parts of the menu into seperate SWF files, will they be included in the file size the orignal SWF preloader uses?
No. They need to use their own preloader.
what if I called the imported SWF before it was completely downloaded?
It will play as long as the playhead won't reach a frame that isn't loaded yet. If it does it will stop there.
Also, are there any general tips I could use to optomize loading time and file size?
* Don't use video?
* Use a 3rd party app that has better videocompression like sorens squeeze.
* Turn down the quality of the videos.
* Put them in swf's and load them when needed.
/Mirandir
-
I put the files into seperate SWF's and embed them into my project with keyframes, but they are still included in the loading time. I assume I have to load them with actionscript? How would I load and place an swf where I need it to be?
-
Originally posted by DelvarWorld
I put the files into seperate SWF's and embed them into my project with keyframes, but they are still included in the loading time. I assume I have to load them with actionscript? How would I load and place an swf where I need it to be?
-
By loading the swf into a movieclip you can use that movieclip to set where on the stage it will appear:
http://www.kirupa.com/developer/mx/loading.htm
/Mirandir
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|