all groups > flash (macromedia) > june 2006 >
You're in the

flash (macromedia)

group:

Preloader/bandwidth profiler question


Preloader/bandwidth profiler question Realtoast
6/24/2006 1:15:02 PM
flash (macromedia):
Hello. I have created a fairly small movie (94k). I have put a preloader (only)
in the first two frames. However, when I simulate the download, I see that the
profiler shows 50k in the first frame. Also, the preloader does not appear
until it says about 60% (I presume after that 50k has already loaded). The
problem is, there is really nothing but the simple drawing of a preloader bar
in the first 2-frames. I would like the first frame of the movie to immediately
open up, show the preloader, and begin at around 1% loaded.

I should point out that the entire timeline for the .fla has been
appropriately moved to the 3rd frame. So, there is nothing in the first 2
frames, other than the loader bar and the actionscript. The loader bar is
nothing more than a rectangle drawn with flash; about 200px x 15 px and a
dynamic text field. That's it.

Here is my preloader code, 1st and 2nd frames, respectively.



//1st frame:

var amountLoaded:Number = _root.getBytesLoaded()/_root.getBytesTotal();
preloader._width = amountLoaded * 200;
loadText.text = Math.round(amountLoaded * 100) + "%";

//2nd frame:

if(_root.getBytesLoaded() == _root.getBytesTotal()) {
gotoAndPlay(3);
}

else {
gotoAndPlay(1);
}
Re: Preloader/bandwidth profiler question Realtoast
6/24/2006 1:34:24 PM
Never mind. I figured it out. I had an after market "movie enhancer" attached to a simple external .swf.

AddThis Social Bookmark Button