I’m tired of typing this over and over. CS5 does this for you, but I have a feeling that I will be using CS4 at work for at least another year before we do an official upgrade. And that’s fine, Cs5 as of today’s date still crashes a lot- so after they work out the bugs and send out some patches, it will all be groovy, till then here is my simple AS3 class layout.
package com.drpunchlogic
{
// -- IMPORT
public class classname extends MovieClip
{
// -- VARS
/*
--------------------------------------------------------
SET IT UP
--------------------------------------------------------
*/
public function classname( )
{
}
/*
--------------------------------------------------------
START CLASS
--------------------------------------------------------
*/
// INIT
public function init(e:Event) : void
{
}
// -- END CLASS
}
// -- END PACKAGE
}
