At the end of the day, SWFObject does write out <object> tags. The <div> is REPLACED when the swf is written to the page.
You should make sure that you have specified the correct name/id you want for any communcations to happen (externalinterface etc). You can see a example here: http://www.bobbyvandersluis.com/swfobject/testsuite_2_2/test_dynamic_com.html My only thought on local vs. remote is something to do with load speed / or cache meaning that the execution order of doing the local connection wiring is fireing wrong (e.g. you are trying to register your localconnection before both swfs have actually been written to the page. Maybe you want to init the conection via external interface from the page once you know the files are actuall there? Cheers, Aran On Tue, Aug 18, 2009 at 5:50 PM, andalusite <[email protected]> wrote: > > I recently converted SWFObject. > I have a web page with two SWFs connected by LocalConnections which > started to work only intermittently, about 50% of the time. After much > tearing of hair I realised the issue started when I converted the HTML > to SWFObject using <div> instead of <object>. > > I have found a couple of other posts from 2007 which refer to a > similar issue using hidden <div> tages in Flash 8. > > This is how the HTML code looks: > > swfobject.embedSWF("sky loader.swf", "loader", "800", "520", "9.0.0", > "false", flashvars, params, attributes); > swfobject.embedSWF("skyBar.swf", "bar", "800", "60", "9.0.0", "false", > {}, params, {}); > > The only difference is that one SWF has flashvars passed to it. > The "sky loader" is a preloader for another SWF named "sky" which > contains the LocalConnections. > > The strange part of this is that the intermittent fault would only > occur when I tested the webpage on my localhost (Apache / PHP), but > not on the remote server (Apache / PHP). > > Any thoughts? > > > --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
