home *** CD-ROM | disk | FTP | other *** search
/ 404 Jogos / CLJG.iso / Diversos / bashing-pumpkins.swf / scripts / DefineSprite_63 / frame_1 / DoAction.as
Encoding:
Text File  |  2007-12-12  |  3.4 KB  |  113 lines

  1. var ┬º\x01┬º = 495;
  2. while(true)
  3. {
  4.    if(eval("\x01") == 495)
  5.    {
  6.       set("\x01",eval("\x01") + 457);
  7.       ┬º┬ºpush(true);
  8.    }
  9.    else
  10.    {
  11.       if(eval("\x01") != 952)
  12.       {
  13.          break;
  14.       }
  15.       set("\x01",eval("\x01") - 32);
  16.       if(┬º┬ºpop())
  17.       {
  18.          set("\x01",eval("\x01") + 65);
  19.       }
  20.    }
  21. }
  22. if(eval("\x01") == 920)
  23. {
  24.    set("\x01",eval("\x01") + 65);
  25. }
  26. else if(eval("\x01") == 985)
  27. {
  28.    set("\x01",eval("\x01") - 260);
  29.    this._name = "pupWindows";
  30.    animStyle = "easeincubic";
  31.    animStyle = "easeinoutquad";
  32.    animDuration = 0.5;
  33.    windowButtons = [];
  34.    windowTextStyleSheet = new TextField.StyleSheet();
  35.    windowTextStyleSheet.setStyle(".body",{color:"#000000",fontFamily:"Arial"});
  36.    windowTextStyleSheet.setStyle("a",{color:"#000000",fontFamily:"Arial",textDecoration:"underline"});
  37.    if(_global.Shell == null)
  38.    {
  39.       _global.Shell = new Object();
  40.    }
  41.    Shell.pupWindow = this;
  42.    pupWindowOpen = 0;
  43.    returnLocation = new Array();
  44.    gotoAndStop("blank");
  45.    play();
  46.    Shell.openPupWindow = function(windowType, titleCopy, bodyCopy, buttons)
  47.    {
  48.       animStyle = "easeincubic";
  49.       animStyle = "easeinoutquad";
  50.       animDuration = 0.5;
  51.       if(windowType == null)
  52.       {
  53.          Shell.pupWindow.openWindowLocation = "defaultLg";
  54.       }
  55.       else if(windowType == "default")
  56.       {
  57.          Shell.pupWindow.openWindowLocation = "defaultLg";
  58.       }
  59.       else
  60.       {
  61.          Shell.pupWindow.openWindowLocation = windowType;
  62.       }
  63.       Shell.pupWindow.windowButtons = buttons;
  64.       Shell.pupWindow.titleCopy = titleCopy;
  65.       Shell.pupWindow.bodyCopy = bodyCopy;
  66.       Shell.pupWindow.gotoAndPlay(Shell.pupWindow.openWindowLocation);
  67.       if(!Shell.pupWindow.pupWindowOpen)
  68.       {
  69.          Shell.pupWindow.windowBackground._width = 20;
  70.          Shell.pupWindow.windowBackground._height = 20;
  71.       }
  72.       Shell.pupWindow._x = Shell.gameSettings.gameID.nativeWidth / 2;
  73.       Shell.pupWindow._y = Shell.gameSettings.gameID.nativeHeight / 2;
  74.       Shell.pupWindow.coverAllButton._x = (- Shell.gameSettings.gameID.nativeWidth) / 2;
  75.       Shell.pupWindow.coverAllButton._y = (- Shell.gameSettings.gameID.nativeHeight) / 2;
  76.       Shell.pupWindow.coverAllButton._xscale = Shell.gameSettings.gameID.nativeWidth;
  77.       Shell.pupWindow.coverAllButton._yscale = Shell.gameSettings.gameID.nativeHeight;
  78.       Shell.pupWindow.coverAllButton.useHandCursor = 0;
  79.       if(!Shell.pupWindow.pupWindowOpen)
  80.       {
  81.          Shell.pupWindow.pupWindowOpen = 1;
  82.          Shell.pupWindow.coverAllButton.tween("_alpha",50,animDuration);
  83.       }
  84.    };
  85.    Shell.closePupWindow = function()
  86.    {
  87.       if(Shell.pupWindow.pupWindowOpen)
  88.       {
  89.          if(Shell.pupWindow.returnLocation.length == 0)
  90.          {
  91.             animStyle = "easeinquad";
  92.             animStyle = "easeinoutquad";
  93.             animDuration = 0.5;
  94.             Shell.pupWindow.pupWindowOpen = 0;
  95.             Shell.pupWindow.coverAllButton.tween("_alpha",0,animDuration);
  96.             Shell.pupWindow.gotoAndPlay("toClose");
  97.          }
  98.          else
  99.          {
  100.             var _loc1_ = Shell.pupWindow.returnLocation.pop();
  101.             if(_loc1_ == "contactingKewlbox" || _loc1_ == "")
  102.             {
  103.                Shell.openPupWindow(_loc1_);
  104.             }
  105.          }
  106.       }
  107.       else
  108.       {
  109.          Shell.pupWindow.gotoAndPlay("blank");
  110.       }
  111.    };
  112. }
  113.