you could try this:
<mx:Button x="10" y="200" label="Button" click="{trace(
ExternalInterface.call('eval','document.location.href'));}"/>

put in a feature request to get the wrapper url and parameters. Feature
Request <http://www.adobe.com/cfusion/mmform/index.cfm?name=wishform>

On 8/2/06, Rick Root <[EMAIL PROTECTED]> wrote:

Matt Horn wrote:
>
>  > Two questions.
>  >
>  > #1 - Can a Flex 2 app know the URL of the browser window it
>  > is currently loaded into?
>
> Yes.
>
> var baseurl:String = Application.application.url;

Matt,

That returns the URL of the swf itself, not the URL of the parent
browser window in which the swf  lives (unless the swf was called
directly, not within an HTML page, I suppose).

Same goes for the Application.application.parameters - it returns the
URL parameters of the SWF itself, not the parent browser window.

No matter though, as I posted earlier in the thread, that's good enough :)

Rick


--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com
Yahoo! Groups Links





Reply via email to