home *** CD-ROM | disk | FTP | other *** search
/ 600 Games / 600games.iso / Acao / kung_fu.swf / scripts / frame_1 / DoAction.as
Encoding:
Text File  |  2006-06-13  |  805 b   |  32 lines

  1. _quality = "low";
  2. Stage.align = "C";
  3. Stage.scaleMode = "noScale";
  4. System.security.allowDomain("www.kungfuhustle.com","61.145.117.78","61.145.117.79","61.145.117.80");
  5. System.security.loadPolicyFile("http://www.kungfuhustle.com/crossdomain.xml");
  6. Array.prototype.remove = function(x)
  7. {
  8.    var _loc3_ = this;
  9.    var _loc2_ = 0;
  10.    if(_loc3_[_loc3_.length - 1] == x)
  11.    {
  12.       _loc3_.pop();
  13.       return true;
  14.    }
  15.    while(_loc2_ < _loc3_.length)
  16.    {
  17.       if(_loc3_[_loc2_] == x)
  18.       {
  19.          _loc3_.splice(_loc2_,1);
  20.          return true;
  21.       }
  22.       _loc2_ = _loc2_ + 1;
  23.    }
  24.    return false;
  25. };
  26. String.prototype.replace = function(str, rep)
  27. {
  28.    return this.split(str).join(rep);
  29. };
  30. ASSetPropFlags(String.prototype,null,1);
  31. ASSetPropFlags(Array.prototype,null,1);
  32.