Flasher Archive
[Previous] [Next] - [Index] [Thread Index] - [Previous in Thread] [Next in Thread]
| Subject: | Re: FLASH: can't get past preloading loop |
| From: | Kristopher Wainwright |
| Date: | Fri, 25 Aug 2000 00:06:36 +0100 |
There is a nice little preloader in the Flash Bible on
page 258 tha twill do what you want.
If you don't have the book, here's how it's coded:
Frame 1 labeled "preload-loop"
Frame 2 is where playback is halted until the desired
amount of the movie loads
Frame 3 is labeled "begin-movie"
Put this AS in Frame 2:
Set Variable: "loadedFrames" =
GetProperty("/",_framesloaded)
Set Variable: "totalFrames" =
GetProperty("/",_totalframes)
If (loadedFrames < totalFrames)
Set Variable: "percentageOutput" =
int((loadedFrames / totalFrames) * 100)
Go to and Play ("preload-movie")
Else
Go to and Play ("begin-movie")
End If
Hope this helps
Kris Sends
--- Helen Triolo <designer
> First of all, thanks everyone for the advice on
> burning cd's for mac &
> pc yesterday. Still looking into which would be the
> best thing to use.
> Now the client would like this running on the web,
> so I've added a
> simple preloading loop to it, which looks like this
> (with a yucky little
> "please wait while we load this stuff" message in
> frames 1-3 for now):
>
> frame 1:
> initialize stuff
>
> frame 2:
> If Frame Is Loaded ("start")
> Go to and Stop ("mostloaded")
> End Frame Loaded
>
> frame 3:
> Go to Previous Frame
>
> frame 4 (mostloaded):
> Stop
> (show actual content, including button to goto and
> play("start"))
>
> frame 5 (start):
> start animation, etc
>
> I make an html document and use javascript to open a
> new window with
> this swf as the content. Works fine when I test
> locally. Works fine
> when I run the swf alone on the web. BUT when I run
> the html on the
> web, the new window opens and I'm forever stuck in
> the preloading loop
> (frame 2). Also, when I try it with html file that
> Flash generates, it
> runs fine locally, but on the web it sticks on the
> preload page forever
> (even though I can see in the status bar that it's
> loading the whole
> movie, way on beyond the "start" frame...)
>
> What should I be doing differently?
>
> tia for any advice,
> Helen
> ---------------------------------------------------
> Flash Q&A archive: http://i-technica.com/flashlist
>
>
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> NudeGuru.com is proud to sponsor the Flasher list
>
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> IT'S THE ART OF MONEY, HONEY!
> Tips and Advice from some of the most popular Flash
> artists + industry power-brokers on how to hold
> onto
> your rights, negotiate contracts and get full value
> for your work.http://www.nudeguru.com from Franke
> James
>
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> To unsubscribe or change your list settings go to
> http://www.chinwag.com/flasher or email
> help
>
__________________________________________________
Do You Yahoo!?
Yahoo! Mail - Free email you can access from anywhere!
http://mail.yahoo.com/
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
NudeGuru.com is proud to sponsor the Flasher list
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
IT'S THE ART OF MONEY, HONEY!
Tips and Advice from some of the most popular Flash
artists + industry power-brokers on how to hold onto
your rights, negotiate contracts and get full value
for your work.http://www.nudeguru.com from Franke James
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
To unsubscribe or change your list settings go to
http://www.chinwag.com/flasher or email help
[Previous] [Next] - [Index] [Thread Index] - [Next in Thread] [Previous in Thread]

