"...get the URL the swf is running on...": Application.application.url;

 

Tracy

 

________________________________

From: [email protected] [mailto:[EMAIL PROTECTED] On
Behalf Of aaron smith
Sent: Thursday, October 04, 2007 4:50 PM
To: [email protected]
Subject: [flexcoders] Application loader info?

 

I'm trying to access LoadInfo for an application, I've tried it in
numerous spots, and am now just trying a simple example::

<?xml version="1.0" encoding="utf-8"?>
<mx:Application xmlns:mx=" http://www.adobe.com/2006/mxml
<http://www.adobe.com/2006/mxml> " layout="absolute"
    creationComplete="init()">
    
    <mx:Script>
        <![CDATA[
            import mx.core.Application;
            private function init():void
            {
                trace(Application.application.loaderInfo);    
            }
        ]]>
    </mx:Script>
</mx:Application> 

it's tracing as null. Is this how it's intended to be used? I also run
the swf on localhost.

Overall I'm trying to get the URL the swf is running on.

Thanks

 

Reply via email to