Aran, Thanks for the insight to the workings of SWFObject.
I will have a look at ExternalInterface, (this learning curve with AS3 is never ending!) But I have another issue that may be related.......maybe not for this forum though. The SWF that sends the LC, has a holder MC with several buttons. I use event propagation to detect the child MC on Mouse Click and pass the process to a function for that button. That function has the LC send command. When tested in IE the Flash debugger throws an error, (Unhandled Asnc) even though the LC works. If I recode the buttons to have individual listeners the errors cease. Martin On 18 Aug, 12:26, Aran Rhee <[email protected]> wrote: > 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_... > > 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 -~----------~----~----~----~------~----~------~--~---
