box-o-sand/00-custom-app/CustomApp.as
2010-02-19 16:03:55 -05:00

24 lines
440 B
ActionScript

package
{
import mx.core.Application;
import mx.controls.Button;
import flash.events.MouseEvent;
public class CustomApp extends Application
{
public var mutton:Button;
function CustomApp()
{
mutton.addEventListener(MouseEvent.CLICK, butterCup);
}
public function butterCup(event:MouseEvent):void
{
trace("clicked " + event);
}
}
}