Hi KR,

Can you provide more details on what error you are getting? You are
using the gadget.* API, so as you most likely know, you must be
running in the iGoogle sandbox. For the production iGoogle, you should
be using _IG_EmbedFlash() instead.

I personally always use the "Cache" version, which would obviously
require the .swf to be on a publicly accessible server, but as your
are not using the "Cache" based fonction, what you are doing here with
your local server should be ok.

Please, post the javascript error you are getting if any, as this
would allow us to give you more focused feedback.

Thanks,

Jerome

On Jan 22, 12:51 pm, kr <[email protected]> wrote:
> I'm pretty new to this Gadget world. I'm trying to pass query string
> to a swf in a gadget.
> i tried passing the params as flashvars also.  I didn't succeed.
> code is used is given below. Please help me with this.
>
> here are the two ways
> 1.
>
> function showFile() {
> // The URL for the .swf
> var url = "http://hostname:8080/webdav/proj.swf";;
> var flashvars = "mediaurl="+_esc("http://hostname:8080/webdav/
> 31010.flv");
> url = url + "?" + flashvars;
> // Play .swf file.
> state=gadgets.flash.embedFlash(url, "flashcontainer", {
> swf_version: 6,
> id: "flashid",
> width: 950,
> height: 250});}
>
> gadgets.util.registerOnLoadHandler(showFile);
>
> 2._____________
>
> function showFile() {
> // The URL for the .swf
> var url = "http://hostname:8080/webdav/proj.swf";;
> var flashvars = "mediaurl="+_esc("http://hostname:8080/webdav/
> 31010.flv");
>
> // Play .swf file.
> state=gadgets.flash.embedFlash(url, "flashcontainer", {
> swf_version: 6,
> id: "flashid",
> width: 950,
> height: 250,
> flashvars: "mediaurl="+ _esc("http://hostname:8080/webdav/31010.flv";)});}
>
> gadgets.util.registerOnLoadHandler(showFile);
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"iGoogle Developer Forum" 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/Google-Gadgets-API?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to