2013-04-02 58 views

回答

0

是的!

var b:Boolean; 

protected function rightMouseDown(e:MouseEvent):void { 
    b = true; 
} 

protected function rightMouseUp(e:MouseEvent):void { 
    b = false; 
} 

override public function setCurrentState(stateName:String, playTransition:Boolean = true):void { 
    if (!b) { 
     super.setCurrentState(stateName, playTransition); 
    } else { 
     super.setCurrentState(...); 
    } 
}