A Flash Developer Resource Site

Results 1 to 6 of 6

Thread: Flash Preloader.

  1. #1
    Junior Member
    Join Date
    Apr 2003
    Location
    Webdevelopment
    Posts
    22

    Flash Preloader.

    I have some trouble with a preloader that needs to load a movie. Check it out and see if you can get it fixed.

    Thanks Orane.
    P.S:- Preloader is attached. - http://www.oraneproductions.com/loader.fla

  2. #2
    Member
    Join Date
    Apr 2007
    Posts
    75
    the attachement wont download but try this code:

    frame 1:

    On stage: a preloader bar containing 100 frames with on them:
    layer 1: the edges.
    layer 2: a bar with the same width with the right side touching the _x = 0 on frame 1, and left side touching _x = 0 on frame 100. Tween it.
    layer 3: a mask with the bar with left side touching _x = 0.

    a dynamic text field called bytes_loaded, one called bytes_total and onecalled getPercent. Place a static forward slash ('/') between loaded and total.

    on the frame type:

    Code:
    bytes_loaded = Math.round(getBytesLoaded());
    bytes_total = Math.round(getBytesTotal());
    getPercent = Math.round((bytes_loaded / bytes_total) * 100);
    if (_root._framesloaded>= _root._totalframes) {
    gotoAndPlay("FrameLableMovie");
    }
    frame = int(bytes_loaded/(bytes_total/100));
    tellTarget (_root.PRELOADERBAR) {
    	gotoAndStop(_root.frame);
    }
    Press F6 to make another keyframe with code:

    Code:
    gotoAndPlay(1)
    Then frame 3 can be the movie.

    ~Senshi

  3. #3
    Junior Member
    Join Date
    Apr 2003
    Location
    Webdevelopment
    Posts
    22
    Could you adjust the file and get it to work?

  4. #4
    Member
    Join Date
    Apr 2007
    Posts
    75
    I could not download your file but that code worked for me...

  5. #5
    Junior Member
    Join Date
    Apr 2003
    Location
    Webdevelopment
    Posts
    22
    Cool... I'll try and see if the code works...

  6. #6
    Senior Member whispers's Avatar
    Join Date
    Mar 2001
    Location
    CFA2h (respect the HEX)
    Posts
    12,756
    HI I have several preloader links in my footer you can follow.. I even created a super easy to use preloader component (prelaoder 3 is the link for that)

    just drag to the stage..fill int he parameters..and thats it..

    comes with full directions too

    linky: http://board.flashkit.com/board/showthread.php?t=726944

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