Re: [Flashcoders] Accessing FlashVars

2012-05-02 Thread David Hunter
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

Re: [Flashcoders] Accessing FlashVars

2012-05-02 Thread Kerry Thompson
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:

Re: [Flashcoders] Accessing FlashVars

2012-05-02 Thread Bob Schmitt
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

Re: [Flashcoders] Accessing FlashVars

2012-05-02 Thread Henrik Andersson
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. ___

Re: [Flashcoders] Accessing FlashVars

2012-05-02 Thread Bob Schmitt
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

RE: [Flashcoders] Accessing FlashVars

2012-05-01 Thread Karina Steffens
-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

Re: [Flashcoders] Accessing FlashVars

2012-05-01 Thread Henrik Andersson
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.

RE: [Flashcoders] Accessing FlashVars

2012-05-01 Thread Merrill, Jason
...@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

Re: [Flashcoders] Accessing FlashVars

2012-05-01 Thread Kevin Newman
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

RE: [Flashcoders] Accessing FlashVars

2012-04-30 Thread Merrill, Jason
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

Re: [Flashcoders] Accessing FlashVars

2012-04-30 Thread Karina Steffens
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

Re: [Flashcoders] Accessing FlashVars

2012-04-30 Thread Kerry Thompson
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

Re: [Flashcoders] Accessing FlashVars

2012-04-30 Thread Peter Ginneberge
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

Re: [Flashcoders] Accessing FlashVars

2012-04-30 Thread Karina Steffens
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

Re: [Flashcoders] Accessing FlashVars

2012-04-30 Thread Karina Steffens
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

Re: [Flashcoders] Accessing FlashVars

2012-04-30 Thread Kerry Thompson
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

Re: [Flashcoders] Accessing FlashVars

2012-04-30 Thread Kerry Thompson
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

Re: [Flashcoders] Accessing FlashVars

2012-04-30 Thread John R. Sweeney Jr.
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,

Re: [Flashcoders] Accessing FlashVars

2012-04-30 Thread Karl DeSaulniers
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; }

Re: [Flashcoders] Accessing FlashVars

2012-04-30 Thread Karl DeSaulniers
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

Re: [Flashcoders] Accessing FlashVars

2012-04-30 Thread Kerry Thompson
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

Re: [Flashcoders] Accessing FlashVars

2012-04-30 Thread Karl DeSaulniers
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=

Re: [Flashcoders] Accessing FlashVars

2012-04-30 Thread Karl DeSaulniers
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,