1.

Is Double-clicking Supported On Various Components?

Answer»

Unfortunately, double-clicking is not supported by default. If you wish to add this functionality to, SAY, a List or DataGrid COMPONENT, you will have to add the following ActionScript 2.0 code to your application:

VAR someTimestamp:Number;
public function doubleClickHandler( EVT:Object ):Void {
var now = getTimer();
// we got a double-click
if( ( now - someTimestamp ) < 500 ) {
// do something here ...
}
someTimestamp = now;
}

Unfortunately, double-clicking is not supported by default. If you wish to add this functionality to, say, a List or DataGrid component, you will have to add the following ActionScript 2.0 code to your application:

var someTimestamp:Number;
public function doubleClickHandler( evt:Object ):Void {
var now = getTimer();
// we got a double-click
if( ( now - someTimestamp ) < 500 ) {
// do something here ...
}
someTimestamp = now;
}



Discussion

No Comment Found