dcsimg
A Flash Developer Resource Site

Results 1 to 3 of 3

Thread: making a preloader...

  1. #1
    Junior Member
    Join Date
    Jul 2002
    Posts
    3
    I'm new to this flash movie stuff, and I just got Flash MX. I have no idea how to make a preloader, and for Flash MX, I can't find any tutorials anywhere. I tried the one on this site, but when I put IfFrameLoaded etc. etc., it said trailing garbage on the action command.

    Can anyone help me with either a link or a simple explanation on how to make a basic Flash MX Preloader?

  2. #2
    Member
    Join Date
    May 2002
    Posts
    88
    Hi, I was like you a couple of months back so happy to help... There have been numerous requests for help with pre-loaders on this site, trawl back and you will find them.

    Also use the 'search'facility on this site with 'preloader' as the buzz word and see what comes up. There are good tutorials on this site too for this, download them, work ythrough them, pick ythem apart and see how they work - in essence it's pure logic...

    If you are new to Flash it is worthwhile starting with the basics and learning as you go - I found The Complete Reference Macromedia Flash MX by Brian Underdahl to be very good.

    PS Anyone out there that wants to set up in business teachiong people how to do pre-loaders will probably make a packet!!!!

  3. #3
    Living Proof mave_the_rave's Avatar
    Join Date
    May 2002
    Location
    East Dulwich
    Posts
    1,006
    Try this :-
    Create your preloader page.
    place action script in last frame (key frame) of you preloader

    MovieSize = _root.getBytesTotal();
    LoadedSize = _root.getBytesLoaded();
    PercentLoaded = LoadedSize / MovieSize
    Percent = Math.floor(PercentLoaded*100);

    _root.GrowBar._xscale = Percent //use this line if you want a progress indicator. make a rectangle with an instance name of GrowBar or whatever you want..//

    if (PercentLoaded < 1) {
    gotoAndPlay("Preload");
    }
    else {
    gotoAndStart("MovieStart");
    }
    ------------------------------------------
    the / Percent = Math.floor(PercentLoaded*100); /
    gives you an integer and drops the 2 decimal points.

    you will need to adapt it of course to point to your labels.


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