application.url is what you're looking for
 
Look at mx.core.Application properties
 
hth,
 
JPG

 
On 8/31/06, Daniel Wabyick <[EMAIL PROTECTED]> wrote:

I am trying to find the URL in which an application is running. Reading
the documentation, I get the impression that I can use the "root"
property off on any DisplayObject, and then get the loaderInfo from there.

Unfortunately, the root property seems to be null. I must be doing
something wrong. Can someone help?

<?xml version="1.0" encoding="utf-8"?>
<mx:Application xmlns:mx=" http://www.adobe.com/2006/mxml"
layout="absolute" creationComplete="{ showRoot(); }">

<mx:Script>
<![CDATA[
import mx.controls.Alert;
private function showRoot() : void
{
Alert.show( "root: " + this.root );
}
]]>
</mx:Script>


</mx:Application>




--
[  JPG  ] __._,_.___

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





SPONSORED LINKS
Software development tool Software development Software development services
Home design software Software development company


YAHOO! GROUPS LINKS




__,_._,___

Reply via email to