box-o-sand/00-custom-app/CustomApp.as

24 lines
440 B
ActionScript
Raw Normal View History

2010-02-19 21:03:55 +00:00
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);
}
}
}