Basic empty Document Class


/ Published in: ActionScript 3
Save to your folder(s)

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.


Copy this code and paste it in your HTML
  1. package
  2. {
  3. import flash.display.MovieClip;
  4. public class Main extends MovieClip
  5. {
  6. public function Main()
  7. {
  8.  
  9. }
  10. }
  11. }

URL: http://active.tutsplus.com/tutorials/actionscript/quick-tip-how-to-use-a-document-class-in-flash/

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.