[flexcoders] DataGrid Refreshing and using slider to change interval...need help:)

2005-05-25 Thread dillo_mac
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/
 




[flexcoders] Double clicking on a datagrid

2005-05-23 Thread dillo_mac
Hello folks, I'm looking to implement a double click method on a
datagrid. I have searched high and low on the web and seem to have run
into a dead end. Is this even possible to implement with flex? Any
help would be 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/