That's right Sal, RPC and Data services should be called after creationComplete.
 
However, you don't seem to have result and fault handlers specified for your HTTPService... how will you know when something has gone wrong or when the result has been returned asynchronously?
 
 


From: [email protected] [mailto:[EMAIL PROTECTED] On Behalf Of s_hernandez01
Sent: Monday, June 19, 2006 9:14 AM
To: [email protected]
Subject: [flexcoders] Re: Using HTTPService

abiramkumar,

I am new to flex as well, but I would try keeping everything on one
application component. Usually when you use an http service you want
to call a series of objects instead of calling them one by one, say
for example calling a list of photos you have in your folder. In
addition, try using creationComplete="feedRequest.send()" instead of
the "initialize" call.

Sal

--- In [EMAIL PROTECTED]ups.com, "abi27ram" <abiram.vel@...> wrote:
>
> hello all,
> I am new to flex.i don't know how to use httpservice in flex.
> i'm using flexbuilder with jrun server now.
>
> example.mxml
>
> <?xml version="1.0" encoding="utf-8"?>
> <mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" xmlns="*"
> layout="absolute" initialize="feedRequest.send()" >
>
> <mx:HTTPService
> id="feedRequest" method="post"
> url=""
> useProxy="true"/>
> </mx:Application>
>
>
> login.mxml
>
> <?xml version="1.0"?>
> <mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" >
>
> <mx:Panel title="My Application" paddingTop="10"
> paddingBottom="10"
> paddingLeft="10" paddingRight="10" >
>
> <mx:Label text="Hello World!" fontWeight="bold"
> fontSize="24" />
>
> </mx:Panel>
> </mx:Application>
>
>
> i am not getting any output or error.
>
> plz help me
> thanks in advance
> abiramkumar
>

__._,_.___

--
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
Web site design development Computer software development Software design and development
Macromedia flex Software development best practice


YAHOO! GROUPS LINKS




__,_._,___

Reply via email to