Use BrowserManager : BrowserManager « Development « Flex






Use BrowserManager

Use BrowserManager
         

<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" layout="absolute" creationComplete="parseURL()">
    <mx:Script>
        
            import mx.utils.ObjectUtil;
            import mx.managers.IBrowserManager;
            import mx.managers.BrowserManager;
            import mx.utils.URLUtil;

            private function parseURL() : void
            {
                var bm:IBrowserManager = BrowserManager.getInstance();
                bm.init();

                output.text += "Full URL" + bm.url + " Base URL:" + bm.base + "\n";
                output.text += "URL Fragment:" + bm.fragment + "\n";

            }

      
    </mx:Script>

    <mx:TextArea id="output" left="10" top="10" bottom="10" right="10"/>

</mx:Application>

   
    
    
    
    
    
    
    
    
  








Related examples in the same category

1.Update URL with BrowserManagerUpdate URL with BrowserManager
2.Using URLUtil and BrowserManager to get information about the URL that was used to return the application.Using URLUtil and BrowserManager to get information about the URL that was used to return the application.
3.Set Browser titleSet Browser title
4.Pass URL Parameters As FragmentsPass URL Parameters As Fragments
5.URL Change LoggerURL Change Logger