Are you importing the class? import mx.rpc.events.ResultEvent;
--- In [email protected], "NZEYIMANA Emery Fabrice" <[EMAIL PROTECTED]> wrote: > > Thanks Martine, > I have read from the manuals and tried to do the following: > > private function SampleFunction():void > { > var http:HTTPService; > > http = new HTTPService(); > http.url = "http://www.domain.com/my_xml.php"; > http.method="POST"; > http.useProxy = false; > http.showBusyCursor = true; > http.resultFormat = "text"; > > > http.addEventListener( "result", xmlReceived ); > http.send(); > } > > > private function xmlReceived(event:ResultEvent):void > { > var myXML:String; > myXML = event.toString(); > > // Do something with the XML > } > > > The application cannot compile because it says that the ResultEvent Type cannot be found. > I even tried to private function xmlReceived (event:mx.rpc.events.ResultEvent):void but it doesn't solve the problem. > The error message I receive is "Type was not found or was not a compile-time constant: ResultEvent." ------------------------ Yahoo! Groups Sponsor --------------------~--> Check out the new improvements in Yahoo! Groups email. http://us.click.yahoo.com/6pRQfA/fOaOAA/yQLSAA/nhFolB/TM --------------------------------------------------------------------~-> -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links <*> To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ <*> To unsubscribe from this group, send an email to: [EMAIL PROTECTED] <*> Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/

