Compare with the examples. You're not calling init() and you may need to add an event listener as well.
Alex Harui Flex SDK Developer Adobe Systems Inc.<http://www.adobe.com/> Blog: http://blogs.adobe.com/aharui From: [email protected] [mailto:[email protected]] On Behalf Of edencane Sent: Thursday, July 09, 2009 1:30 AM To: [email protected] Subject: [flexcoders] BrowserManager not working Hi. I want to get the information of the current URL This is my code. It aint workin'. What 'm I doing wrong? <?xml version="1.0" encoding="utf-8"?> <mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" layout="absolute" creationComplete="init()"> <mx:Script> <![CDATA[ import mx.managers.BrowserManager; import mx.utils.URLUtil; import mx.controls.Alert; import mx.rpc.events.ResultEvent; import mx.collections.ArrayCollection; import mx.managers.IBrowserManager; import mx.utils.URLUtil; [Bindable] private var bman:IBrowserManager; [Bindable] private var foogie:String = "bar"; private function init():void { bman = BrowserManager.getInstance(); //bman.init(); trace("BMAN " + bman); var baseURL:String = bman.base; var url:String = bman.url; bman.setTitle("foogoie"); var fullURL:String = mx.utils.URLUtil.getFullURL(url, url); trace ("BASEURL " + baseURL + " URL " + fullURL); } ]]> </mx:Script> <mx:Text id="foo" x="94" y="97" text="{bman.url}"/> </mx:Application> -- View this message in context: http://www.nabble.com/BrowserManager-not-working-tp24406204p24406204.html Sent from the FlexCoders mailing list archive at Nabble.com.

