I'm using ActionScript 3.
I'm following this tutorial:
http://www.youtube.c...h?v=oC31Pc5SCHM
stop();
addEventListener(Event.ENTER_FRAME,LoaderF);
function LoaderF (e:Event):void{
var toLoad:Number = LoaderInfo.bytesTotal;
var Loaded:Number = LoaderInfo.bytesLoaded;
var Total:Number = Loaded/toLoad;
if (Loaded == toLoad)
{
removeEventListener(Event.ENTER_FRAME,LoaderF);
gotoAndStop(2);
}
else
{
Preloader_MC.Preloader_FillBar.scaleX = Total;
Preloader_MC.Precent_txt.text = Math.floor(Total = 100) + "%";
Preloader_MC.Of_Bytestxt.text = Loaded + "Bytes";
Preloader_MC.Total_Bytes.text = toLoad + "Bytes";
}
}
Errors:
1119: Access of possibly undefined property bytesTotal through a reference with static type Class.
1119: Access of possibly undefined property bytesLoaded through a reference with static type Class.
Heres the file:
http://www.mediafire.com/?u4y3gahijj0

Start a new topic
Add Reply





MultiQuote
| 


