From a1f814a294d1f7f8c821cd8ee1846556cb2a165a Mon Sep 17 00:00:00 2001 From: Dan Buch Date: Fri, 19 Feb 2010 16:05:23 -0500 Subject: [PATCH] more traditional event listener stuff --- 00-custom-app/CustomApp.as | 3 --- 00-custom-app/Snarf.mxml | 2 +- 2 files changed, 1 insertion(+), 4 deletions(-) diff --git a/00-custom-app/CustomApp.as b/00-custom-app/CustomApp.as index 023dbda..72e26ae 100644 --- a/00-custom-app/CustomApp.as +++ b/00-custom-app/CustomApp.as @@ -1,17 +1,14 @@ 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 diff --git a/00-custom-app/Snarf.mxml b/00-custom-app/Snarf.mxml index b0abdf7..e965b76 100644 --- a/00-custom-app/Snarf.mxml +++ b/00-custom-app/Snarf.mxml @@ -1,5 +1,5 @@ - +