So in order to call the encodeURIComponent method, you will need to ensure the user has javascript enabled. Part of the benefits of static publishing is that it will still work without js enabled. So you should really decide what your requirements of your page are. If you know you need to do somethings with js to get then page to work anyhow, then you can swap to dynamic embed method and call the swfobejct 2.x equivalent methods to add the required flash vars.
Have a read of this article for examples etc: http://dreamsocket.com/support/articles/seo/seo-flash Cheers, Aran On Fri, Sep 11, 2009 at 9:45 AM, matty <[email protected]> wrote: > > back a few years ago I saw this: > > var fo = new FlashObject("passdata.swf", "passdata", "300", "300", > "8", "#ffffff"); > fo.addVariable("xmlData", encodeURIComponent(document.getElementById > ("flashcontent").innerHTML)); > fo.write("flashcontent"); > > now, with SWFObject 2.0, I am unable to accomplish the same thing > using static embed method. Is there any way to do this? Basically I > want to build components of the flex application based on elements in > the html... > > Any help would rock. I've spent too long trying to figure this out. > > thanks. > > MAtt > > > --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
