preload seperate sections.
- Started
- Last post
- 14 Responses
- imakedesign
is there a way to preload different parts of a site without using external swf`s?
- SteveJobs0
i did this once with some string and a piece of cheese.
- imakedesign0
thanks
- spiralstarez0
not too sure, but what would be the advantage of doing it like so?
- imakedesign0
its just that i need to control the loaded swf.. i.e animate it from my main moive.
- ********0
i did this once with some string and a piece of cheese.
SteveJobs
(Feb 1 05, 13:21)Aye but yer a durty hooor!
- ********0
load with loadMovieNum("maMovieClip_mc", 1)
then target it from the main timeline....
- imakedesign0
how do you target external swfs?
- spiralstarez0
just a pathing issue:
depends where you load it. If you:
loadMovie("move.swf","the_place...
then when it's loaded there:
the_place_where_you_load_it.play...
- ********0
_level1.maMovieClip_mc.maObject...
- imakedesign0
ah i did not know you could do that. many thanks.
- spiralstarez0
yeah what he said.
You can either load the movie into a level as MX example, or into a movieclip (most often empty) and then control it by pathing to it...
- Mimio0
You could preload graphics and other media files externally into a flash swf.
- unfittoprint0
best way:
#1 separate your assets externally.
#2 make a multiple preloader It will check an array of objects, each object will have a path variable [and/or a label to name the current asset being loaded].
#3 the main looped function will use createEmptymovieClip to load and target your content. Each time one is loaded, proceed to create another empty movie cliop, load it and so on... refresh the ++count.
#4 If the current one is finished loaded and it's the last object, stop the loop.
#5 Now you can trigger a special function that will start your site.
this may sound somewhat complex, but if you're able to achieve this, you'll use it in every site, it's an extremely clean way to get you stuff on Stage.
- imakedesign0
that sounds great but a bit tricky.