Sepy + AsWing

Tags : , ,

This tutorial will help you get setup with the SEPY Editor and ASWing.

1) Download the ASWing source files from the website from the download section.

2) Unzip the file to a directory of your choice.

3) Create a new AS file and name it Test.as . Goto the Flush menu and then click on the Compile with MTASC menu item. A dialog box will appear. For the mtasc executable type 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. In the Options menu make sure the main checkbox is selected. In the classpaths add the ASWing src directory to list. Below is a screenshot of my setup.

mtascasw.jpg

Now lets add some code to the Test.as file to make sure our setup is working fine. Mtasc should have compiled and created an swf for you. The Stage should show a JWindow pane with the Test Button on top. Below is a screenshot of my compiled swf.

/**
* @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 an swf for you. The Stage should show a JWindow pane with the Test Button on top. Below is a screenshot of my compiled swf.

sepyasw.jpg