|
AsWing.org : SEPY, MTASC and AsWing Tutorial
This page last changed on Jan 20, 2006 by admin.
SEPY, MTASC and AsWing TutorialThis tutorial will help you get setup with the SEPY Editor and ASWing and assumes you already have SEPY and MTASC installed. We hope to update this tutorial at a later date to also include basic instructions for installing MTASC and SEPY. Step 1 - Download AsWingDownload the ASWing source archive and unzip the file to a directory of your choice. Note: You can also get the latest AsWing from CVS. Step 2 - Creating a simple AsWing project
Dialog with all required settigs Step 3 - Adding the sample codeNow lets add some code to the Test.as file to make sure our setup is working fine: /** * @author firdosh */ import org.aswing. *; class Test extends JWindow { private var myButton : JButton; public function Test (Void) { super (_root, true); myButton = new JButton ("Test"); getContentPane ().append (myButton, BorderLayout.NORTH); } public static function main (Void) : Void { var myWindow : Test = new Test (); myWindow.setLocation (50, 50); myWindow.setSize (300, 300); myWindow.show (); } } MTASC should have compiled and created a "swf" file for you. The Stage should show a JWindow pane with the "Test Button" on top as shown in the screen shot below: ![]() If your test has resulted in the same output, you are now ready to start working with AsWing using SEPY and MTASC! If not, please repeat the procedure again, making sure that you get all the options correct in Step 2. If it still doesn't work, please contact us. |
| Document generated by Confluence on Dec 19, 2006 14:17 |