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