You can also refer to below code it will give an idea of how you can create
a feed ot HTTPService in action script..

 

 

public function createnewsFeed(str:String):void

     {

            //Path need to be change

 newsFeed.url="http://rss.news.yahoo.com/rss/topstories";;

            var category:String=new String();

             category="news";

            newsFeed.request ={category:category,rss:str};

             newsFeed.showBusyCursor=true;

             newsFeed.method="post";

            newsFeed.resultFormat="text";

            newsFeed.useProxy=false;

            newsFeed.send();

            newsFeed.addEventListener(ResultEvent.RESULT,newsPass);

            newsFeed.addEventListener(FaultEvent.FAULT,newsFail);

     }  

 

Thanks,

Kumar

  _____  

From: [email protected] [mailto:[EMAIL PROTECTED] On
Behalf Of Alexandre Lemaire
Sent: Tuesday, March 13, 2007 11:33 AM
To: [email protected]
Subject: Re: [flexcoders] Using HTTPService programmatically?

 

I've found this which was a big help:

http://livedocs.
<http://livedocs.adobe.com/flex/2/docs/wwhelp/wwhimpl/common/html/wwhelp.htm
?context=LiveDocs_Parts&file=00001140.html>
adobe.com/flex/2/docs/wwhelp/wwhimpl/common/html/wwhelp.htm?context=LiveDocs
_Parts&file=00001140.html

 

Doesn't say what the parameters Object is though - any finger in the right
direction would be appreciated.

 

<request>

    <data>xyz</data>

</request>

 

is sent as??

 

 

----- Original Message ----- 

From: Alexandre Lemaire <mailto:[EMAIL PROTECTED]>  

To: [EMAIL PROTECTED] <mailto:[email protected]> ups.com 

Sent: Tuesday, March 13, 2007 1:01 AM

Subject: [flexcoders] Using HTTPService programmatically?

 

Sorry for the flurry of questions, am making some good headway (Flex is
fantastic).

 

Is it possible to use HTTPService programmatically?

 

I see that I can do:

 

var xmlrpc:HTTPService = new HTTPService();

xmlrpc.url = etc..

 

and all of the good standard options we usually put in the mxml file
otherwise, however, I'm not quite sure how to format the 'request'
parameter, nor how to specify the 'result' callback function.

 

Help much appreciated.

Alex

 

Reply via email to