Flasher Archive

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


Subject: Re: FLASH: preload
From: Marc Hoffman, Poison Dart Frog Media
Date: Fri, 2 Jul 1999 02:25:51 +0100

At 07:40 PM 7/1/99 -0400, you wrote:
>In order to make a preloader, can someone tell me why this doesnt work:
>
>I made a movie clip, with aprecent bar, every 5 frames it goes up by 10
>percent, so i put a stop action in every 5th frame.
>
>I divied the total movie lenght to get 10% of it. Used 10 frames with If
>Frame loaded...Then a tell target (in the first 10 frames of the movie) on
>the movie clip to make it play everytime 10% of the total movie was loaded.
>But the loaded doesnt even come up when the movie was posted

Did you put each If Frame Is Loaded into a loop? It has to keep checking
the same If Frame condition until the condition is met.

When you use If Frame Is Loaded, you get to determine what willl happen if
the frame is, indeed, loaded. But if the condition is not met, Flash will
just keep playing the timeline. That's probably what is happening in your
movie.

The key is to have a later frame (possible the very next frame) that says
"go back to the If Frame Is Loaded frame and play." When the loading
condition is satisfied, you should tell the playback head to skip over that
next frame so playback proceeds to another check point. In your scheme, it
would proceed to the next check point. So a typical If Frame Is Loaded
action, in your scheme, would look like this:

If Frame Is Loaded (frame label: 10%loaded)
Tell Target (target: /percentBar)
Play
End Tell Target
Go to and Play (frame label: 20% checkpoint)
End If Frame Is Loaded

The above would happen in a frame labeled "10% checkpoint." "10%loaded"
would be a label you apply to the place in your movie where 10% of the
content has loaded.
/percentBar would be the instance name of your movie clip. When it is told
to play, it should play up to the place where it indicates 10% is loaded,
and then it should stop (sounds like you did that).

The next frame on the main timeline after "10% checkpoint" would have the
action Go To and Play (frame label: 10% checkpoint).
The frame after that would be the one labeled "20% checkpoint," and would
have the If Frame Is Loaded action above, except it would check loading of
a different frame on the main timeline (possibly labeled "20% loaded),
would still tell the movie clip to Play, and the Go to and Play would send
the main playback head to frame label "30% checkpoint." And so on.

Flash Central has an explanation of using Wait For Frame (Flash2 term for
If Frame Is Loaded) with a visual example of how it works. ours is
different only in that it uses a series of looping checks instead of just
one, and each successful check not only advances the main playback but also
advances the playback of a movie clip.


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: preload, Imagelnk

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