this works for me:

gadgets.flash.embedFlash(flashUrl, "flashcontainer", 9, { id:
'flashAppId', width: '765', height:'1500',  allowScriptAccess:
'always', flashvars: 'example=foo'});

then in flex:

var example:String = Application.application.parameters.example;


or a movie clip:

var example:String  = this.loaderInfo.parameters.example;




On Mar 16, 12:55 am, Prashant Patil <[email protected]>
wrote:
> 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 <[email protected]> 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 
> Orkuteerhttp://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 [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/opensocial-orkut?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to