if your still trying to do this try the following
http://code.google.com/apis/ajaxlibs/documentation/#swfobject
- S


2009/4/30 Bertrand <[email protected]>

>
> I was wondering if there was a known issue with SWFObject when the
> script is inserted dynamically into the parent window's head from an
> iFrame doing:
>
> var myHeadTag = parent.window.document.getElementsByTagName('head')
> [0],
> myScriptTag = parent.window.document.createElement('script');
> myScriptTag.setAttribute('src', 
> 'http://some.url/swfobject.js'<http://some.url/swfobject.js%27>
> );
> myHeadTag.appendChild(myScriptTag);
>
> After doing that, I try to do something like
>
> var params = {menu:"false", quality:"high", wmode:"opaque",
> allowscriptaccess:"always"},
> attributes = {align:"left"},
> flashvars = {fid:flashAdID, lid:listingID};
> window.parent.swfobject.embedSWF("http://some.url/file.swf","floater";,
> myWidth, myHeight, "9.0.0", false, flashvars, params, attributes);
>
> And I get an error message telling me that parent.window.swfobject is
> undefined, which is weird since I appended it to the head earlier in
> the code (as mentioned above).
>
> I tried adding a timeout in case the script needed time to load, to no
> avail.
>
> Any help or piece of advice appreciated.
> >
>

--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to