Package | com.cmiscm.utils.display |
Class | public class MakeButton |
Inheritance | MakeButton ![]() |
Property | Defined By | ||
---|---|---|---|
button : Sprite [read-only]
Return button
| MakeButton |
Method | Defined By | ||
---|---|---|---|
MakeButton($tw:int, $th:int, $cursor:Boolean = true, $debug:Boolean = false) | MakeButton | ||
destroy():void
Destroy
| MakeButton |
button | property |
button:Sprite
[read-only] Return button
public function get button():Sprite
MakeButton | () | Constructor |
public function MakeButton($tw:int, $th:int, $cursor:Boolean = true, $debug:Boolean = false)
$tw:int | |
$th:int | |
$cursor:Boolean (default = true )
| |
$debug:Boolean (default = false )
|
destroy | () | method |
public function destroy():void
Destroy
package { import flash.display.Sprite; import com.cmiscm.utils.display.MakeButton; import flash.events.Event; public class TestError extends Sprite { public function TestError() { super(); this.addEventListener(Event.ADDED_TO_STAGE, onAdd); } private function onAdd(evt:Event):void { evt.currentTarget.removeEventListener(evt.type, arguments.callee); var button:MakeButton = new MakeButton(300, 100); this.addChild(button); } } }