KlikPunk/src/Button.as

21 lines
340 B
ActionScript
Raw Normal View History

2011-01-29 01:39:36 +00:00
package
{
/**
* ...
* @author jjp
*/
public class Button extends EntitySidebarImg
{
private var dgOnClick:Function;
public function Button(sidebar:Sidebar, bmp:*, dgOnClick: Function)
{
super(sidebar, bmp);
this.dgOnClick = dgOnClick;
}
override public function OnClick():void
{
this.dgOnClick();
}
}
}