custom app!
This commit is contained in:
23
00-custom-app/CustomApp.as
Normal file
23
00-custom-app/CustomApp.as
Normal 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
5
00-custom-app/Snarf.mxml
Normal 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>
|
Reference in New Issue
Block a user