1 Reply Latest reply on May 3, 2007 8:55 AM by JeffreyGong

    Flex 2 - dynamic pulling data from web services

      Is there any way to pull data dynamically from a web services/REST at a periodic intervals without using data service.

      I've subscripbed to a rss feed from the finance.yahoo.com and I want to be able to update the UI dynamically whenever the data becomes avaiable. I would like to create a cliect side mechanism where it can check for any price update and update UI dynamically without me having to click a button to invoke httpservice.send()
        • 1. Re: Flex 2 - dynamic pulling data from web services
          JeffreyGong Level 1
          Hi alphamanic,

          You may user Timer to do it like the code as follows,

          import flash.utils.Timer;
          import flash.events.TimerEvent;

          private function init():void {
          var timer:Timer = new Timer(1000);
          timer.addEventListener("timer", callWebService);

          private function callWebService(event:TimerEvent):void {

          to call your WebService ws every one second.