A Flash Developer Resource Site

Results 1 to 8 of 8

Thread: very simple preload

  1. #1
    Junior Member
    Join Date
    Jul 2003
    Location
    Belgium
    Posts
    19

    very simple preload

    Hi all,

    For the first time I'm working on a flashproject that's more than 200kb ,now I'll need a preload.Problem is that I don't know anything of actionscripting ,could you guys tell me how I can do this the most simple way.It should not be anything special just "Loading..." would have to appear.

    Thanks

  2. #2
    Senior Member
    Join Date
    Jul 2003
    Location
    way to east
    Posts
    109
    Add a scene naming "Loading" and put this code at the first frame of the time line. Then Place a Text "Loading Site" on the stage. Put your animation on the next scene.
    --------------------------------------------------------------
    stop();
    this.onEnterFrame = function() {
    if (_root.getBytesLoaded()==_root.getBytesTotal()) {
    play();
    }
    };
    --------------------------------------------------------------
    Discovering Logic & Order


  3. #3
    FK's Giant Steve_w_V's Avatar
    Join Date
    Mar 2003
    Location
    San Jose, California
    Posts
    2,113
    You don't need the _root.onEnterFrame.
    code:
    if(_root._framesloaded==_root._totalframes){
    _root.gotoAndStop("content") //frame label
    }

    The other day, I bought a box of animal crackers. On the side, it said "Do Not Eat if Seal is Broken". I opened the box and sure enough...

  4. #4
    Junior Member
    Join Date
    Jul 2003
    Location
    Belgium
    Posts
    19
    the flashmovie is not yet ready,but I have added the preload already,does that mather?

    When I start the movie I see the loading thing like 1 second , is that because I have a fast internet connection or is there something rang?

    http://www.stw.be/stwflash.html

  5. #5
    FK's Giant Steve_w_V's Avatar
    Join Date
    Mar 2003
    Location
    San Jose, California
    Posts
    2,113
    Must be a fast connection, as I wait a minute or so before it plays. But it works!
    The other day, I bought a box of animal crackers. On the side, it said "Do Not Eat if Seal is Broken". I opened the box and sure enough...

  6. #6
    Junior Member
    Join Date
    Jul 2003
    Location
    Belgium
    Posts
    19
    Originally posted by Steve_w_V
    Must be a fast connection, as I wait a minute or so before it plays. But it works!
    Great!Thanks to all of you!

  7. #7
    Spartan Mop Warrior Loyal Rogue's Avatar
    Join Date
    Apr 2003
    Location
    The Pit of Despair
    Posts
    513
    Yep, it works fine.
    Took less than 5 seconds to download for me on a 1MB ADSL connection.

    Steve, are you on dial-up?
    If not you might wanna call your isp and have them check your line for trouble.
    You can go to www.toast.net and run their free performance test to gauge your data tranfer rate.
    ::
    "Just go make web and stfu already." - jAQUAN

    "Twitter is a public display of verbal diarrhea that comes out in small squirts." - Gerbick

  8. #8
    Senior Member
    Join Date
    Nov 2003
    Location
    N. Virginia
    Posts
    225
    clear your cache to see true-download times..otherwise you're viewing a temp file...so no download time.

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