yes, there is an issue with doing that :) swfobject tries to run its magic ondomready, and will be looking for the id's you specify. I
If your site already requires js, then you might want to look at the dynamic embed method. It allows a bunch more flexibility as to what to write to the page and when. You could make a wrapper function which you pass the correct dom id etc. have a look at http://learnswfobject.com/ for a bunch of tuts which might cover exactly what you want to do. Cheers, Aran On Tue, Aug 17, 2010 at 10:12 PM, BigBear <[email protected]> wrote: > Hi All, > > Wondering if anyone has encountered any issues with the following > setup: > > I'm using a parallel .js loader http://labjs.com/ > > And I am putting the below into an external script: > <script type="text/javascript"> > swfobject.registerObject("myId", "9.0.115", "expressInstall.swf"); > </script> > > Everything seems to be working great, however, throughout the site I > wish to call a number of flash movies so it would be easiest to have a > number of entries in my external .js, e.g. > > swfobject.registerObject("myId", "9.0.115", "expressInstall.swf"); > swfobject.registerObject("myId2", "9.0.115", > "expressInstall.swf"); > swfobject.registerObject("myId3", "9.0.115", > "expressInstall.swf"); > > Is there any issue with adding these if the id is not actually found > on the current web page though? > > e.g. I register myId3 for every web page but possibly this only shows > up on some web pages within the site. > > I prefer the above method because it's more efficient and everything > is contained in one file. > > Many thanks for any thoughts on this. > > -- > You received this message because you are subscribed to the Google Groups > "SWFObject" group. > To post to this group, send email to [email protected]. > To unsubscribe from this group, send email to > [email protected]<swfobject%[email protected]> > . > 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 [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/swfobject?hl=en.
