home *** CD-ROM | disk | FTP | other *** search
- class Photo extends Object
- {
- var image;
- var object_id;
- function Photo(p_height)
- {
- super();
- if(p_height != undefined)
- {
- var _loc6_ = p_height;
- }
- else
- {
- _loc6_ = 140;
- }
- var _loc7_ = _quality;
- _quality = "medium";
- var _loc5_ = new flash.display.BitmapData(275,150,false,0);
- this.image = new flash.display.BitmapData(225,_loc6_,false,0);
- var _loc4_ = new flash.geom.Matrix();
- _loc4_.scale(0.5,0.5);
- var _loc8_ = new flash.geom.Rectangle(0,0,550,300);
- _loc5_.draw(_root,_loc4_,null,null,_loc8_);
- this.image.copyPixels(_loc5_,new flash.geom.Rectangle(25,0,225,_loc6_),new flash.geom.Point(0,0));
- if(_root.e.hit_center != _root)
- {
- this.object_id = _root.e.hit_center.photo_name;
- }
- else
- {
- this.object_id = "the ground";
- }
- _quality = _loc7_;
- }
- }
-