Advertisement
henke37

Document class double instantiation

Apr 27th, 2012
496
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. package  {
  2.    
  3.     import flash.display.MovieClip;
  4.    
  5.    
  6.     public class Main extends MovieClip {
  7.        
  8.         private static var times:uint=1;
  9.        
  10.         public function Main() {
  11.             if(times--) {
  12.                 new Main();
  13.             }
  14.         }
  15.     }
  16.    
  17. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement