How can I retrieve CSV data from a web server using Flex? -


I'm trying to retrieve stock quotes from Yahoo! Using Flex, Finance I have set it so that it draws me like a quote, but it opens in a new file, however, I want to store CSV data in one variable so that I can use it in my program .

How do I do this?

Here is the code I am using:

  Navigate (URL "(http://download.finance.yahoo.com/d/quotes. Csv? S = aapl & amp; f = l1 ")," _self ");  

  & lt; Mx: HTTPService id = "userRequest" url = "http: //download.finance.yahoo.com /d/quotes.csv?s=aapl&f=l1" useProxy = "false" method = "POST" = " Object "result =" {result event (event)} "& gt; Public function init () {userRequest.send ()} Public function result (event: resultant) {trace (event.result); }  

Trace your data, at your result event.


Comments