At 5/30/08 10:30 AM, klaw224 wrote:
So i was making this preloader but somehow it wont work "Its sorta like a mask preloader"
Its supposed to fill in an outline BUT instead of filling it. Flash just waits for it to load and Shows the filled image without showing the progress and stuff. pls help.
heres the fla file.
http://www.mediafire.com/?fwxh3xk5mjt
Your code is riddled with silly mistakes. Also you forgot to convert your mask to an MC and call it rectMask_mc.
Here is your fixed code:
stop();
onEnterFrame = function():Void {
var loadedData:Number = _root.getBytesLoaded();
var allData:Number = _root.getBytesTotal();
var percent:Number = Math.round(loadedData/allData*100);
rectMask_mc._yscale = percent;
if (percent == 100) {
gotoAndPlay(10);
delete onEnterFrame;
}
};
Happy birthday