all groups > flash actionscript > june 2005 >
You're in the

flash actionscript

group:

Yet another preloader question!


Yet another preloader question! NomadicDesign
6/8/2005 8:32:50 PM
flash actionscript:
Hello all,

I am working on a simple preloader for the beginning of a 150kb movie.
Although I have tried numerous things, I cannot seem to get the preloader
(which is located on the 1st and 2nd frames of the video) to appear before 80%
of the video is loaded.

I have:
Removed the "export to first frame" option from every component in my library
Simplified the first frame to only contain the preloader

Does anyone have any ideas as to what is preventing this from loading the
first frame. I can't seem to put my finger on it.

Thanks,
Nomadic Design


this.onEnterFrame = function ()
{
pressNext_txt._visible = false;

totalBytes = Math.round(_root.getBytesTotal() / 1024);
loadedBytes = Math.round(_root.getBytesLoaded() / 1024);
percentDone = Math.round((loadedBytes / totalBytes) * 100);

if (_root._framesloaded >= _root._totalframes)
{
stop();

// display next button
_root.next_txt.text = "Next";
_root.next_btn._visible = true;
pressNext_txt._visible = true;

// give next buttion functionality
_root.next_btn.onRelease = function ()
{
_root.next_txt.text = " ";
_root.next_btn._visible = false;

_root.gotoAndPlay("info");
}
}

percentDone_txt.text = percentDone + "%";
pBar_mc._width = percentDone * 1.8;
}
Re: Yet another preloader question! NomadicDesign
6/8/2005 8:57:46 PM
I also ran a size report.

Could the "AS2.0 Classes Export" have anything to do with it?
Can I have it load the "AS2.0 Classes Export" in frame 3? How?

Thanks,
Re: Yet another preloader question! NomadicDesign
6/9/2005 12:35:48 PM
Hello all,

Yep, it was that Actionscript 2.0 classes. Over 80kb change by having them export on frame 3.

Re: Yet another preloader question! NomadicDesign
6/9/2005 12:36:18 PM
Hello all,

Yep, it was that Actionscript 2.0 class. Over 80kb change by having them export on frame 3.

AddThis Social Bookmark Button