Did you import the type?
import mx.rpc.events.ResultEvent;
Do you
have the rpc.swc in the classpath?
Also,
to use the MXML tag in ActionScript, be sure to use the mxml subpackage version
of HTTPService, i.e.
import
mx.rpc.http.mxml.HTTPService;
From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of NZEYIMANA Emery Fabrice Sent: Saturday, June 17, 2006 8:47 AM To: flexcoders@yahoogroups.com Cc: Mac Martine Subject: Re: [flexcoders] Using HTTPService in a function
Thanks Martine,
I have read from the manuals and tutorials and
tried to do the following:
private function
SampleFunction():void
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."
Thanks
Emery
-- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com
SPONSORED LINKS
YAHOO! GROUPS LINKS
|
- RE: [flexcoders] Using HTTPService in a function Peter Farland
- Re: [flexcoders] Using HTTPService in a function Michael Schmalle