namespace variable
<?xml version="1.0" encoding="utf-8"?> <mx:Application xmlns:mx="http://www.adobe.com/2006/mxml"> <mx:Script> [Bindable] private var travelTime:String=""; private var myXML:XML = <travel xmlns:myNS="http://domain.com/myNS"> <myPath> <myNS:myValue>8 hours</myNS:myValue> </myPath> </travel> namespace myNS = "http://domain.com/myNS"; private function getTravelTime():void { travelTime = myXML.myPath.myNS::myValue; } </mx:Script> <mx:Panel title="Select a vehicle"> <mx:Button id="myButton" click="getTravelTime()"/> <mx:ControlBar> <mx:Label text="{travelTime}"/> </mx:ControlBar> </mx:Panel> </mx:Application>