...

View Full Version : Embedding Flash within a loop



StupidRalph
07-26-2007, 06:00 AM
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 :D)

_Aerospace_Eng_
07-26-2007, 10:45 AM
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.



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum