KlikPunk/src/Button.as
2011-01-28 17:39:36 -08:00

21 lines
340 B
ActionScript

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