Data Model Flex


    initialize="service.send();">
    
        
            
            import mx.controls.Alert;
            import mx.rpc.http.HTTPService;
            import mx.rpc.events.ResultEvent;
            import mx.rpc.events.FaultEvent;
            
            private function resultHandler(event:ResultEvent):void
            { 
                var myRSS:Namespace = new Namespace("http://server.org/rss");
                trace(event.result.item.myRSS::point);
            } 
            
            private function faultHandler(event:FaultEvent):void
            { 
                service.removeEventListener(FaultEvent.FAULT, faultHandler);
                Alert.show("Error connecting");
            } 
      
    

    
                url="RSS.xml"
            resultFormat="e4x"
            result="resultHandler(event);"
            fault="faultHandler(event);"/>