Flash Loading Question

Discussion in 'HTML & Website Design' started by geekazoid, Jul 11, 2006.

  1. #1
    While my flash is loading onto the page, There is a couple seconds of a white box, then it starts and then it loads the game. Is there anything i can do to not have that couple of seconds of whiteness

    maybe me put a picture there which dissapears when the games loads ?
    does anyone know how to do that

    or another flash file which plays while the first is loading ? Any ideas ?
     
    geekazoid, Jul 11, 2006 IP
  2. ccoonen

    ccoonen Well-Known Member

    Messages:
    1,606
    Likes Received:
    71
    Best Answers:
    0
    Trophy Points:
    160
    #2
    you can have a pre-loader for your flash game. Which is just a very small SWF "shell" that loads the file. Get the file as small as possible (only use actionscript) and have it pre-load the other .SWF.
     
    ccoonen, Jul 11, 2006 IP
  3. geekazoid

    geekazoid Peon

    Messages:
    208
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #3
    sounds cool, How do i do that ? Is there anyway i can do it by editing the page because i cant edit all 300 flash files
     
    geekazoid, Jul 12, 2006 IP
  4. geekazoid

    geekazoid Peon

    Messages:
    208
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #4
    can anyone help me ?
     
    geekazoid, Jul 13, 2006 IP
  5. Ali Roman

    Ali Roman Banned

    Messages:
    74
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    0
    #5
    I am sure you will already have preloaders for those games, I havent seen you page, but I can suggest to make your SWF movie transparent, if its not already, use the following code and paste it with other swf parameters..

    <param name="wmode" value="transparent">

    not sure, but I hope this may help..
     
    Ali Roman, Jul 16, 2006 IP
  6. Scarface.

    Scarface. Peon

    Messages:
    349
    Likes Received:
    7
    Best Answers:
    0
    Trophy Points:
    0
    #6
    the white box is there becuase you either have a slow host or the game is pretty big. so you just have to be patient or make it smaller.
     
    Scarface., Jul 17, 2006 IP
  7. slickricky

    slickricky Active Member

    Messages:
    240
    Likes Received:
    3
    Best Answers:
    0
    Trophy Points:
    58
    #7
    Sorry I don't have time to paste the code for you, but look up "LoadMovie" in flash, and that should get your started.
     
    slickricky, Jul 17, 2006 IP
  8. leebari

    leebari Peon

    Messages:
    50
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #8
    You can also load background image to the element that is holding your flash applet. You would have to set wmode to transparent as mentioned before so your background image would be visible until swf file is loaded.

    I would also recommend using one flash preloader to load all flash documents. You can send parameters to it indicating file to load. This way preloaders swf file would only have to be requested once. Second time it would load from browser cache (almost instantly)

    Regards
     
    leebari, Oct 2, 2009 IP