This page last changed on Jan 20, 2006 by admin.

SEPY, MTASC and AsWing Tutorial

This 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 AsWing

Download 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

  1. Create a new AS file and name it Test.as.
  2. Goto the Flush menu and then click on the Compile with MTASC menu item.
  3. A dialog box will appear:
    • For the MTASC executable option, type in (or browse to) the path where you have unzipped the MTASC compiler.
    • The Target SWF can be any directory and filename of your choice.
    • For the Base Class type in the path to the Test.as file you created earlier.
    • In the Header Option type in the dimensions of the stage and the framerate as 800:600:12 (800x600 pixes running at 12fps)
    • In the Options section make sure the -main checkbox is ticked.
  4. In the Classpaths add the ASWing src directory to list.


Dialog with all required settigs

Step 3 - Adding the sample code

Now 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.


sepyasw.gif (image/gif)
mtascasw.gif (image/gif)
Document generated by Confluence on Dec 19, 2006 14:17