![]() when I haven't yet defined the onClickMenuButton() handler function. MenuButton.addEventListener(MouseEvent.CLICK, onClickMenuButton) Automatic Object CreationÄo you ever type the name of a variable or function before you've created it? I do this all the time with event handler functions when defining a listener. ![]() Likewise, if you specified some interfaces for the class to implement, you could tell FlashDevelop to automatically create stub functions for each of the methods in those interfaces. Public function SuperRectangle(x:Number = 0, y:Number = 0, width:Number = 0, height:Number = 0) Public class SuperRectangle extends Rectangle If you check "Generate constructor matching base class" it'll give the class the same arguments as the Rectangle class that it extends:
0 Comments
Leave a Reply. |