Hello folks, I have a datagrid that refreshes itself every 30 seconds.
I want to implement a slider that will give the user the ability to
change this when the application runs. I have the following code
below. Can someone tell me what I am doing wrong? Thanks a bunch, you
guys are the greatest for helping out noobs like me.
private var gridTimer:Number = 3;
private function initComp() {
//stuff that calls the webservice and populates the grid.
//this funtion is also the initialize=initComp() in the main
app
setInterval(this,getData,gridTimer);
}
//code to change time
function handleGridTimeChange(event){
gridTimer = refreshGridSlider.value;
var so:SharedObject = SharedObject.getLocal(_gridTimer);
so.data.gridTimer = gridTimer;
so.flush();
}
//the slider code in the main app.
mx:HSlider id=refreshGridSlider
change=handleGridTimeChange(event)
minimum=3
maximum=6
liveDragging=true
tickInterval=5000
value={gridTimer}
labels=['3', '6']
width=15%/
Bottom line, its not working and I need somehelp. Any input is greatly
appreciated
Yahoo! Groups Links
* To visit your group on the web, go to:
http://groups.yahoo.com/group/flexcoders/
* To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]
* Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/