Why do you need to init 60 swfs? Just init a single swf once they click on the button... (the button can call a function which passes the specific song id or path to the swf as it is created)
Read this tut for more info: http://learnswfobject.com/advanced-topics/load-a-swf-using-javascript-onclick-event/ (You'll want to mod the function slightly to take the music file value and add it to the flashvars object etc) Cheers, Aran On Wed, Feb 29, 2012 at 12:40 PM, Suntower <northwestir...@gmail.com> wrote: > Hi, I've asked this before. > > I use SWFObject for a number of music players... where there will be > 10 small objects on a page. > > I have one page where I would -like- to have about 60 little 'click to > play' buttons... which are generated dynamically via PHP/MySQL. IOW: > The page pulls 60 song titles from a database and echoes the code for > 60 SWFObject player buttons. > > Unfortunately, with this many SWFObjects, the load time is dreadful. > > Is there some facility for loading these in the background when the > user visits the (very lightweight) home page... and leave them cached > for when the visitor gets to the page I mentioned? > > TIA, > > ---JC > > -- > You received this message because you are subscribed to the Google Groups > "SWFObject" group. > To post to this group, send email to swfobject@googlegroups.com. > To unsubscribe from this group, send email to > swfobject+unsubscr...@googlegroups.com. > For more options, visit this group at > http://groups.google.com/group/swfobject?hl=en. > > -- You received this message because you are subscribed to the Google Groups "SWFObject" group. To post to this group, send email to swfobject@googlegroups.com. To unsubscribe from this group, send email to swfobject+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/swfobject?hl=en.