Flasher Archive

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


Subject: Re: FLASH: Trouble with Preloader
From: Marc Hoffman, Poison Dart Frog Media
Date: Mon, 20 Dec 1999 16:54:11 GMT

Hi Lincoln,

First, you need to perform your tests in reverse order or put each in a
frame after the previous one, with a stop action in each.
Second, If Frame Is Loaded needs to work in a loop. For example:

frame 1 says:
If Frame Is Loaded (20)
Begin Tell Target ("/loading")
Go to and Stop (2)
End Tell Target
End Frame Loaded

frame 2 says:
Go to frame 1 and play (better, however, is to use labels rather than frame
numbers).

The idea is that Flash checks the condition (whether frame 20 is loaded)
and either makes /loading jump to frame 2 or else continues playing. Flash
will always just keep going if the condition is not met, so the idea is
that if Flash keeps playing it will encounter another action that sends it
back to repeat the check. If the condition IS met, Flash skips over the
action that makes it loop.

Since you're using If Frame Is Loaded to tellTarget an independent movie
clip, you also need to work out a way to make the main timeline move ahead
as it's checking stuff. Most preloaders just put the preload animation in
the main timeline, or have a separate movie clip in the timeline for each
stage of the preload. These movie clips get strung out in a line and only
one exists at a time. But you can make your scheme work, too.




At 07:10 AM 12/20/99 , you wrote:
>Help!
>
>I'm trying to get a preloader MC to work and it won't do what I want it to
>do. Here's what I have now:
>
>(on a Frame Action with the "loading" MC)
>
>Stop
>If Frame Is Loaded (20)
> Begin Tell Target ("/loading")
> Go to and Stop (2)
> End Tell Target
>End Frame Loaded
>If Frame Is Loaded (40)
> Begin Tell Target ("/loading")
> Go to and Stop ("3")
> End Tell Target
>End Frame Loaded
>If Frame Is Loaded (60)
> Begin Tell Target ("/loading")
> Go to and Stop ("4")
> End Tell Target
>End Frame Loaded
>If Frame Is Loaded (95)
> Begin Tell Target ("/loading")
> Go to and Play ("5")
> End Tell Target
> Go to and Play (2)
>End Frame Loaded
>
>
>Now I thought this would create the effect of a bar filling up. No dice. The
>movie loads and it just sits there. The MC never changes and the movie
>itself never plays.
>
>Any suggestions?
>
>thanks.
>
>Lincoln Barbour
>Genesis Studios
>lincolnatgenesis-studios [dot] cc
>
>http://www.genesis-studios.cc
>
>
>
>flasher is generously supported by...
>~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> Streaming Media WEST '99 Conference & Exhibition
> "The Worlds largest Internet Audio & Video Event"
> December 7 - 9, San Jose Convention Center, California
>
>Reserve your space today at http://www.streamingmedia.com
>~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> To unsubscribe or change your list settings go to
>http://www.chinwag.com/flasher or email helpatchinwag [dot] com

Marc Hoffman

marcatdartfrogmedia [dot] com (mailto:marcatdartfrogmedia [dot] com).
View the latest from Poison Dart Frog Media:
<http://www.dartfrogmedia.com/rickfrnd>
Our Flash portfolio: <http://www.dartfrogmedia.com/sampler>
(featured in Flash 3 Web Animation, by Ken Milburn)



flasher is generously supported by...
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Streaming Media WEST '99 Conference & Exhibition
"The Worlds largest Internet Audio & Video Event"
December 7 - 9, San Jose Convention Center, California

Reserve your space today at http://www.streamingmedia.com
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
To unsubscribe or change your list settings go to
http://www.chinwag.com/flasher or email helpatchinwag [dot] com


Replies
  FLASH: Trouble with Preloader, Lincoln Barbour

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