home *** CD-ROM | disk | FTP | other *** search
/ 404 Jogos / CLJG.iso / Diversos / animal_artist.swf / scripts / Document.as < prev   
Encoding:
Text File  |  2008-09-05  |  1.2 KB  |  51 lines

  1. package
  2. {
  3.    import Gamefile.Game;
  4.    import Gamefile.Language;
  5.    import Gamefile.SoundsManager;
  6.    import flash.display.MovieClip;
  7.    import flash.display.SimpleButton;
  8.    import flash.ui.ContextMenu;
  9.    
  10.    public class Document extends MovieClip
  11.    {
  12.        
  13.       
  14.       public var ChooseDownBtn:SimpleButton;
  15.       
  16.       public var ChooseUpBtn:SimpleButton;
  17.       
  18.       public function Document()
  19.       {
  20.          super();
  21.          initDocument();
  22.          hideContextMenu();
  23.          forbidScale();
  24.          this.stage.stageFocusRect = false;
  25.       }
  26.       
  27.       private function hideContextMenu() : void
  28.       {
  29.          var _loc1_:ContextMenu = null;
  30.          _loc1_ = new ContextMenu();
  31.          _loc1_.hideBuiltInItems();
  32.          this.contextMenu = _loc1_;
  33.          this.stage.showDefaultContextMenu = false;
  34.       }
  35.       
  36.       private function forbidScale() : void
  37.       {
  38.          this.stage.scaleMode = "noScale";
  39.       }
  40.       
  41.       private function initDocument() : *
  42.       {
  43.          var _loc1_:Game = null;
  44.          this.stop();
  45.          new SoundsManager();
  46.          new Language();
  47.          _loc1_ = new Game(this);
  48.       }
  49.    }
  50. }
  51.