Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 2 of 2
Thread: Embedding Flash within a loop
07-26-2007, 06:00 AM #1
- Join Date
- Mar 2003
- 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.
07-26-2007, 10:45 AM #2
- Join Date
- Dec 2004
- In a place far, far away...
- 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.