I use the following in SEPY (by Alessandro Crugnola) as a AS2 class template. To use it, just copy the code and save it in a *.as file ("ClassTemplate.as" for examle). Put that file in the snippets directory in your SEPY installation folder and start SEPY.
Now go to the Snippets panel. The "ClassTemplate" should be there. If it is not, add the path to your snippets directory by pressing the button "Change Snippets working directory" (it is represented by an icon in the Snippets panel).
To use the template, open a new file and double-click the template. It will be inserted in your actionscript file, but before that it will prompt you to enter some variables. The variables are detected because they start with "@@" and end with "@@".
So just fill them in, hit the "ok" button and let SEPY do the rest.
Hope this helps you.
-
//==================================================================
-
// PACKAGE
-
//==================================================================
-
// package @@package@@
-
-
-
-
//==================================================================
-
// IMPORTS
-
//==================================================================
-
// none
-
-
-
-
/**
-
* Class Description
-
*
-
* @author Christophe Herreman
-
* @since @@date@@
-
*/
-
class @@package@@.@@className@@
-
{
-
//==================================================================
-
// STAGE INSTANCES
-
//==================================================================
-
// none
-
-
-
-
//==================================================================
-
// PRIVATE PROPERTIES
-
//==================================================================
-
// none
-
-
-
-
//==================================================================
-
// PUBLIC PROPERTIES
-
//==================================================================
-
// none
-
-
-
-
//==================================================================
-
// CONSTRUCTOR
-
//==================================================================
-
public function @@className@@(){
-
}
-
-
-
-
//==================================================================
-
// PRIVATE METHODS
-
//==================================================================
-
// none
-
-
-
-
//==================================================================
-
// PUBLIC METHODS
-
//==================================================================
-
// none
-
-
-
-
//==================================================================
-
// EVENT HANDLERS
-
//==================================================================
-
// none
-
}
Add to Bloglines - Digg This! - del.icio.us - Stumble It! - Twit This! - Technorati links - Share on Facebook - Feedburner
Christophe Herreman is a software developer living in Belgium. He's working on high-end Flex and AIR solutions at 
September 28th, 2005 at 2:20 pm
I love the one above, but I would like to see this with some code in it, to really grasp how you really take the usage to fully with this template.
thanks