home *** CD-ROM | disk | FTP | other *** search
/ 404 Jogos / CLJG.iso / Puzzle / Clusterz / Clusterz.swf / scripts / RES / WINDOWS / OWHighScores.as < prev    next >
Encoding:
Text File  |  2008-09-12  |  1.2 KB  |  49 lines

  1. package RES.WINDOWS
  2. {
  3.    import ENGINE.INTERFACE.OButton;
  4.    import ENGINE.INTERFACE.ODialog;
  5.    import ENGINE.INTERFACE.OWindow;
  6.    import RES.API.highscores;
  7.    import flash.events.Event;
  8.    
  9.    public class OWHighScores extends ODialog
  10.    {
  11.        
  12.       
  13.       public var iClose:OButton;
  14.       
  15.       private var _highscore:highscores;
  16.       
  17.       public function OWHighScores()
  18.       {
  19.          super(ClusterzL.OWHighScores);
  20.          _highscore = new highscores(this,ClusterzL.cHs_initObj);
  21.          this.addChild(_highscore);
  22.          _highscore.openHub("view",0);
  23.          this.addChild(iClose);
  24.       }
  25.       
  26.       override public function set prActive(param1:Boolean) : void
  27.       {
  28.          super.prActive = param1;
  29.       }
  30.       
  31.       override public function OnPress(param1:Event, param2:*) : void
  32.       {
  33.          this.prVisible = false;
  34.       }
  35.       
  36.       override public function Free() : void
  37.       {
  38.          this.removeChild(_highscore);
  39.          super.Free();
  40.       }
  41.       
  42.       public function playAgain() : void
  43.       {
  44.          (this.parent as OWindow).OnPress(null,ClusterzL.miLastWindow);
  45.          this.prVisible = false;
  46.       }
  47.    }
  48. }
  49.