A Flash Developer Resource Site

Results 1 to 12 of 12

Thread: Preloaders

  1. #1
    Junior Member
    Join Date
    Apr 2003
    Location
    Wiltshire, England
    Posts
    13

    Preloaders

    I was wondering if someone could tell me how to make preloaders like the ones on www.wrecked.nu where the wings fill up. Thanks

  2. #2
    Junior Member
    Join Date
    Apr 2003
    Location
    Wiltshire, England
    Posts
    13
    There must be someone out there who knows how its done

  3. #3
    Banned
    Join Date
    Apr 2001
    Location
    Montréal, Québec.
    Posts
    25,397
    It's so fast on a fast connection, you can barely see it... But it simply looks like an expanding filling shape behind a masked layer being what you call the "wings"!
    Last edited by oldnewbie; 04-06-2003 at 11:26 AM.

  4. #4
    imagination through stupidity
    Join Date
    Apr 2001
    Location
    P3X-3113
    Posts
    1,238
    yea, i think its just a mask.. your mask is in the shape of the object, and just scale your preloader.. verticaly
    Nothing to see here, move along.

  5. #5
    Senior Member pellepiano's Avatar
    Join Date
    Feb 2000
    Location
    Stockholm, Sweden
    Posts
    15,151
    Its a normal preloader but the percentage variable is used to tell a movieclip (the wings) to go to the same frame as the percentage is.
    So the wings movieclip is a 100 frame animation ( filling up).

    wingsMC.gotoAndStop(percentage)

    Like if you have your preloader code ON the wings mc

    onClipEvent (enterFrame) {
    // PRELOADER PART
    tb = math.round(_parent.getBytesTotal()/1024);
    lb = math.round(_parent.getBytesLoaded()/1024);
    percentage= math.round((lb/tb)*100);
    this.gotoAndStop(percentage)
    if (lb>5) {
    if (procent == 100) {
    _parent.play();
    }
    }
    }

    -Pelle Piano
    // Image Gallery
    www.studiobild.com
    // Photo Blog
    http://talesofthepixel.blogspot.com

  6. #6
    imagination through stupidity
    Join Date
    Apr 2001
    Location
    P3X-3113
    Posts
    1,238
    Originally posted by pellepiano
    Its a normal preloader but the percentage variable is used to tell a movieclip (the wings) to go to the same frame as the percentage is.
    So the wings movieclip is a 100 frame animation ( filling up).

    wingsMC.gotoAndStop(percentage)

    Like if you have your preloader code ON the wings mc

    onClipEvent (enterFrame) {
    // PRELOADER PART
    tb = math.round(_parent.getBytesTotal()/1024);
    lb = math.round(_parent.getBytesLoaded()/1024);
    percentage= math.round((lb/tb)*100);
    this.gotoAndStop(percentage)
    if (lb>5) {
    if (procent == 100) {
    _parent.play();
    }
    }
    }
    the only prob w/ doin it that way, is that the file gets larger.. and the preloader take too much kb.
    Nothing to see here, move along.

  7. #7
    Junior Member
    Join Date
    Apr 2003
    Location
    Wiltshire, England
    Posts
    13
    Thanks guys, I've done it now

    Here it is: http://www.freewebs.com/foetal-design/index2.htm

  8. #8
    imagination through stupidity
    Join Date
    Apr 2001
    Location
    P3X-3113
    Posts
    1,238
    omg; get a new name for your co.
    Nothing to see here, move along.

  9. #9
    Banned
    Join Date
    Apr 2001
    Location
    Montréal, Québec.
    Posts
    25,397
    But that's a foetus fill and not a wings one!

  10. #10
    Junior Member
    Join Date
    Apr 2003
    Location
    Wiltshire, England
    Posts
    13
    What's wrong with the name Sybersnake?

  11. #11
    Banned
    Join Date
    Apr 2001
    Location
    Montréal, Québec.
    Posts
    25,397
    Nothing! It just does business on the moon!

  12. #12
    imagination through stupidity
    Join Date
    Apr 2001
    Location
    P3X-3113
    Posts
    1,238
    lol
    Nothing to see here, move along.

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