Re: [Flashcoders] Accessing FlashVars
Could you put what you need in some javascript and grab it using ExternalInterface instead? On 1 May 2012 17:27, Kevin Newman capta...@unfocus.com wrote: Back in the day I remember embed just plain old worked better across the board in non-IE browsers. That may have changed (object offered better fallbacks for one thing, and has been worked on a lot more lately, but it also had other kinds of problems). Then we came up with this nested object thing that has conditional comments, and duplicates of all the params, and called that standards. Then HTML5 embraced tag soup again, arbitrary tag names, and now even arbitrary attributes names, so using embed with random attributes is actually standards compliant, but is still considered deprecated whatever that means anymore. And embed still works better and is less verbose, afaict. /bitter-lament Kevin N. On 5/1/2012 1:21 AM, Kerry Thompson wrote: That's one way of doing it, but the embed tag has been deprecated. Well, maybe not officially deprecated, but it's considered obsolete. __**_ Flashcoders mailing list Flashcoders@chattyfig.figleaf.**com Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/**mailman/listinfo/flashcodershttp://chattyfig.figleaf.com/mailman/listinfo/flashcoders -- David Hunter www.davidhunterdesign.com +44 (0) 7869 104 906 ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] Accessing FlashVars
That may be what we end up doing. This is a Facebook game, and I'm calling a lot of JavaScript functions already. It would be easy enough to write one to get the paths I need. Thanks, David. Cordially, Kerry Thompson On Wed, May 2, 2012 at 4:13 AM, David Hunter m...@davidhunterdesign.comwrote: Could you put what you need in some javascript and grab it using ExternalInterface instead? On 1 May 2012 17:27, Kevin Newman capta...@unfocus.com wrote: Back in the day I remember embed just plain old worked better across the board in non-IE browsers. That may have changed (object offered better fallbacks for one thing, and has been worked on a lot more lately, but it also had other kinds of problems). Then we came up with this nested object thing that has conditional comments, and duplicates of all the params, and called that standards. Then HTML5 embraced tag soup again, arbitrary tag names, and now even arbitrary attributes names, so using embed with random attributes is actually standards compliant, but is still considered deprecated whatever that means anymore. And embed still works better and is less verbose, afaict. /bitter-lament Kevin N. On 5/1/2012 1:21 AM, Kerry Thompson wrote: That's one way of doing it, but the embed tag has been deprecated. Well, maybe not officially deprecated, but it's considered obsolete. __**_ Flashcoders mailing list Flashcoders@chattyfig.figleaf.**com Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/**mailman/listinfo/flashcoders http://chattyfig.figleaf.com/mailman/listinfo/flashcoders -- David Hunter www.davidhunterdesign.com +44 (0) 7869 104 906 ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] Accessing FlashVars
It is now: http://www.w3schools.com/html5/html5_new_elements.asp embed Defines a container for an external application or interactive content (a plug-in) -Original Message- From: Henrik Andersson Sent: Tuesday, May 01, 2012 7:03 AM To: Flash Coders List Subject: Re: [Flashcoders] Accessing FlashVars Kerry Thompson skriver: That's one way of doing it, but the embed tag has been deprecated. Well, maybe not officially deprecated, but it's considered obsolete. Well, you can't deprecate something that has never been in the standard to begin with. ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] Accessing FlashVars
Bob Schmitt skriver: It is now: http://www.w3schools.com/html5/html5_new_elements.asp embed Defines a container for an external application or interactive content (a plug-in) HTML 5 is not a standard. It has yet to be finalized. ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] Accessing FlashVars
Yah, yah. Give it 20 more years. Point is, it is embed is being added to the spec, it is *not* being deprecated. -Original Message- From: Henrik Andersson Sent: Wednesday, May 02, 2012 4:04 PM To: Flash Coders List Subject: Re: [Flashcoders] Accessing FlashVars Bob Schmitt skriver: It is now: http://www.w3schools.com/html5/html5_new_elements.asp embed Defines a container for an external application or interactive content (a plug-in) HTML 5 is not a standard. It has yet to be finalized. ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
RE: [Flashcoders] Accessing FlashVars
Hi Kerry, Digging a few years back, I unearthed some code. Here's the html: object data=main.swf id=main type=application/x-shockwave-flash width=980 height=600 param name=movie value=main.swf / param name=menu value=false / param name=quality value=best / param name=bgcolor value=#ff / param name=flashVersion value=9 / param name=flashVars value=product=test/ /object And this is from the Main Class constructor: product = root.loaderInfo.parameters.product; For the life of me I can't remember why I used root in a Main constructor (copy-pasta from another class or maybe the movie was loaded by another?), but it worked. Maybe you could try this combo with a bare-bones test movie. (Note: This wasn't done in FlashBuilder, though - Flash IDE compiler with FlashDevelop for code editing) Karina -Original Message- From: flashcoders-boun...@chattyfig.figleaf.com [mailto:flashcoders-boun...@chattyfig.figleaf.com] On Behalf Of Kerry Thompson Sent: 01 May 2012 06:22 To: Flash Coders List Subject: Re: [Flashcoders] Accessing FlashVars That's one way of doing it, but the embed tag has been deprecated. Well, maybe not officially deprecated, but it's considered obsolete. I've done some more digging, and it may not even be related to the FlashVars. There are some other things in the HTML that aren't working, so there may be a deeper, or prior, problem. Thanks, Karl. Cordially, Kerry Thompson On Tue, May 1, 2012 at 1:12 AM, Karl DeSaulniers k...@designdrumm.comwrote: Something like this? object ... param name=FlashVars value=appURL= testappURL2=hello ... embed ... FlashVars=appURL= testappURL2=hello ... / /object FLASH --- function init(e:Event) { var flashVars=this.loaderInfo.**parameters; var appURL=flashVars.appURL; } this.loaderInfo.**addEventListener(Event.**COMPLETE, init); HTH, Karl On Apr 30, 2012, at 5:46 PM, Kerry Thompson wrote: Flash Builder 4 AS3 project, Windows 7, Firefox 12.0. I can't access the FlashVars in the HTML file. I've been working on this all day, and it's driving me crazy (crazier). Do you see anything in the following code? In the constructor of my default AS3 file, I have this: this.loaderInfo.**addEventListener(Event.**COMPLETE, init); and in the init() function: var flashVars:Object; flashVars = this.loaderInfo.parameters; When I look at it in the debugger, flashVars is an object, but it has no parameters. The relevant HTML is pretty straightforward: object classid=clsid:D27CDB6E-AE6D-**11cf-96B8-44455354 width=100% height=100% id=RMK_Beta param name=movie value=RMK_Beta.swf / param name=FlashVars value=appUrl=test / param name=quality value=high / param name=bgcolor value=#ff / param name=allowScriptAccess value=sameDomain / param name=allowFullScreen value=true / !--[if !IE]-- object type=application/x-shockwave-**flash data=RMK_Beta.swf width=100% height=100% param name=FlashVars value=appUrl=test / param name=quality value=high / param name=bgcolor value=#ff / param name=allowScriptAccess value=sameDomain / param name=allowFullScreen value=true / !--![endif]-- !--[if gte IE 6]-- p Either scripts and active content are not permitted to run or Adobe Flash Player version 10.0.0 or greater is not installed. /p !--![endif]-- a href=http://www.adobe.com/go/**getflashplayerhttp://www.adobe.com/go/getfl ashplayer img src= http://www.adobe.com/images/**shared/download_buttons/get_** flash_player.gifhttp://www.adobe.com/images/shared/download_buttons/get_fla sh_player.gif alt=Get Adobe Flash Player / /a !--[if !IE]-- /object !--![endif]-- /object __**_ Flashcoders mailing list Flashcoders@chattyfig.figleaf.**com Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/**mailman/listinfo/flashcodershttp://chattyfig .figleaf.com/mailman/listinfo/flashcoders Karl DeSaulniers Design Drumm http://designdrumm.com __**_ Flashcoders mailing list Flashcoders@chattyfig.figleaf.**com Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/**mailman/listinfo/flashcodershttp://chattyfig .figleaf.com/mailman/listinfo/flashcoders ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] Accessing FlashVars
Kerry Thompson skriver: That's one way of doing it, but the embed tag has been deprecated. Well, maybe not officially deprecated, but it's considered obsolete. Well, you can't deprecate something that has never been in the standard to begin with. ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
RE: [Flashcoders] Accessing FlashVars
Weird because I used to do it that way all the time. Jason Merrill Instructional Technology Architect II Bank of America Global Learning ___ -Original Message- From: flashcoders-boun...@chattyfig.figleaf.com [mailto:flashcoders-boun...@chattyfig.figleaf.com] On Behalf Of Kerry Thompson Sent: Monday, April 30, 2012 8:00 PM To: Flash Coders List Subject: Re: [Flashcoders] Accessing FlashVars Thanks, Karina and Jason. Jason, I've traced out the url, and it's not in that. For the time being, I'm running locally, and the URL just points to the swf. Karina, I've tried it the way you suggest, with no luck. I've looked at loaderInfo.parameters in the debugger, in the constructor, and parameters is an object, but it has no properties. It should have at least one parameter--I'm declaring 5 parameters in the HTML, but it's showing none of them. I'm wondering if the problem has to do with the object's parameters, and not specifically FlashVars. Cordially, Kerry Thompson On Mon, Apr 30, 2012 at 7:27 PM, Karina Steffens kar...@neo-archaic.netwrote: Hey Kerry, I think it's because you assigned the event to loaderinfo - not the Main class instance, and then you're asking for the loaderinfo's loaderinfo, when it's the Main's loaderinfo that you need. Also I don't think you need any event at all. You should be able to access the flashvars from the Main function's constructor (loaderinfo.parameters) Cheers, Karina On 30 Apr 2012, at 23:46, Kerry Thompson al...@cyberiantiger.biz wrote: Flash Builder 4 AS3 project, Windows 7, Firefox 12.0. I can't access the FlashVars in the HTML file. I've been working on this all day, and it's driving me crazy (crazier). Do you see anything in the following code? In the constructor of my default AS3 file, I have this: this.loaderInfo.addEventListener(Event.COMPLETE, init); and in the init() function: var flashVars:Object; flashVars = this.loaderInfo.parameters; When I look at it in the debugger, flashVars is an object, but it has no parameters. The relevant HTML is pretty straightforward: object classid=clsid:D27CDB6E-AE6D-11cf-96B8-44455354 width=100% height=100% id=RMK_Beta param name=movie value=RMK_Beta.swf / param name=FlashVars value=appUrl=test / param name=quality value=high / param name=bgcolor value=#ff / param name=allowScriptAccess value=sameDomain / param name=allowFullScreen value=true / !--[if !IE]-- object type=application/x-shockwave-flash data=RMK_Beta.swf width=100% height=100% param name=FlashVars value=appUrl=test / param name=quality value=high / param name=bgcolor value=#ff / param name=allowScriptAccess value=sameDomain / param name=allowFullScreen value=true / !--![endif]-- !--[if gte IE 6]-- p Either scripts and active content are not permitted to run or Adobe Flash Player version 10.0.0 or greater is not installed. /p !--![endif]-- a href=http://www.adobe.com/go/getflashplayer; img src= http://www.adobe.com/images/shared/download_buttons/get_flash_player .gif alt=Get Adobe Flash Player / /a !--[if !IE]-- /object !--![endif]-- /object ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders -- This message w/attachments (message) is intended solely for the use of the intended recipient(s) and may contain information that is privileged, confidential or proprietary. If you are not an intended recipient, please notify the sender, and then please delete and destroy all copies and attachments, and be advised that any review or dissemination of, or the taking of any action in reliance on, the information contained in or attached to this message is prohibited. Unless specifically indicated, this message is not an offer to sell or a solicitation of any investment products or other financial product or service, an official confirmation of any transaction
Re: [Flashcoders] Accessing FlashVars
Back in the day I remember embed just plain old worked better across the board in non-IE browsers. That may have changed (object offered better fallbacks for one thing, and has been worked on a lot more lately, but it also had other kinds of problems). Then we came up with this nested object thing that has conditional comments, and duplicates of all the params, and called that standards. Then HTML5 embraced tag soup again, arbitrary tag names, and now even arbitrary attributes names, so using embed with random attributes is actually standards compliant, but is still considered deprecated whatever that means anymore. And embed still works better and is less verbose, afaict. /bitter-lament Kevin N. On 5/1/2012 1:21 AM, Kerry Thompson wrote: That's one way of doing it, but the embed tag has been deprecated. Well, maybe not officially deprecated, but it's considered obsolete. ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
[Flashcoders] Accessing FlashVars
Flash Builder 4 AS3 project, Windows 7, Firefox 12.0. I can't access the FlashVars in the HTML file. I've been working on this all day, and it's driving me crazy (crazier). Do you see anything in the following code? In the constructor of my default AS3 file, I have this: this.loaderInfo.addEventListener(Event.COMPLETE, init); and in the init() function: var flashVars:Object; flashVars = this.loaderInfo.parameters; When I look at it in the debugger, flashVars is an object, but it has no parameters. The relevant HTML is pretty straightforward: object classid=clsid:D27CDB6E-AE6D-11cf-96B8-44455354 width=100% height=100% id=RMK_Beta param name=movie value=RMK_Beta.swf / param name=FlashVars value=appUrl=test / param name=quality value=high / param name=bgcolor value=#ff / param name=allowScriptAccess value=sameDomain / param name=allowFullScreen value=true / !--[if !IE]-- object type=application/x-shockwave-flash data=RMK_Beta.swf width=100% height=100% param name=FlashVars value=appUrl=test / param name=quality value=high / param name=bgcolor value=#ff / param name=allowScriptAccess value=sameDomain / param name=allowFullScreen value=true / !--![endif]-- !--[if gte IE 6]-- p Either scripts and active content are not permitted to run or Adobe Flash Player version 10.0.0 or greater is not installed. /p !--![endif]-- a href=http://www.adobe.com/go/getflashplayer; img src= http://www.adobe.com/images/shared/download_buttons/get_flash_player.gif; alt=Get Adobe Flash Player / /a !--[if !IE]-- /object !--![endif]-- /object ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
RE: [Flashcoders] Accessing FlashVars
My memory is foggy, but I always thought you just access the FlashVars variable you created in the HTML straight away in the swf, in this case, appUrl. Have you tried a trace on appUrl? Jason Merrill Instructional Technology Architect II Bank of America Global Learning ___ -Original Message- From: flashcoders-boun...@chattyfig.figleaf.com [mailto:flashcoders-boun...@chattyfig.figleaf.com] On Behalf Of Kerry Thompson Sent: Monday, April 30, 2012 6:46 PM To: FlashCoders Subject: [Flashcoders] Accessing FlashVars Flash Builder 4 AS3 project, Windows 7, Firefox 12.0. I can't access the FlashVars in the HTML file. I've been working on this all day, and it's driving me crazy (crazier). Do you see anything in the following code? In the constructor of my default AS3 file, I have this: this.loaderInfo.addEventListener(Event.COMPLETE, init); and in the init() function: var flashVars:Object; flashVars = this.loaderInfo.parameters; When I look at it in the debugger, flashVars is an object, but it has no parameters. The relevant HTML is pretty straightforward: object classid=clsid:D27CDB6E-AE6D-11cf-96B8-44455354 width=100% height=100% id=RMK_Beta param name=movie value=RMK_Beta.swf / param name=FlashVars value=appUrl=test / param name=quality value=high / param name=bgcolor value=#ff / param name=allowScriptAccess value=sameDomain / param name=allowFullScreen value=true / !--[if !IE]-- object type=application/x-shockwave-flash data=RMK_Beta.swf width=100% height=100% param name=FlashVars value=appUrl=test / param name=quality value=high / param name=bgcolor value=#ff / param name=allowScriptAccess value=sameDomain / param name=allowFullScreen value=true / !--![endif]-- !--[if gte IE 6]-- p Either scripts and active content are not permitted to run or Adobe Flash Player version 10.0.0 or greater is not installed. /p !--![endif]-- a href=http://www.adobe.com/go/getflashplayer; img src= http://www.adobe.com/images/shared/download_buttons/get_flash_player.gif; alt=Get Adobe Flash Player / /a !--[if !IE]-- /object !--![endif]-- /object ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders -- This message w/attachments (message) is intended solely for the use of the intended recipient(s) and may contain information that is privileged, confidential or proprietary. If you are not an intended recipient, please notify the sender, and then please delete and destroy all copies and attachments, and be advised that any review or dissemination of, or the taking of any action in reliance on, the information contained in or attached to this message is prohibited. Unless specifically indicated, this message is not an offer to sell or a solicitation of any investment products or other financial product or service, an official confirmation of any transaction, or an official statement of Sender. Subject to applicable law, Sender may intercept, monitor, review and retain e-communications (EC) traveling through its networks/systems and may produce any such EC to regulators, law enforcement, in litigation and as required by law. The laws of the country of each sender/recipient may impact the handling of EC, and EC may be archived, supervised and produced in countries other than the country in which you are located. This message cannot be guaranteed to be secure or free of errors or viruses. References to Sender are references to any subsidiary of Bank of America Corporation. Securities and Insurance Products: * Are Not FDIC Insured * Are Not Bank Guaranteed * May Lose Value * Are Not a Bank Deposit * Are Not a Condition to Any Banking Service or Activity * Are Not Insured by Any Federal Government Agency. Attachments that are part of this EC may have additional important disclosures and disclaimers, which you should read. This message is subject to terms available at the following link: http://www.bankofamerica.com/emaildisclaimer. By messaging with Sender you consent to the foregoing. ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] Accessing FlashVars
Hey Kerry, I think it's because you assigned the event to loaderinfo - not the Main class instance, and then you're asking for the loaderinfo's loaderinfo, when it's the Main's loaderinfo that you need. Also I don't think you need any event at all. You should be able to access the flashvars from the Main function's constructor (loaderinfo.parameters) Cheers, Karina On 30 Apr 2012, at 23:46, Kerry Thompson al...@cyberiantiger.biz wrote: Flash Builder 4 AS3 project, Windows 7, Firefox 12.0. I can't access the FlashVars in the HTML file. I've been working on this all day, and it's driving me crazy (crazier). Do you see anything in the following code? In the constructor of my default AS3 file, I have this: this.loaderInfo.addEventListener(Event.COMPLETE, init); and in the init() function: var flashVars:Object; flashVars = this.loaderInfo.parameters; When I look at it in the debugger, flashVars is an object, but it has no parameters. The relevant HTML is pretty straightforward: object classid=clsid:D27CDB6E-AE6D-11cf-96B8-44455354 width=100% height=100% id=RMK_Beta param name=movie value=RMK_Beta.swf / param name=FlashVars value=appUrl=test / param name=quality value=high / param name=bgcolor value=#ff / param name=allowScriptAccess value=sameDomain / param name=allowFullScreen value=true / !--[if !IE]-- object type=application/x-shockwave-flash data=RMK_Beta.swf width=100% height=100% param name=FlashVars value=appUrl=test / param name=quality value=high / param name=bgcolor value=#ff / param name=allowScriptAccess value=sameDomain / param name=allowFullScreen value=true / !--![endif]-- !--[if gte IE 6]-- p Either scripts and active content are not permitted to run or Adobe Flash Player version 10.0.0 or greater is not installed. /p !--![endif]-- a href=http://www.adobe.com/go/getflashplayer; img src= http://www.adobe.com/images/shared/download_buttons/get_flash_player.gif; alt=Get Adobe Flash Player / /a !--[if !IE]-- /object !--![endif]-- /object ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] Accessing FlashVars
Thanks, Karina and Jason. Jason, I've traced out the url, and it's not in that. For the time being, I'm running locally, and the URL just points to the swf. Karina, I've tried it the way you suggest, with no luck. I've looked at loaderInfo.parameters in the debugger, in the constructor, and parameters is an object, but it has no properties. It should have at least one parameter--I'm declaring 5 parameters in the HTML, but it's showing none of them. I'm wondering if the problem has to do with the object's parameters, and not specifically FlashVars. Cordially, Kerry Thompson On Mon, Apr 30, 2012 at 7:27 PM, Karina Steffens kar...@neo-archaic.netwrote: Hey Kerry, I think it's because you assigned the event to loaderinfo - not the Main class instance, and then you're asking for the loaderinfo's loaderinfo, when it's the Main's loaderinfo that you need. Also I don't think you need any event at all. You should be able to access the flashvars from the Main function's constructor (loaderinfo.parameters) Cheers, Karina On 30 Apr 2012, at 23:46, Kerry Thompson al...@cyberiantiger.biz wrote: Flash Builder 4 AS3 project, Windows 7, Firefox 12.0. I can't access the FlashVars in the HTML file. I've been working on this all day, and it's driving me crazy (crazier). Do you see anything in the following code? In the constructor of my default AS3 file, I have this: this.loaderInfo.addEventListener(Event.COMPLETE, init); and in the init() function: var flashVars:Object; flashVars = this.loaderInfo.parameters; When I look at it in the debugger, flashVars is an object, but it has no parameters. The relevant HTML is pretty straightforward: object classid=clsid:D27CDB6E-AE6D-11cf-96B8-44455354 width=100% height=100% id=RMK_Beta param name=movie value=RMK_Beta.swf / param name=FlashVars value=appUrl=test / param name=quality value=high / param name=bgcolor value=#ff / param name=allowScriptAccess value=sameDomain / param name=allowFullScreen value=true / !--[if !IE]-- object type=application/x-shockwave-flash data=RMK_Beta.swf width=100% height=100% param name=FlashVars value=appUrl=test / param name=quality value=high / param name=bgcolor value=#ff / param name=allowScriptAccess value=sameDomain / param name=allowFullScreen value=true / !--![endif]-- !--[if gte IE 6]-- p Either scripts and active content are not permitted to run or Adobe Flash Player version 10.0.0 or greater is not installed. /p !--![endif]-- a href=http://www.adobe.com/go/getflashplayer; img src= http://www.adobe.com/images/shared/download_buttons/get_flash_player.gif alt=Get Adobe Flash Player / /a !--[if !IE]-- /object !--![endif]-- /object ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] Accessing FlashVars
Not sure it matters, but there's quotes missing in the HTML: param name=FlashVars value=appUrl=test / probably should be: param name=FlashVars value=appUrl=test / - Original Message - From: Kerry Thompson al...@cyberiantiger.biz To: FlashCoders flashcoders@chattyfig.figleaf.com Sent: Tuesday, May 01, 2012 12:46 AM Subject: [Flashcoders] Accessing FlashVars Flash Builder 4 AS3 project, Windows 7, Firefox 12.0. I can't access the FlashVars in the HTML file. I've been working on this all day, and it's driving me crazy (crazier). Do you see anything in the following code? In the constructor of my default AS3 file, I have this: this.loaderInfo.addEventListener(Event.COMPLETE, init); and in the init() function: var flashVars:Object; flashVars = this.loaderInfo.parameters; When I look at it in the debugger, flashVars is an object, but it has no parameters. The relevant HTML is pretty straightforward: object classid=clsid:D27CDB6E-AE6D-11cf-96B8-44455354 width=100% height=100% id=RMK_Beta param name=movie value=RMK_Beta.swf / param name=FlashVars value=appUrl=test / param name=quality value=high / param name=bgcolor value=#ff / param name=allowScriptAccess value=sameDomain / param name=allowFullScreen value=true / !--[if !IE]-- object type=application/x-shockwave-flash data=RMK_Beta.swf width=100% height=100% param name=FlashVars value=appUrl=test / param name=quality value=high / param name=bgcolor value=#ff / param name=allowScriptAccess value=sameDomain / param name=allowFullScreen value=true / !--![endif]-- !--[if gte IE 6]-- p Either scripts and active content are not permitted to run or Adobe Flash Player version 10.0.0 or greater is not installed. /p !--![endif]-- a href=http://www.adobe.com/go/getflashplayer; img src= http://www.adobe.com/images/shared/download_buttons/get_flash_player.gif; alt=Get Adobe Flash Player / /a !--[if !IE]-- /object !--![endif]-- /object ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] Accessing FlashVars
Kerry, See if you can find the stage from any stage-member instance and get its loaderinfo parameters. Otherwise, you could test with the barest-bone HTML code possible to see if the embedding code is the culprit.Google flash sate for the simplest object code, losing the classids and conditionals. I can't copy/paste code or test any of the theories right now, because I'm nowhere near an actual computer, but I'll do it in the morning if you're still stuck (maybe best to do something else for a while). Actually, why am I still awake? It's 2 am! Karina On 1 May 2012, at 01:00, Kerry Thompson al...@cyberiantiger.biz wrote: Thanks, Karina and Jason. Jason, I've traced out the url, and it's not in that. For the time being, I'm running locally, and the URL just points to the swf. Karina, I've tried it the way you suggest, with no luck. I've looked at loaderInfo.parameters in the debugger, in the constructor, and parameters is an object, but it has no properties. It should have at least one parameter--I'm declaring 5 parameters in the HTML, but it's showing none of them. I'm wondering if the problem has to do with the object's parameters, and not specifically FlashVars. Cordially, Kerry Thompson On Mon, Apr 30, 2012 at 7:27 PM, Karina Steffens kar...@neo-archaic.netwrote: Hey Kerry, I think it's because you assigned the event to loaderinfo - not the Main class instance, and then you're asking for the loaderinfo's loaderinfo, when it's the Main's loaderinfo that you need. Also I don't think you need any event at all. You should be able to access the flashvars from the Main function's constructor (loaderinfo.parameters) Cheers, Karina On 30 Apr 2012, at 23:46, Kerry Thompson al...@cyberiantiger.biz wrote: Flash Builder 4 AS3 project, Windows 7, Firefox 12.0. I can't access the FlashVars in the HTML file. I've been working on this all day, and it's driving me crazy (crazier). Do you see anything in the following code? In the constructor of my default AS3 file, I have this: this.loaderInfo.addEventListener(Event.COMPLETE, init); and in the init() function: var flashVars:Object; flashVars = this.loaderInfo.parameters; When I look at it in the debugger, flashVars is an object, but it has no parameters. The relevant HTML is pretty straightforward: object classid=clsid:D27CDB6E-AE6D-11cf-96B8-44455354 width=100% height=100% id=RMK_Beta param name=movie value=RMK_Beta.swf / param name=FlashVars value=appUrl=test / param name=quality value=high / param name=bgcolor value=#ff / param name=allowScriptAccess value=sameDomain / param name=allowFullScreen value=true / !--[if !IE]-- object type=application/x-shockwave-flash data=RMK_Beta.swf width=100% height=100% param name=FlashVars value=appUrl=test / param name=quality value=high / param name=bgcolor value=#ff / param name=allowScriptAccess value=sameDomain / param name=allowFullScreen value=true / !--![endif]-- !--[if gte IE 6]-- p Either scripts and active content are not permitted to run or Adobe Flash Player version 10.0.0 or greater is not installed. /p !--![endif]-- a href=http://www.adobe.com/go/getflashplayer; img src= http://www.adobe.com/images/shared/download_buttons/get_flash_player.gif alt=Get Adobe Flash Player / /a !--[if !IE]-- /object !--![endif]-- /object ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] Accessing FlashVars
That's possible... Could it be that simple? Hmmm... should it be FlashVars or flashVars? Or does it even matter? Might also try embedding with swfObject and see if there's any difference. Now bed. Really. Karina On 1 May 2012, at 01:52, Peter Ginneberge p.ginnebe...@telenet.be wrote: Not sure it matters, but there's quotes missing in the HTML: param name=FlashVars value=appUrl=test / probably should be: param name=FlashVars value=appUrl=test / - Original Message - From: Kerry Thompson al...@cyberiantiger.biz To: FlashCoders flashcoders@chattyfig.figleaf.com Sent: Tuesday, May 01, 2012 12:46 AM Subject: [Flashcoders] Accessing FlashVars Flash Builder 4 AS3 project, Windows 7, Firefox 12.0. I can't access the FlashVars in the HTML file. I've been working on this all day, and it's driving me crazy (crazier). Do you see anything in the following code? In the constructor of my default AS3 file, I have this: this.loaderInfo.addEventListener(Event.COMPLETE, init); and in the init() function: var flashVars:Object; flashVars = this.loaderInfo.parameters; When I look at it in the debugger, flashVars is an object, but it has no parameters. The relevant HTML is pretty straightforward: object classid=clsid:D27CDB6E-AE6D-11cf-96B8-44455354 width=100% height=100% id=RMK_Beta param name=movie value=RMK_Beta.swf / param name=FlashVars value=appUrl=test / param name=quality value=high / param name=bgcolor value=#ff / param name=allowScriptAccess value=sameDomain / param name=allowFullScreen value=true / !--[if !IE]-- object type=application/x-shockwave-flash data=RMK_Beta.swf width=100% height=100% param name=FlashVars value=appUrl=test / param name=quality value=high / param name=bgcolor value=#ff / param name=allowScriptAccess value=sameDomain / param name=allowFullScreen value=true / !--![endif]-- !--[if gte IE 6]-- p Either scripts and active content are not permitted to run or Adobe Flash Player version 10.0.0 or greater is not installed. /p !--![endif]-- a href=http://www.adobe.com/go/getflashplayer; img src= http://www.adobe.com/images/shared/download_buttons/get_flash_player.gif; alt=Get Adobe Flash Player / /a !--[if !IE]-- /object !--![endif]-- /object ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] Accessing FlashVars
I've tried it both ways--with and without quotes. I'm just not getting any parameters. Cordially, Kerry Thompson On Mon, Apr 30, 2012 at 8:52 PM, Peter Ginneberge p.ginnebe...@telenet.bewrote: Not sure it matters, but there's quotes missing in the HTML: param name=FlashVars value=appUrl=test / probably should be: param name=FlashVars value=appUrl=test / - Original Message - From: Kerry Thompson al...@cyberiantiger.biz To: FlashCoders flashcoders@chattyfig.**figleaf.comflashcoders@chattyfig.figleaf.com Sent: Tuesday, May 01, 2012 12:46 AM Subject: [Flashcoders] Accessing FlashVars Flash Builder 4 AS3 project, Windows 7, Firefox 12.0. I can't access the FlashVars in the HTML file. I've been working on this all day, and it's driving me crazy (crazier). Do you see anything in the following code? In the constructor of my default AS3 file, I have this: this.loaderInfo.**addEventListener(Event.**COMPLETE, init); and in the init() function: var flashVars:Object; flashVars = this.loaderInfo.parameters; When I look at it in the debugger, flashVars is an object, but it has no parameters. The relevant HTML is pretty straightforward: object classid=clsid:D27CDB6E-AE6D-**11cf-96B8-44455354 width=100% height=100% id=RMK_Beta param name=movie value=RMK_Beta.swf / param name=FlashVars value=appUrl=test / param name=quality value=high / param name=bgcolor value=#ff / param name=allowScriptAccess value=sameDomain / param name=allowFullScreen value=true / !--[if !IE]-- object type=application/x-shockwave-**flash data=RMK_Beta.swf width=100% height=100% param name=FlashVars value=appUrl=test / param name=quality value=high / param name=bgcolor value=#ff / param name=allowScriptAccess value=sameDomain / param name=allowFullScreen value=true / !--![endif]-- !--[if gte IE 6]-- p Either scripts and active content are not permitted to run or Adobe Flash Player version 10.0.0 or greater is not installed. /p !--![endif]-- a href=http://www.adobe.com/go/**getflashplayerhttp://www.adobe.com/go/getflashplayer img src= http://www.adobe.com/images/**shared/download_buttons/get_** flash_player.gifhttp://www.adobe.com/images/shared/download_buttons/get_flash_player.gif alt=Get Adobe Flash Player / /a !--[if !IE]-- /object !--![endif]-- /object __**_ Flashcoders mailing list Flashcoders@chattyfig.figleaf.**com Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/**mailman/listinfo/flashcodershttp://chattyfig.figleaf.com/mailman/listinfo/flashcoders ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] Accessing FlashVars
The examples I've looked at all use FlashVars http://helpx.adobe.com/flash/kb/pass-variables-swfs-flashvars.html. I've tried it with both flashVars and FlashVars, both inside quotes and without quotes, with single and double quotes. I've been trimming the HTML down bit by bit. I'll try the simplest HTML I can in the morning to see if I can figure it out. I don't think it's the embed tag, though--that's been deprecated. Cordially, Kerry Thompson On Mon, Apr 30, 2012 at 9:17 PM, Karina Steffens kar...@neo-archaic.netwrote: That's possible... Could it be that simple? Hmmm... should it be FlashVars or flashVars? Or does it even matter? Might also try embedding with swfObject and see if there's any difference. Now bed. Really. Karina On 1 May 2012, at 01:52, Peter Ginneberge p.ginnebe...@telenet.be wrote: Not sure it matters, but there's quotes missing in the HTML: param name=FlashVars value=appUrl=test / probably should be: param name=FlashVars value=appUrl=test / - Original Message - From: Kerry Thompson al...@cyberiantiger.biz To: FlashCoders flashcoders@chattyfig.figleaf.com Sent: Tuesday, May 01, 2012 12:46 AM Subject: [Flashcoders] Accessing FlashVars Flash Builder 4 AS3 project, Windows 7, Firefox 12.0. I can't access the FlashVars in the HTML file. I've been working on this all day, and it's driving me crazy (crazier). Do you see anything in the following code? In the constructor of my default AS3 file, I have this: this.loaderInfo.addEventListener(Event.COMPLETE, init); and in the init() function: var flashVars:Object; flashVars = this.loaderInfo.parameters; When I look at it in the debugger, flashVars is an object, but it has no parameters. The relevant HTML is pretty straightforward: object classid=clsid:D27CDB6E-AE6D-11cf-96B8-44455354 width=100% height=100% id=RMK_Beta param name=movie value=RMK_Beta.swf / param name=FlashVars value=appUrl=test / param name=quality value=high / param name=bgcolor value=#ff / param name=allowScriptAccess value=sameDomain / param name=allowFullScreen value=true / !--[if !IE]-- object type=application/x-shockwave-flash data=RMK_Beta.swf width=100% height=100% param name=FlashVars value=appUrl=test / param name=quality value=high / param name=bgcolor value=#ff / param name=allowScriptAccess value=sameDomain / param name=allowFullScreen value=true / !--![endif]-- !--[if gte IE 6]-- p Either scripts and active content are not permitted to run or Adobe Flash Player version 10.0.0 or greater is not installed. /p !--![endif]-- a href=http://www.adobe.com/go/getflashplayer; img src= http://www.adobe.com/images/shared/download_buttons/get_flash_player.gif; alt=Get Adobe Flash Player / /a !--[if !IE]-- /object !--![endif]-- /object ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] Accessing FlashVars
That's so odd. I use this: param name =FlashVars value=file=controller_4.xmlbuffer=15 / all the time. This came out of an active site. I get file and buffer inside my app with no problem. John R. Sweeney Jr. Senior Interactive Multimedia Developer OnDemand Interactive Inc Hoffman Estates, IL 60169 On Apr 30, 2012, at 9:52 PM, Kerry Thompson wrote: The examples I've looked at all use FlashVars http://helpx.adobe.com/flash/kb/pass-variables-swfs-flashvars.html. I've tried it with both flashVars and FlashVars, both inside quotes and without quotes, with single and double quotes. ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] Accessing FlashVars
Something like this? object ... param name=FlashVars value=appURL= testappURL2=hello ... embed ... FlashVars=appURL= testappURL2=hello ... / /object FLASH --- function init(e:Event) { var flashVars=this.loaderInfo.parameters; var appURL=flashVars.appURL; } this.loaderInfo.addEventListener(Event.COMPLETE, init); HTH, Karl On Apr 30, 2012, at 5:46 PM, Kerry Thompson wrote: Flash Builder 4 AS3 project, Windows 7, Firefox 12.0. I can't access the FlashVars in the HTML file. I've been working on this all day, and it's driving me crazy (crazier). Do you see anything in the following code? In the constructor of my default AS3 file, I have this: this.loaderInfo.addEventListener(Event.COMPLETE, init); and in the init() function: var flashVars:Object; flashVars = this.loaderInfo.parameters; When I look at it in the debugger, flashVars is an object, but it has no parameters. The relevant HTML is pretty straightforward: object classid=clsid:D27CDB6E- AE6D-11cf-96B8-44455354 width=100% height=100% id=RMK_Beta param name=movie value=RMK_Beta.swf / param name=FlashVars value=appUrl=test / param name=quality value=high / param name=bgcolor value=#ff / param name=allowScriptAccess value=sameDomain / param name=allowFullScreen value=true / !--[if !IE]-- object type=application/x-shockwave-flash data=RMK_Beta.swf width=100% height=100% param name=FlashVars value=appUrl=test / param name=quality value=high / param name=bgcolor value=#ff / param name=allowScriptAccess value=sameDomain / param name=allowFullScreen value=true / !--![endif]-- !--[if gte IE 6]-- p Either scripts and active content are not permitted to run or Adobe Flash Player version 10.0.0 or greater is not installed. /p !--![endif]-- a href=http://www.adobe.com/go/getflashplayer; img src= http://www.adobe.com/images/shared/download_buttons/get_flash_player.gif alt=Get Adobe Flash Player / /a !--[if !IE]-- /object !--![endif]-- /object ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Karl DeSaulniers Design Drumm http://designdrumm.com ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] Accessing FlashVars
Found here : http://www.permadi.com/tutorial/flashVars/indexAs3.html Best, Karl On May 1, 2012, at 12:12 AM, Karl DeSaulniers wrote: Something like this? object ... param name=FlashVars value=appURL= testappURL2=hello ... embed ... FlashVars=appURL= testappURL2=hello ... / /object FLASH --- function init(e:Event) { var flashVars=this.loaderInfo.parameters; var appURL=flashVars.appURL; } this.loaderInfo.addEventListener(Event.COMPLETE, init); HTH, Karl On Apr 30, 2012, at 5:46 PM, Kerry Thompson wrote: Flash Builder 4 AS3 project, Windows 7, Firefox 12.0. I can't access the FlashVars in the HTML file. I've been working on this all day, and it's driving me crazy (crazier). Do you see anything in the following code? In the constructor of my default AS3 file, I have this: this.loaderInfo.addEventListener(Event.COMPLETE, init); and in the init() function: var flashVars:Object; flashVars = this.loaderInfo.parameters; When I look at it in the debugger, flashVars is an object, but it has no parameters. The relevant HTML is pretty straightforward: object classid=clsid:D27CDB6E- AE6D-11cf-96B8-44455354 width=100% height=100% id=RMK_Beta param name=movie value=RMK_Beta.swf / param name=FlashVars value=appUrl=test / param name=quality value=high / param name=bgcolor value=#ff / param name=allowScriptAccess value=sameDomain / param name=allowFullScreen value=true / !--[if !IE]-- object type=application/x-shockwave-flash data=RMK_Beta.swf width=100% height=100% param name=FlashVars value=appUrl=test / param name=quality value=high / param name=bgcolor value=#ff / param name=allowScriptAccess value=sameDomain / param name=allowFullScreen value=true / !--![endif]-- !--[if gte IE 6]-- p Either scripts and active content are not permitted to run or Adobe Flash Player version 10.0.0 or greater is not installed. /p !--![endif]-- a href=http://www.adobe.com/go/getflashplayer; img src= http://www.adobe.com/images/shared/download_buttons/get_flash_player.gif alt=Get Adobe Flash Player / /a !--[if !IE]-- /object !--![endif]-- /object ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Karl DeSaulniers Design Drumm http://designdrumm.com ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Karl DeSaulniers Design Drumm http://designdrumm.com ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] Accessing FlashVars
That's one way of doing it, but the embed tag has been deprecated. Well, maybe not officially deprecated, but it's considered obsolete. I've done some more digging, and it may not even be related to the FlashVars. There are some other things in the HTML that aren't working, so there may be a deeper, or prior, problem. Thanks, Karl. Cordially, Kerry Thompson On Tue, May 1, 2012 at 1:12 AM, Karl DeSaulniers k...@designdrumm.comwrote: Something like this? object ... param name=FlashVars value=appURL= testappURL2=hello ... embed ... FlashVars=appURL= testappURL2=hello ... / /object FLASH --- function init(e:Event) { var flashVars=this.loaderInfo.**parameters; var appURL=flashVars.appURL; } this.loaderInfo.**addEventListener(Event.**COMPLETE, init); HTH, Karl On Apr 30, 2012, at 5:46 PM, Kerry Thompson wrote: Flash Builder 4 AS3 project, Windows 7, Firefox 12.0. I can't access the FlashVars in the HTML file. I've been working on this all day, and it's driving me crazy (crazier). Do you see anything in the following code? In the constructor of my default AS3 file, I have this: this.loaderInfo.**addEventListener(Event.**COMPLETE, init); and in the init() function: var flashVars:Object; flashVars = this.loaderInfo.parameters; When I look at it in the debugger, flashVars is an object, but it has no parameters. The relevant HTML is pretty straightforward: object classid=clsid:D27CDB6E-AE6D-**11cf-96B8-44455354 width=100% height=100% id=RMK_Beta param name=movie value=RMK_Beta.swf / param name=FlashVars value=appUrl=test / param name=quality value=high / param name=bgcolor value=#ff / param name=allowScriptAccess value=sameDomain / param name=allowFullScreen value=true / !--[if !IE]-- object type=application/x-shockwave-**flash data=RMK_Beta.swf width=100% height=100% param name=FlashVars value=appUrl=test / param name=quality value=high / param name=bgcolor value=#ff / param name=allowScriptAccess value=sameDomain / param name=allowFullScreen value=true / !--![endif]-- !--[if gte IE 6]-- p Either scripts and active content are not permitted to run or Adobe Flash Player version 10.0.0 or greater is not installed. /p !--![endif]-- a href=http://www.adobe.com/go/**getflashplayerhttp://www.adobe.com/go/getflashplayer img src= http://www.adobe.com/images/**shared/download_buttons/get_** flash_player.gifhttp://www.adobe.com/images/shared/download_buttons/get_flash_player.gif alt=Get Adobe Flash Player / /a !--[if !IE]-- /object !--![endif]-- /object __**_ Flashcoders mailing list Flashcoders@chattyfig.figleaf.**com Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/**mailman/listinfo/flashcodershttp://chattyfig.figleaf.com/mailman/listinfo/flashcoders Karl DeSaulniers Design Drumm http://designdrumm.com __**_ Flashcoders mailing list Flashcoders@chattyfig.figleaf.**com Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/**mailman/listinfo/flashcodershttp://chattyfig.figleaf.com/mailman/listinfo/flashcoders ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] Accessing FlashVars
I think in your code, var flashVars:Object; should be.. var flashVars:Object = new Object; ..and your just missing, var appURL=flashVars.appURL; HTH, Best, Karl On May 1, 2012, at 12:12 AM, Karl DeSaulniers wrote: Something like this? object ... param name=FlashVars value=appURL= testappURL2=hello ... embed ... FlashVars=appURL= testappURL2=hello ... / /object FLASH --- function init(e:Event) { var flashVars=this.loaderInfo.parameters; var appURL=flashVars.appURL; } this.loaderInfo.addEventListener(Event.COMPLETE, init); HTH, Karl On Apr 30, 2012, at 5:46 PM, Kerry Thompson wrote: Flash Builder 4 AS3 project, Windows 7, Firefox 12.0. I can't access the FlashVars in the HTML file. I've been working on this all day, and it's driving me crazy (crazier). Do you see anything in the following code? In the constructor of my default AS3 file, I have this: this.loaderInfo.addEventListener(Event.COMPLETE, init); and in the init() function: var flashVars:Object; flashVars = this.loaderInfo.parameters; When I look at it in the debugger, flashVars is an object, but it has no parameters. The relevant HTML is pretty straightforward: object classid=clsid:D27CDB6E- AE6D-11cf-96B8-44455354 width=100% height=100% id=RMK_Beta param name=movie value=RMK_Beta.swf / param name=FlashVars value=appUrl=test / param name=quality value=high / param name=bgcolor value=#ff / param name=allowScriptAccess value=sameDomain / param name=allowFullScreen value=true / !--[if !IE]-- object type=application/x-shockwave-flash data=RMK_Beta.swf width=100% height=100% param name=FlashVars value=appUrl=test / param name=quality value=high / param name=bgcolor value=#ff / param name=allowScriptAccess value=sameDomain / param name=allowFullScreen value=true / !--![endif]-- !--[if gte IE 6]-- p Either scripts and active content are not permitted to run or Adobe Flash Player version 10.0.0 or greater is not installed. /p !--![endif]-- a href=http://www.adobe.com/go/getflashplayer; img src= http://www.adobe.com/images/shared/download_buttons/get_flash_player.gif alt=Get Adobe Flash Player / /a !--[if !IE]-- /object !--![endif]-- /object ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Karl DeSaulniers Design Drumm http://designdrumm.com ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Karl DeSaulniers Design Drumm http://designdrumm.com ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] Accessing FlashVars
Oh, yeah sry. Just showing the difference with the object and embed. There still are AS2 devs out there... :P But more so, I was also showing that the name=FlashVars is in quotes for the object tag. Best, Karl On May 1, 2012, at 12:21 AM, Kerry Thompson wrote: That's one way of doing it, but the embed tag has been deprecated. Well, maybe not officially deprecated, but it's considered obsolete. I've done some more digging, and it may not even be related to the FlashVars. There are some other things in the HTML that aren't working, so there may be a deeper, or prior, problem. Thanks, Karl. Cordially, Kerry Thompson On Tue, May 1, 2012 at 1:12 AM, Karl DeSaulniers k...@designdrumm.comwrote: Something like this? object ... param name=FlashVars value=appURL= testappURL2=hello ... embed ... FlashVars=appURL= testappURL2=hello ... / /object FLASH --- function init(e:Event) { var flashVars=this.loaderInfo.**parameters; var appURL=flashVars.appURL; } this.loaderInfo.**addEventListener(Event.**COMPLETE, init); HTH, Karl On Apr 30, 2012, at 5:46 PM, Kerry Thompson wrote: Flash Builder 4 AS3 project, Windows 7, Firefox 12.0. I can't access the FlashVars in the HTML file. I've been working on this all day, and it's driving me crazy (crazier). Do you see anything in the following code? In the constructor of my default AS3 file, I have this: this.loaderInfo.**addEventListener(Event.**COMPLETE, init); and in the init() function: var flashVars:Object; flashVars = this.loaderInfo.parameters; When I look at it in the debugger, flashVars is an object, but it has no parameters. The relevant HTML is pretty straightforward: object classid=clsid:D27CDB6E-AE6D- **11cf-96B8-44455354 width=100% height=100% id=RMK_Beta param name=movie value=RMK_Beta.swf / param name=FlashVars value=appUrl=test / param name=quality value=high / param name=bgcolor value=#ff / param name=allowScriptAccess value=sameDomain / param name=allowFullScreen value=true / !--[if !IE]-- object type=application/x-shockwave-**flash data=RMK_Beta.swf width=100% height=100% param name=FlashVars value=appUrl=test / param name=quality value=high / param name=bgcolor value=#ff / param name=allowScriptAccess value=sameDomain / param name=allowFullScreen value=true / !--![endif]-- !--[if gte IE 6]-- p Either scripts and active content are not permitted to run or Adobe Flash Player version 10.0.0 or greater is not installed. /p !--![endif]-- a href=http://www.adobe.com/go/**getflashplayerhttp://www.adobe.com/go/getflashplayer img src= http://www.adobe.com/images/**shared/download_buttons/get_** flash_player.gifhttp://www.adobe.com/images/shared/download_buttons/get_flash_player.gif alt=Get Adobe Flash Player / /a !--[if !IE]-- /object !--![endif]-- /object __**_ Flashcoders mailing list Flashcoders@chattyfig.figleaf.**com Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/**mailman/listinfo/flashcodershttp://chattyfig.figleaf.com/mailman/listinfo/flashcoders Karl DeSaulniers Design Drumm http://designdrumm.com __**_ Flashcoders mailing list Flashcoders@chattyfig.figleaf.**com Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/**mailman/listinfo/flashcodershttp://chattyfig.figleaf.com/mailman/listinfo/flashcoders ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Karl DeSaulniers Design Drumm http://designdrumm.com ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders