Flasher Archive

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


Subject: Re: FLASH: Scripting
From: John Croteau
Date: Tue, 13 Jul 1999 23:29:25 +0100

Hi Arthur,

I personally think a loading bar, is uneeded if you provide a proper
streaming animation with preload content or amusement to make any
(small) wait unnoticed by the visitor. If you are using the loading bar
to supplement your preload content read on. OK, read on even if you
aren't.

> I am making a preloader scene. The movie that will play while the rest of
> the stuff loads looks something like this:
If you are using Flash 4 this is easy see:
Help > Samples > If Frame Is Loaded

For Flash 3, you can also use FSCommand (limits browsers somewhat).
http://www.FlashBible.com/Members/FSCommand/FSCommand.htm
The tutorial at FFlashFaq seems to be OK.
http://www.flashfaq.net/Tutorials/Javascript/PreLoader/percent.htm
I haven't had time to check it throughly but there is definately one
problem.
In the line
retest = setTimeout("percent_DoFSCommand('init', '')",1);
It has a delay between tests of once every 1 millisecocnd, though it
doesn't error testing it 1000 times a second is definately overkill,
retesting 10 to 20 times a second would be more than enough:
retest = setTimeout("percent_DoFSCommand('init', '')",100);

The best technique for Flash 3 is a series of regular internal 'If frame
is loaded' loops, but if all your bytes in in a single frame or 2, there
is no way to make it linear. Calculate the percent loaded by frames and
reflect this in your loading bar. Each 'If Frame is Loaded' loop will
check a later frame to see if it is loaded then go to the next "If frame
is loaded' loop.
http://www.FlashCentral.com/Tech/HTML/Optimizing.htm

----------- -----------------------
John Croteau croteauaterols [dot] com (mailto:croteauaterols [dot] com)
------------- -------------------------
FlashTek (Advanced Websites with Flash) http://www.FlashTek.com/
Flash Bible (Fast track to good Flash) http://www.FlashBible.com/
Flash Central(The Universe Starts Here) http://www.FlashCentral.com/
The Flash Tech Resource (Tech Notes) http://www.FlashCentral.com/tech/
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

------------------------------------------------------------------------
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: Scripting, Arthur Gralec

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