Skip to main content
Inspiring
Aug 17, 2006 2:24 PM UTC
Answered

Preload entire file in Flash8

I have a project that is divided into two sections each with its own movie, all in scene 1. One movie plays at the very beginning of the project, when it finishes buttons appear for the user tonaviagate through a series of text and pictures. When they are ready, the user can advance to the second section via button click to another movie that also has a series of buttons with pictures and text that ppear after it finishes playing. Now i understand how preloaders work, but how would i preload this project? Would i want to just preload each movie or the entire file? I would think it would be easier to preload the entire file since i want the movies to play seamlessly as they are the transitions between the two sections. Would the scripting be the same as a regular preloader? Either way i'm confused on how to set this up. If someone would be kind enough to help me i would greatly appreciate it. I'm not an expert on flash yet, still learning.

Thanks!
This topic is closed to new replies. Start a new post to keep the conversation going.
kglad
kgladCorrect answer
Community Expert
Aug 17, 2006 2:40 PM UTC
it's easiest to preload the entire swf and it's easiest to create a stand-alone preloader. ie, a separate swf that only contains your preloader code and your preloader display.

the code for you preloader swf would look like:

6 replies

kglad
Community Expert
Community Expert
Aug 18, 2006 9:38 PM UTC
you're welcome.
Translate
layerburnAuthor
Inspiring
Aug 18, 2006 8:56 PM UTC
thanks so much! got it working! you're a life saver!
Translate
kglad
Community Expert
Community Expert
Aug 18, 2006 1:06 AM UTC
the loaded swf (main.swf) won't play unless you add _level.play() where the comment is located in the above code. however, the loading text and any animation will no longer be visible when loading is completed.

the code above should be attached to a frame that plays once. there should be no frame loop that causes the code to be repeatedly executed.
Translate
layerburnAuthor
Inspiring
Aug 17, 2006 4:24 PM UTC
Ok, maybe i missed something. So i created a new swf. I have a "loading" movie clip on a layer that just repeats loading, couldn't get the loading bar to work. Then on a new layer i added your script to frame 1. I think i understand the scripting, but is there necessary scripting to tell it to move on? When i tested the preloader swf, it just stays on loading. If i click forward in the testing timeline the other swf does play, but i have to advance it manually. So it does work ,but not on its own. I just want to preload the other swf and have it open on its own. What frames should the AS appear on and are any stops required? I'm sorry for the trouble. Your help is greatly appreciated.
Translate
layerburnAuthor
Inspiring
Aug 17, 2006 2:57 PM UTC
Thank you so much! I'll give that a try.

Translate
kglad
Community Expert
kgladCommunity ExpertCorrect answer
Community Expert
Aug 17, 2006 2:40 PM UTC
it's easiest to preload the entire swf and it's easiest to create a stand-alone preloader. ie, a separate swf that only contains your preloader code and your preloader display.

the code for you preloader swf would look like:

Translate