Checkout BrowserManager.  You may want to use it elsewhere in your app.

From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf 
Of ozziegt
Sent: Monday, December 15, 2008 11:13 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: Application.application.parameters doesn't hold GET 
query parameters


Thanks for all the replies. Yeah I thought about it over lunch and it
occurred to me that I might only get the params when I reference the
.swf file directly. I think I will stick with my current
implementation using swfobject.

--- In flexcoders@yahoogroups.com<mailto:flexcoders%40yahoogroups.com>, 
"ozziegt" <osman.ul...@...> wrote:
>
> I feel kind of stupid asking this, but I have been beating my head
> against the wall and I know I am missing something obvious.
>
> I created a sample app here (you can view source on it):
> http://osmanu.com/flex/UrlParams/UrlParams.html?foo=bar
>
> You will notice there are no URL parameters being reported by the
> application. The code is pretty basic, so I don't know what I am
> missing. This is a brand new sample app...I created it, added a few
> lines of code, and that is it. Any ideas?
>
> Thanks
>
> private function showParams():void
> {
> var params:Object = Application.application.parameters;
> var s:String = "Params: \n";
> params.runtime = "added in code";
> for (var key:String in params)
> {
> s += key +":" + params[key] + "\n";
> }
> txt.text = s;
> }
>

Reply via email to