Help with my preloader
This preloader isin't working and I have no idea why...
Can someone show me the light?
Is anything wrong with this part?
loadPercent = (Math.floor (_root.getBytesLoaded() / _root.getBytesTotal() * 100) + "%");
loadBytes = (Math.round((_root.getBytesLoaded() / 1024) * 1000) / 1000 + " Kb of " + Math.round((_root.getBytesTotal() / 1024) * 1000) / 1000 + " Kb total Loaded.");
if (_root.getBytesLoaded() == _root.getBytesTotal()){
loadPercent = "100%";
loadBytes = (Math.round((_root.getBytesLoaded() / 1024) * 1000)
/ 1000 + " Kb of " + Math.round((_root.getBytesTotal() / 1024) * 1000) / 1000
+ " Kb total Loaded.");
gotoAndPlay("Button");
}
Attached Files
Last edited by Érico Lopez; 01-03-2004 at 11:41 PM .
Newbie Infantry
I don't know why you are saying the preloader isn't working, but I downloaded your file and tested it and it works fine...
I'm still learning Flash!
Yes it is working. There was some problem with the place where I was uploading it.
Now theres something I want to fix on it but I dunno how. The load bar is scaled to the left and right. How do I make it to move just to the right?
this._xscale = ((_root.getBytesLoaded() / _root.getBytesTotal()) * 100);
Senior Member
Double-click your load bar mc.
Move the shape to the right, so that the left end is at the center of the mc.
Double-click outside, so you go one level up.
Then move the load bar mc to the left.
Bye!
Last edited by tu_dor; 09-29-2009 at 06:28 AM .
Posting Permissions
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
Forum Rules
Click Here to Expand Forum to Full Width