[OpenSocial] Re: how to pass variables to swf using gadgets.flash.embedFlash
it looks like _IG_ calls are being migrated to a better namespace. I would avoid them. How do you get your error? I might take a screenshot and post. that looks like a regular expression. Something is breaking in flash or in the make request object. Does your url already have # or a ? in it? Its hard to help in the blind on this one. do you have firebug? can you debug it? On Mar 4, 1:06 am, rush [EMAIL PROTECTED] wrote: Thanks for reply. @ Paul I tried gadgets.flash.embedCachedFlash instead of gadgets.flash.embedFlash but it is giving error Error: D.match(/^[^?#] +\//) has no properties @ jdavid I tried the option2 but it is also giving the same error Error: D.match(/^[^?#]+\//) has no properties I want to ask one more question, if i will use _IG_EmbedFlash instead of gadgets.flash.embedFlash, is it ok? which one is the better way? Regards Rush On Mar 4, 5:46 am, jdavid.net [EMAIL PROTECTED] wrote: actually this feature is broken. if you try to add a param that is unrecognized by embedFlash, it will not add it as a parameter tag. we found there are 2 better ways to load the swf file right now. option1. use swfObject1-5 it has a superior interface and is more fault tolerant when it comes to browsers, the downside is that getting 100% width and 100% height properties is tough with swfObject1-5. if you want to cache the flash file(its slow right now) you will want to do a getProxyUrl on your swf location url first, and then send that string to swfObject1-5. var url = http://yourdomain.com/file.swf;; url = gadget.io.getProxyUrl(url); option2. use the broken embedFlash function, but encode flashvars in the url. if the settings change, then it will re-cahce the swft object. DO NOT DO THIS WITH PRIVATE DATA!!! but in the case of a userid, you are probably fine. var url = http://yourdomain.com/file.swf;; var flashvars = var1=value1var2=value2; url = url + ? + flashvars ; //adds flash vars to your url option 1 + 2 var url = http://yourdomain.com/file.swf;; var flashvars = var1=value1var2=value2; url = url + ? + flashvars ; url = gadget.io.getProxyUrl(url); //proxy encode your url +flashvars right now there are a few options that are only available through swfObject like allowFullScreen //allows the flash widget to go full screen, esc always exits fullscreen, and keyboard becomes disabled as input into flash allowScriptAccess //defines the javascript flash bridge allowNetworking //defines local connection access embedFlash will not let you set these params either by design or by flaw, either way its not there. I think it should be there because of adobe's overly restrictive security models, that are far more strict/ annoying than javascript. On Mar 3, 7:10 am, rush [EMAIL PROTECTED] wrote: Hi all, I want to pass username to swf file. It was working fine when i use _IG_EmbedCachedFlash, but pass blank when use gadgets.flash.embedFlash. I am using following code, is it ok or have some mistake. gadgets.flash.embedFlash(url, flashComponent, { swf_version: 8,width:800, height: 600, id: flashid, flashvars: 'username='+ _esc(username) }) Thanks Rush- Hide quoted text - - Show quoted text - --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups OpenSocial Application Development group. To post to this group, send email to opensocial-api@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/opensocial-api?hl=en -~--~~~~--~~--~--~---
[OpenSocial] Re: how to pass variables to swf using gadgets.flash.embedFlash
Hi jdavid Thanks for your help. It is working today but giving the same error when i m using embedCachedFlash instead of embedFlash. One more question, will flashvars feature work in future? Regards Rush On Mar 5, 5:38 am, jdavid.net [EMAIL PROTECTED] wrote: it looks like _IG_ calls are being migrated to a better namespace. I would avoid them. How do you get your error? I might take a screenshot and post. that looks like a regular expression. Something is breaking in flash or in the make request object. Does your url already have # or a ? in it? Its hard to help in the blind on this one. do you have firebug? can you debug it? On Mar 4, 1:06 am, rush [EMAIL PROTECTED] wrote: Thanks for reply. @ Paul I tried gadgets.flash.embedCachedFlash instead of gadgets.flash.embedFlash but it is giving error Error: D.match(/^[^?#] +\//) has no properties @ jdavid I tried the option2 but it is also giving the same error Error: D.match(/^[^?#]+\//) has no properties I want to ask one more question, if i will use _IG_EmbedFlash instead of gadgets.flash.embedFlash, is it ok? which one is the better way? Regards Rush On Mar 4, 5:46 am, jdavid.net [EMAIL PROTECTED] wrote: actually this feature is broken. if you try to add a param that is unrecognized by embedFlash, it will not add it as a parameter tag. we found there are 2 better ways to load the swf file right now. option1. use swfObject1-5 it has a superior interface and is more fault tolerant when it comes to browsers, the downside is that getting 100% width and 100% height properties is tough with swfObject1-5. if you want to cache the flash file(its slow right now) you will want to do a getProxyUrl on your swf location url first, and then send that string to swfObject1-5. var url = http://yourdomain.com/file.swf;; url = gadget.io.getProxyUrl(url); option2. use the broken embedFlash function, but encode flashvars in the url. if the settings change, then it will re-cahce the swft object. DO NOT DO THIS WITH PRIVATE DATA!!! but in the case of a userid, you are probably fine. var url = http://yourdomain.com/file.swf;; var flashvars = var1=value1var2=value2; url = url + ? + flashvars ; //adds flash vars to your url option 1 + 2 var url = http://yourdomain.com/file.swf;; var flashvars = var1=value1var2=value2; url = url + ? + flashvars ; url = gadget.io.getProxyUrl(url); //proxy encode your url +flashvars right now there are a few options that are only available through swfObject like allowFullScreen //allows the flash widget to go full screen, esc always exits fullscreen, and keyboard becomes disabled as input into flash allowScriptAccess //defines the javascript flash bridge allowNetworking //defines local connection access embedFlash will not let you set these params either by design or by flaw, either way its not there. I think it should be there because of adobe's overly restrictive security models, that are far more strict/ annoying than javascript. On Mar 3, 7:10 am, rush [EMAIL PROTECTED] wrote: Hi all, I want to pass username to swf file. It was working fine when i use _IG_EmbedCachedFlash, but pass blank when use gadgets.flash.embedFlash. I am using following code, is it ok or have some mistake. gadgets.flash.embedFlash(url, flashComponent, { swf_version: 8,width:800, height: 600, id: flashid, flashvars: 'username='+ _esc(username) }) Thanks Rush- Hide quoted text - - Show quoted text -- Hide quoted text - - Show quoted text - --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups OpenSocial Application Development group. To post to this group, send email to opensocial-api@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/opensocial-api?hl=en -~--~~~~--~~--~--~---
[OpenSocial] Re: how to pass variables to swf using gadgets.flash.embedFlash
On Mon, Mar 03, 2008 at 08:10:34AM -0500, rush wrote: Hi all, I want to pass username to swf file. It was working fine when i use _IG_EmbedCachedFlash, but pass blank when use gadgets.flash.embedFlash. I am using following code, is it ok or have some mistake. gadgets.flash.embedFlash(url, flashComponent, { swf_version: 8,width:800, height: 600, id: flashid, flashvars: 'username='+ _esc(username) }) Try using gadgets.flash.embedCachedFlash(...) The reason your code works with the embed parameter is because it's loaded via the gadget server proxy. This avoids any cross-domain restrictions when loading your flash .swf directly from your site. -- Paul Lindner hi5 Architect [EMAIL PROTECTED] pgpSAkGCSrjaH.pgp Description: PGP signature
[OpenSocial] Re: how to pass variables to swf using gadgets.flash.embedFlash
actually this feature is broken. if you try to add a param that is unrecognized by embedFlash, it will not add it as a parameter tag. we found there are 2 better ways to load the swf file right now. option1. use swfObject1-5 it has a superior interface and is more fault tolerant when it comes to browsers, the downside is that getting 100% width and 100% height properties is tough with swfObject1-5. if you want to cache the flash file(its slow right now) you will want to do a getProxyUrl on your swf location url first, and then send that string to swfObject1-5. var url = http://yourdomain.com/file.swf;; url = gadget.io.getProxyUrl(url); option2. use the broken embedFlash function, but encode flashvars in the url. if the settings change, then it will re-cahce the swft object. DO NOT DO THIS WITH PRIVATE DATA!!! but in the case of a userid, you are probably fine. var url = http://yourdomain.com/file.swf;; var flashvars = var1=value1var2=value2; url = url + ? + flashvars ; //adds flash vars to your url option 1 + 2 var url = http://yourdomain.com/file.swf;; var flashvars = var1=value1var2=value2; url = url + ? + flashvars ; url = gadget.io.getProxyUrl(url); //proxy encode your url +flashvars right now there are a few options that are only available through swfObject like allowFullScreen //allows the flash widget to go full screen, esc always exits fullscreen, and keyboard becomes disabled as input into flash allowScriptAccess //defines the javascript flash bridge allowNetworking //defines local connection access embedFlash will not let you set these params either by design or by flaw, either way its not there. I think it should be there because of adobe's overly restrictive security models, that are far more strict/ annoying than javascript. On Mar 3, 7:10 am, rush [EMAIL PROTECTED] wrote: Hi all, I want to pass username to swf file. It was working fine when i use _IG_EmbedCachedFlash, but pass blank when use gadgets.flash.embedFlash. I am using following code, is it ok or have some mistake. gadgets.flash.embedFlash(url, flashComponent, { swf_version: 8,width:800, height: 600, id: flashid, flashvars: 'username='+ _esc(username) }) Thanks Rush --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups OpenSocial Application Development group. To post to this group, send email to opensocial-api@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/opensocial-api?hl=en -~--~~~~--~~--~--~---
[OpenSocial] Re: how to pass variables to swf using gadgets.flash.embedFlash
Thanks for reply. @ Paul I tried gadgets.flash.embedCachedFlash instead of gadgets.flash.embedFlash but it is giving error Error: D.match(/^[^?#] +\//) has no properties @ jdavid I tried the option2 but it is also giving the same error Error: D.match(/^[^?#]+\//) has no properties I want to ask one more question, if i will use _IG_EmbedFlash instead of gadgets.flash.embedFlash, is it ok? which one is the better way? Regards Rush On Mar 4, 5:46 am, jdavid.net [EMAIL PROTECTED] wrote: actually this feature is broken. if you try to add a param that is unrecognized by embedFlash, it will not add it as a parameter tag. we found there are 2 better ways to load the swf file right now. option1. use swfObject1-5 it has a superior interface and is more fault tolerant when it comes to browsers, the downside is that getting 100% width and 100% height properties is tough with swfObject1-5. if you want to cache the flash file(its slow right now) you will want to do a getProxyUrl on your swf location url first, and then send that string to swfObject1-5. var url = http://yourdomain.com/file.swf;; url = gadget.io.getProxyUrl(url); option2. use the broken embedFlash function, but encode flashvars in the url. if the settings change, then it will re-cahce the swft object. DO NOT DO THIS WITH PRIVATE DATA!!! but in the case of a userid, you are probably fine. var url = http://yourdomain.com/file.swf;; var flashvars = var1=value1var2=value2; url = url + ? + flashvars ; //adds flash vars to your url option 1 + 2 var url = http://yourdomain.com/file.swf;; var flashvars = var1=value1var2=value2; url = url + ? + flashvars ; url = gadget.io.getProxyUrl(url); //proxy encode your url +flashvars right now there are a few options that are only available through swfObject like allowFullScreen //allows the flash widget to go full screen, esc always exits fullscreen, and keyboard becomes disabled as input into flash allowScriptAccess //defines the javascript flash bridge allowNetworking //defines local connection access embedFlash will not let you set these params either by design or by flaw, either way its not there. I think it should be there because of adobe's overly restrictive security models, that are far more strict/ annoying than javascript. On Mar 3, 7:10 am, rush [EMAIL PROTECTED] wrote: Hi all, I want to pass username to swf file. It was working fine when i use _IG_EmbedCachedFlash, but pass blank when use gadgets.flash.embedFlash. I am using following code, is it ok or have some mistake. gadgets.flash.embedFlash(url, flashComponent, { swf_version: 8,width:800, height: 600, id: flashid, flashvars: 'username='+ _esc(username) }) Thanks Rush- Hide quoted text - - Show quoted text - --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups OpenSocial Application Development group. To post to this group, send email to opensocial-api@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/opensocial-api?hl=en -~--~~~~--~~--~--~---