Link to home
Start Free TrialLog in
Avatar of Mungo_Clump
Mungo_Clump

asked on

How to control Loadmovie order

I am writing a new menu system, and our marketing people are insisting I use a big new "corporate image". I have complained that a big bitmap makes the file too big, but they don't care.

So, as a compromise, I thought I'd write the menu system so that it loaded up first (and fast) so people can navigate where they want to, and in the meantime use loadmovie to load the big ugly image into the background at it's leisure.

My movie has all the flash in the first frame and stops in frame 5, where there is a new movieclip in the background to load the monster JPG:

onClipEvent (load) {
    loadMovie("bitmap.swf", "cliptarget1");
}

This works, but the problem is that for some reason, Flash doesn't start the movie until it has fully loaded the bitmap SWF - so I may as well have it embedded.

Is there a way to control this?

Thanks.
Avatar of henryww
henryww

where is

onClipEvent (load) {
   loadMovie("bitmap.swf", "cliptarget1");
}

???

so u want everything else to load 1st then the big logo ...  it shouldn't be too hard.

normally u just load everything (i assum u have a loading or something) then ... some where after all the files are loaded do the loadMovie("bitmap.swf", "cliptarget1");
flash will go on and play the rest of the movie and the logo will show when it is loaded. ...

post a bit more code here it will be easier to determine what goes wrong....

cheers
Avatar of Mungo_Clump

ASKER

Thats pretty-much what I do... the code shown is attached to a movieclip that contains the graphic. This clip only appears on the last frame of the movie, so should start loading the piccy last, but when I test it, the entire movie appears to wait until it has fully loaded before starting.
do u have a preloader or something ..

can u post the fla somewhere so we can have a look for u :)

cheers
Avatar of rascalpants
If I am thinking correctly, you should not have to do anything...  because the very last thing to load is the big ugly image, so you don't even need a preloader...

and if you have a preloader, then just make it play when the frame 4 is loaded in...


use something like this for the preloader code:

ifFrameLoaded ("Scene 1", 4) {
     // play the movie
}

it is a little "old school" but still works great...


rp
Mungo Clump,


you need to close this question out...

please come back and comment or award the points...


rp
Oops... forgot about this one - the Marketing people changed their minds and dropped the idea, so the question is no longer relevant.

How do I close it?

(thanks for the help though)
ASKER CERTIFIED SOLUTION
Avatar of rascalpants
rascalpants
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
You get the points for making me smile.
(oh yeah, and I'm sure your answer was correct too)

Thanks all
I doubt it!  :)