All the samples i've come across so far show the mxml route - I'm able
to instantiating and fireing the send correctly with:
public var myRequest:HTTPService = new HTTPService;
public var modules:XMLListCollection;
public function MenuItemEnum ( value:String, ordinal:int )
{
myRequest.url = "/xml/modules.xml";
myRequest.resultFormat="e4x"
myRequest.addEventListener(Event.COMPLETE, onResult)
myRequest.send(); //>>>>>> Is hit.
}
private function onResult(e:ResultEvent):void
{
modules = e.result as XMLListCollection;
}
private function onFault(e:FaultEvent):void
{
Alert.show(e.fault.message, "Could not load");
}
But the handlers never fire.