Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 2 of 2
  1. #1
    Senior Coder
    Join Date
    Mar 2003
    Location
    Atlanta
    Posts
    1,037
    Thanks
    14
    Thanked 30 Times in 28 Posts

    Embedding Flash within a loop

    Does anyone have any tips or techniques I can use to embed a bunch of swf files by using a (while) loop. Not that the type of loop is important.

    The problem I am running into is that it is extremely slow to load the page while it embeds all of the swf files. The swf files are really simple, just a basic 5 star rating system.

    I was using swfObject but as some know that relies on the .innerHTML method which would in affect make it slower since it will have to load the page then rewrite each div for the movies

    (I still love SWFObject tho )
    Most of my questions/posts are fairly straightforward and simple. I post long verbose messages in an attempt to be thorough.

  • #2
    Supreme Master coder! _Aerospace_Eng_'s Avatar
    Join Date
    Dec 2004
    Location
    In a place far, far away...
    Posts
    19,291
    Thanks
    2
    Thanked 1,043 Times in 1,019 Posts
    You can still use swfobject. It doesn't wait till the page is done loading for it to fill the div. It just checks to see that the target element exists. Calling swfobject after the div is created shouldn't be a problem.
    ||||If you are getting paid to do a job, don't ask for help on it!||||


  •  

    Posting Permissions

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