Thank you very much. 
I imported the class and it now works. 

Thanks to you Geoffrey and Martine for the help. 


Emery

--- In [email protected], "Geoffrey Williams" <[EMAIL PROTECTED]> 
wrote:
>
> Are you importing the class?
> 
> import mx.rpc.events.ResultEvent;
> 
> --- In [email protected], "NZEYIMANA Emery Fabrice" 
> <nzeyimana@> 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 --------------------~--> 
Yahoo! Groups gets a make over. See the new email design.
http://us.click.yahoo.com/XISQkA/lOaOAA/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/
 


Reply via email to