Flasher Archive
[Previous] [Next] - [Index] [Thread Index] - [Previous in Thread] [Next in Thread]
| Subject: | Re: FLASH: RE: tricky preloader |
| From: | Marc Hoffman, Poison Dart Frog Media |
| Date: | Fri, 4 Jun 1999 21:28:47 +0100 |
At 09:02 AM 6/4/99 -0400, you wrote:
>Hi Mark, thanks a lot for your response.
>
>Would you mind explaining the second option you mentioned regarding the
>second movie checking itself to make sure it is loaded before displaying the
>continue button?
>
>I did not realize that the browser would load both movies at the same time,
>and I am worried that the user might get through the first movie before the
>second movie has had time to load.
>On a similar note, if in fact the user does get through the first movie
>without the second movie becoming fully loaded, is there a way to disable
>the continue button (the one that would begin the second .swf) until movie 2
>has had enough time to load?
>
>Ouch, my head hurts.
take 2 aspirin, wait 25 minutes, and read on:
You're almost on to the scheme. Hold up your main movie just before the
"continue" button appears, using a Stop frame action. put a MC (movie clip)
there, at that stopped frame. Make it a 2-frame MC, first frame stopped,
2nd frame advances the main timeline with the command:
TellTarget (target: /)
Play
End TellTarget
Give this MC the instance name "Roger." Make it present where the movie is
halted, but take it out of the timeline where the "continue" button shows.
Label frame 3 of the second movie "check." Give it this action:
If Frame Is Loaded (frame: label: "whatever you choose to label the place
it must be loaded to")
TellTarget (target: _level0/Roger)
Play
End TellTarget
End If
Frame 4 of the second movie has action GoTo and play (frame: label: check).
the continue button in the level0 movie tells the next movie to go to the
desired frame.
HOW IT WORKS:
Level0 movie starts second movie loading.
Level0 movie stops just before the "continue" button. "roger" is now active.
Second movie, while loading, is looping between frames 3 and 4, constantly
checking itself to see if it's loaded to the place your level0 "continue"
button references.
When second movie is sufficiently loaded, it tells Roger to play.
Roger plays and, in doing so, advances level0 movie to the "continue"
button frame. Roger dies in the process, and so he doesn't keep advancing
the level0 movie.
Marc Hoffman
marc
Flash3 Portfolio: <http://www.dartfrogmedia.com/sampler>, featured
in Flash 3 Web Animation, by Ken Milburn.
------------------------------------------------------------------------
To UNSUBSCRIBE send: unsubscribe flasher in the body of an
email to list-manager
N.B. Email address must be the same as the one you used to subscribe.
For info on digest mode send: info flasher to list-manager
Replies
FLASH: RE: tricky preloader, Eric Smollin
[Previous] [Next] - [Index] [Thread Index] - [Next in Thread] [Previous in Thread]

