Packageorg.zengrong.ane.tool
Classpublic class VibratorCont
InheritanceVibratorCont Inheritance ToolBase Inheritance flash.events.EventDispatcher

振动功能



Public Properties
 PropertyDefined By
 Inheritedextension : ExtensionContext
[read-only]
ToolBase
Protected Properties
 PropertyDefined By
 Inherited_extension : ExtensionContext
ToolBase
Public Methods
 MethodDefined By
  
VibratorCont($context:ExtensionContext)
VibratorCont
 Inherited
dispose():void
ToolBase
  
vibrate($ms:uint = 50):void
振动
VibratorCont
  
取消振动
VibratorCont
  
vibrateRepeat($pattern:Vector.<int>, $repeat:int = -1):void
重复振动
VibratorCont
Protected Methods
 MethodDefined By
 Inherited
handler_status($evt:StatusEvent):void
ToolBase
Constructor Detail
VibratorCont()Constructor
public function VibratorCont($context:ExtensionContext)



Parameters
$context:ExtensionContext
Method Detail
vibrate()method
public function vibrate($ms:uint = 50):void

振动

Parameters

$ms:uint (default = 50) — 振动的毫秒数

vibrateCancel()method 
public function vibrateCancel():void

取消振动

vibrateRepeat()method 
public function vibrateRepeat($pattern:Vector.<int>, $repeat:int = -1):void

重复振动

Parameters

$pattern:Vector.<int> — 振动的节奏。数组的第一个元素代表振动毫秒,第二个代表停止毫秒,依此类推
 
$repeat:int (default = -1) — 重复次数,-1为不重复