Well, the documentation sure says so: 

http://livedocs.adobe.com/flex/3/langref/mx/core/Application.html#parameters

I had it working with swfobject using the getQueryParamValue function
in JS. I think I my just stick with that, and use swfaddress for my
deep linking. Still would like to know what is up with the
documentation though. All my web searches seem to imply that it just
supposed to work.

Thanks

--- In flexcoders@yahoogroups.com, "Nate Beck" <n...@...> wrote:
>
> I don't believe Flash natively reads URL parameters from the
browsers query
> string.
> However, here are a few ways you can do it:
> 
>    - Write a javascript (or serverside) method that takes the
browsers query
>    string and the passes them in as flashvars.
>    - You CAN add a query string directly to the embed code, (ex
>    UrlParams.swf?foo=bar), Those will be treated as flashvars as well.
>    - If you have javascript access on the page, add an ExternalInterface
>    call which will return the query string to your swf.
> 
> Hope that helps,
> Nate
> 
> On Mon, Dec 15, 2008 at 8:53 AM, 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