Some favorite site feeds aggregated locally: iPhone Development RSS   Adobe Labs RSS   Macrumors RSS

Wednesday, July 16, 2008

stage.focus = stage;

Wednesday, July 16, 2008   

private function updateTiming( e:Event ):void
{
var n:Number = Number( e.currentTarget.selectedItem.data );
Sheet.MINIMUM_CHANGE = n;
stage.focus = stage;
}
That stage.focus = stage; seems pretty weird to me, but it works to maintain focus on the stage in order to properly accept keyboard events.
 
 Return to the main page
Comments:

There are currently 0 Comments:

 Leave a comment