/ Published in: ActionScript 3
                    
                                        
Using class files sets your code free. And it’s really no harder than coding on the timeline; it just involves a little more setup.
                
                            
                                Expand |
                                Embed | Plain Text
                            
                        
                        Copy this code and paste it in your HTML
package
{
import flash.display.MovieClip;
public class Main extends MovieClip
{
public function Main()
{
}
}
}
URL: http://active.tutsplus.com/tutorials/actionscript/quick-tip-how-to-use-a-document-class-in-flash/
Comments
 Subscribe to comments
                    Subscribe to comments
                
                