if this helps you chk it! i am not sure this is good method to pass var's <script> function flashhtml (gid,gname,gurl,pname) { var html = "<embed src="+gurl+"?gameid="+gid+"&gamename="+gname+"&playername="+pname; document.getElementById("mygame").innerHTML = html; }
</script> <div id="mygame"></div> On Sun, Mar 15, 2009 at 11:26 AM, JamesCW <cricket...@gmail.com> wrote: > > I'm trying to pass variables through to my flash application but it's > failing and not working. > > What am I doing wrong? Is that the correct syntax for passing > variables to flash in Orkut? > > > function renderControls() { > var handle = document.getElementById("dom_handle"); > > var outputbox = document.createElement("div"); > outputbox.id = "outputbox"; > outputbox.style.width = "750px"; > outputbox.style.height = "800px"; > > handle.innerHTML = ""; > handle.appendChild(outputbox); > > gadgets.window.adjustHeight(); > > var url = "http://www.myurl.com/game.swf"; > > outputbox = document.getElementById("outputbox"); > gadgets.flash.embedFlash(url, outputbox, 9, {FlashVars:"UserID=10", > allowScriptAccess: "always", bgcolor: "#cccccc"}); > gadgets.window.adjustHeight(); > }; > > renderControls(); > > > > -- With best Regards. Prashant aka Orkuteer http://en.blog.orkut.com/2007/11/thanks-from-orkuteer.html --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Orkut Developer Forum" group. To post to this group, send email to opensocial-orkut@googlegroups.com To unsubscribe from this group, send email to opensocial-orkut+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/opensocial-orkut?hl=en -~----------~----~----~----~------~----~------~--~---