Packagecom.cmiscm.utils.display
Classpublic class MakeButton
InheritanceMakeButton Inheritance flash.display.Sprite

Make Button.

View the examples



Public Properties
 PropertyDefined By
  button : Sprite
[read-only] Return button
MakeButton
Public Methods
 MethodDefined By
  
MakeButton($tw:int, $th:int, $cursor:Boolean = true, $debug:Boolean = false)
MakeButton
  
destroy():void
Destroy
MakeButton
Property Detail
buttonproperty
button:Sprite  [read-only]

Return button


Implementation
    public function get button():Sprite
Constructor Detail
MakeButton()Constructor
public function MakeButton($tw:int, $th:int, $cursor:Boolean = true, $debug:Boolean = false)



Parameters
$tw:int
 
$th:int
 
$cursor:Boolean (default = true)
 
$debug:Boolean (default = false)
Method Detail
destroy()method
public function destroy():void

Destroy

Examples
 
      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);
            }
        }
     }