package { import mx.core.Application; import mx.controls.Alert; import flash.events.MouseEvent; public class CustomApp extends Application { function CustomApp() { } public function butterCup(event:MouseEvent):void { var msg:String = "clicked" + event; trace(msg); Alert.show(msg); } } }