www.webdeveloper.com
Results 1 to 4 of 4

Thread: testing for swf.'complete' loading

  1. #1
    Join Date
    Jan 2004
    Location
    Leeds
    Posts
    49

    testing for swf.'complete' loading

    I want to be able to load a .swf file into an invisible div after the main body content has loaded. How can I test to find when the download is complete ( so I can make the div visible ) ?

    Thanks for any help.

    Gord

  2. #2
    Join Date
    Dec 2003
    Location
    Bucharest, ROMANIA
    Posts
    15,428
    You must set a preloader sequence inside the Flash, when you construct the swf. This is a Flash matter, not a HTML nor a Javascript one...

  3. #3
    Join Date
    Feb 2005
    Posts
    1,018
    Hmm I think this is a javascript one since from reading the question the OP wants to know how to load a swf file AFTER the page has loaded. In javascript you can use
    Code:
    window.onload = function()
    {
    document.getElementById('flashdiv').style.display = 'block';
    }
    and have a div with id="flashdiv"
    Code:
    <div id="flashdiv">
    <!--flash code goes here-->
    </div>
    You might also want to look into swfobject: http://blog.deconcept.com/swfobject/
    If you can't handle the job then don't take the job or ask for help on it if you are getting paid for it.
    Web Developer's Handbook.::.Why Tables for Layout is Stupid?.::.Why I won't help you

  4. #4
    Join Date
    Jan 2004
    Location
    Leeds
    Posts
    49
    Thanks guys.

    I think the window.onload should do it.I overlooked the obvious there!

    That deconcept link is excellent _Aerospace_Eng_.

    Thanks again

    Gord

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
HTML5 Development Center



Recent Articles