actionscript 3 - Set time 5 seconds to dispatch cairngorm event in flex -
i have live chart. need refresh chart 5 seconds time interval.
for displaying live chart disptach event (myevent) extends cairngormevent.
and after 5 seconds , same event has dispatch again adn data display thelie cart.
and how event dispatch after 5 seconds out manula call..?
please knows, update me asap. urg me.
thanks, ravi
it working now. way dispatch event time interval.
private var timer:timer; private function getchart():void { var chartevent:chartevent=new chartevent(); chartevent.dispatch(); } private function settimer():void { timer = new timer(5000); timer.addeventlistener(timerevent.timer, ontimer); timer.start(); cursormanager.showcursor(); } private function ontimer(evt:timerevent):void { alert.show("in"); getchart(); alert.show("dispatching event:--->"); }
Comments
Post a Comment