OK, sorry guys - I should have specified that I am using the Flex/Ajax bridge, which uses ExternalInterface to work its dark magic.
I've tried integrating swfobject into my testbed, and now I'm not getting those ExternalInterface errors anymore, but my FABridge stuff is completely broken. My initialization callback function isn't getting called. But I see no errors. I tried using the modified FABridge.js file you folks published, to no avail. I'll keep looking at this, but for now: I downloaded the examples from here: http://www.bobbyvandersluis.com/swfobject/flex3/ ... but they didn't work for as is - I had to change this line: <script src="../src/bridge/FABridge.js" ></script> ... to <script src="FABridge.js" ></script> ... and put the updated FABridge.js in the top-level dir. Having done that, the examples DO work, so hopefully I'll be able to figure out what I'm doing wrong by studying them. - mps ________________________________ From: "Getify Solutions, Inc." <[email protected]> To: [email protected] Sent: Tuesday, March 10, 2009 3:58:35 PM Subject: Re: SWFObject and innerHTML I assure you that EI works with SWFObject. There are numerous examples of projects that cooperate with our project which leverage that kind of functionality. That having been said, EI is buggy at best, so your mileage may vary depending on how complicated your app/page is. But functionally, yes, SWFObject should be perfectly compatible with an EI swf. --Kyle From: Michael Pelz-Sherman Sent: Tuesday, March 10, 2009 2:46 PM To: [email protected] Subject: Re: SWFObject and innerHTML Thanks for the quick responses! I will give SWFObject a try! Before I get too far along though, can anyone assure me that this approach works with ExternalInterface & IE? Thanks again! - mps ________________________________ From: Vincent Polite <[email protected]> To: [email protected] Sent: Tuesday, March 10, 2009 3:41:52 PM Subject: Re: SWFObject and innerHTML SWFObject will in fact butter your toast and make you coffee. It is the end all be all of... OK, seriously. If you are trying to present flash content in a safe, sane, and stable way that functions admirably in most/all browsers of note, then SWFObject will do the trick. Be sure to check out the documentation on the google group as there are specific examples and demos that will make your life easier. Vincent On Tue, Mar 10, 2009 at 12:30 PM, MPS <[email protected]> wrote: Can SWFObject be used in the following way: I want to use javascript to generate my <object/embed> tag HTML and populate a <div> with the result. I tried modifying Adobe's AC_Generateobj function to do this, and it works fine in Firefox and Safari, but not in IE (6 or 7). Here's my code: var flashObjTag = AC_FL_RunContent(... the usual args here...); $(divName).innerHTML = flashObjTag; Basically we're trying to avoid using document.write(). Unfortunately I'm running into this bug: http://bugs.adobe.com/jira/browse/FP-692 (ExternalInterface.call() fails in IE7 with "Object Does not support this property or method") Will SWFObject provide a solution for me? --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
