package
{
// class
public class name_class{
// contructor
public class name_function(){
//program
}
}
more details :
package
{
import flash.display.*;
import flash.text.*;
public class helloWorld extends MovieClip(){
var myText : TextField = new TextField();
myText.text = “Hello World”;
addChild(myText);
}
}
next step :
- Save File with name "HelloWorld.as".
- Next, create a new document.
- On the properties, create class name "HelloWorld".
- And the last, save file with name HelloWorld.fla.