Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 179
  • Last Modified:

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.
0
Mungo_Clump
Asked:
Mungo_Clump
  • 4
  • 3
  • 2
1 Solution
 
henrywwCommented:
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
0
 
Mungo_ClumpAuthor Commented:
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.
0
 
henrywwCommented:
do u have a preloader or something ..

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

cheers
0
Concerto's Cloud Advisory Services

Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.

 
rascalpantsCommented:
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
0
 
rascalpantsCommented:
Mungo Clump,


you need to close this question out...

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


rp
0
 
Mungo_ClumpAuthor Commented:
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)
0
 
rascalpantsCommented:
well, you can ask your self this... "Did any of these posts solve the problem, or help me come to a solution?"

if you answer yes, or even maybe, then I think you should award the points to someone...


if nothing helped at all, and you hate the marketing department as well, then as for a refund in the Community Support section.

BUT REMEBER, the lives of many will be affected by your decision!


:)
rp
0
 
Mungo_ClumpAuthor Commented:
You get the points for making me smile.
(oh yeah, and I'm sure your answer was correct too)

Thanks all
0
 
rascalpantsCommented:
I doubt it!  :)
0

Featured Post

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

  • 4
  • 3
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now