home *** CD-ROM | disk | FTP | other *** search
/ 404 Jogos / CLJG.iso / Aventura / climatechaos.swf / scripts / __Packages / Photo.as < prev    next >
Encoding:
Text File  |  2008-09-12  |  961 b   |  36 lines

  1. class Photo extends Object
  2. {
  3.    var image;
  4.    var object_id;
  5.    function Photo(p_height)
  6.    {
  7.       super();
  8.       if(p_height != undefined)
  9.       {
  10.          var _loc6_ = p_height;
  11.       }
  12.       else
  13.       {
  14.          _loc6_ = 140;
  15.       }
  16.       var _loc7_ = _quality;
  17.       _quality = "medium";
  18.       var _loc5_ = new flash.display.BitmapData(275,150,false,0);
  19.       this.image = new flash.display.BitmapData(225,_loc6_,false,0);
  20.       var _loc4_ = new flash.geom.Matrix();
  21.       _loc4_.scale(0.5,0.5);
  22.       var _loc8_ = new flash.geom.Rectangle(0,0,550,300);
  23.       _loc5_.draw(_root,_loc4_,null,null,_loc8_);
  24.       this.image.copyPixels(_loc5_,new flash.geom.Rectangle(25,0,225,_loc6_),new flash.geom.Point(0,0));
  25.       if(_root.e.hit_center != _root)
  26.       {
  27.          this.object_id = _root.e.hit_center.photo_name;
  28.       }
  29.       else
  30.       {
  31.          this.object_id = "the ground";
  32.       }
  33.       _quality = _loc7_;
  34.    }
  35. }
  36.