Flasher Archive

[Previous] [Next] - [Index] [Thread Index] - [Previous in Thread] [Next in Thread]


Subject: Re: FLASH: preloading
From: Marc Hoffman, Poison Dart Frog Media
Date: Mon, 21 Jun 1999 06:24:57 +0100

At 09:41 PM 6/20/99 -0700, you wrote:
>hey flashers,
>
>I have two questions about preloading. first, if I have a "if frame 100 is
>loaded" then
>go to frame 101 action, does that mean that frames 1-99 are all loaded or
>JUST frame
>100?

Frames load in order. So, yes, if frame 100 is loaded then all prior frames
must have loaded, too. However, it would be wrong to say "Then go to frame
101" because you haven't checked for frame 101, just for the frames up to
and including frame 100. Unless frame 101 has no new content, it won't be
ready to play the first time frame 100 loads. If you want to go to frame
101 as soon as it's loaded, then test for 101, not 100.


>
>If i want to have the "load movie" function in a keyframe, is there anyway I
>can have
>a preloader for that in the original movie?

Yes, but it is complicated because you cannot use If Frame Is Loaded in one
moive to test a different movie's loading progress. Loading progress must
be tested within the same movie as the frame that is referenced in If Frame
Is Loaded. You can have your second movie test itself for If Frame Is
Loaded, and when the condition is met, it can begin playing. It can also,
at that point in time, tell the first movie to quit playing, so the first
movie could be playing the equivalent of a preloader while all this is
taking place, and could then stop or go to a blank, stopped frame.

You need to understand that If Frame Is Loaded is used in a loop so that
the loading condition is tested repeatedly until the frame is loaded. While
the loop is in effect, you can be playing a preloader which is either a
string of frames inside the loop (on the main timeline) or a movie clip
that is present inside the loop.


Marc Hoffman

marcatdartfrogmedia [dot] com (mailto:marcatdartfrogmedia [dot] com)
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-manageratshocker [dot] com. Problems to: owneratshocker [dot] com
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-manageratshocker [dot] com


Replies
  FLASH: preloading, anthony faust

[Previous] [Next] - [Index] [Thread Index] - [Next in Thread] [Previous in Thread]