Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Huge Movie Takes Ages to View

Status
Not open for further replies.

Dannybe2

Programmer
Jan 31, 2001
136
GB
I am having a problem with loading times. I have created a page which is quite large (swf = 1200kb) and it takes a long time to load, I cannot make it any smaller as I have a lot of information on there and the image quality is already quite low. However each frame (page) is not very big on its own.

I am trying to get a loading page, where when you first enter the page, it loads the main couple of pages and the intro. Then it loads the next pages, putting a priority on the page you next try and view.

I placed an IsFrameLoaded set on the 8th frame, when the movie intro on the 2nd will start. I then added a loading screen just before every page, so that it will show that it is loading until the page can be viewed.

The problem is if someone wants to view a page which happens to be one of the last frames, it takes a long time, because it loads all the pages before it first.

Is there any way either to set a priority on which pages load first, or to get just the pages you wish to look at to load?

Thanks a lot
 
One thing you could try is split it down into smaller sections and use the load movie command. This way, once your main navigation/page has loaded the user can determine which areas of your site he/she want's to view and so cutting down the loading time. Also they won't have to wait for everything to load if they choose to view the last page first.

Hope this helps..... funkymonk B-)

rod@sameplanet.co.uk
********************


 
How does the load movie command work? Do I have to use separate html pages to load each one, or is it just a separate swf?
 
Just seperate .swf's.

When you use the loadMovieNum action what you are doing is loading these swf's into levels above the main movie.

1) You have your main movie, the movie that will probably have all your main navigation on it.
2) Create seperate swf's for the parts of your movie that you want to load seperately. These will be loaded into levels above your main movie eg. level 1, level 2 etc. If a movie is already in a level, loading another movie to this level will replace the exsisting one.
3) As each movie you load will load above the main movie you want to make sure that the contents of the loaded movie don't cover any of your navigation (if you don't want it to anyway)
4) To assign a load movie action to a button bring up the actions palate for the button, use this code with your file name:

on (release) {
loadMovieNum ("movietoload.swf", 1);
}

or click on 'basic action' and drag Load movie into the coding window. This will load a movie into level 1.

Put the complete path to the file if it's not in the same dir as your main movie.

Test your movie, I think you may need to publish it and test it in a browser to for the loadMovieNum to work I'm not sure.

Play with this, once you do it once and it works it's simple.

Good luck.......

funkymonk B-)

rod@sameplanet.co.uk
********************


 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top