custom app!

This commit is contained in:
Dan Buch
2010-02-19 16:03:55 -05:00
parent 1c244553af
commit be31565c47
5 changed files with 28 additions and 151 deletions

View File

@@ -0,0 +1,23 @@
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);
}
}
}

5
00-custom-app/Snarf.mxml Normal file
View File

@@ -0,0 +1,5 @@
<?xml version="1.0" encoding="utf-8"?>
<me:CustomApp xmlns:mx="http://www.adobe.com/2006/mxml"
xmlns:me="*" layout="absolute">
<mx:Button id="mutton" label="howdy" />
</me:CustomApp>