A Flash Developer Resource Site

Results 1 to 4 of 4

Thread: Help with my preloader

  1. #1
    Member
    Join Date
    Jun 2003
    Posts
    57

    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 Attached Files
    Last edited by Érico Lopez; 01-03-2004 at 11:41 PM.

  2. #2
    Newbie Infantry infantry's Avatar
    Join Date
    Jan 2003
    Location
    Chi-Town
    Posts
    258
    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!

  3. #3
    Member
    Join Date
    Jun 2003
    Posts
    57
    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);

  4. #4
    Senior Member tu_dor's Avatar
    Join Date
    Jan 2004
    Posts
    209
    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
  •  




Click Here to Expand Forum to Full Width

HTML5 Development Center