home *** CD-ROM | disk | FTP | other *** search
/ 404 Jogos / CLJG.iso / Puzzle / Clusterz / Clusterz.swf / scripts / OWLogo.as < prev   
Encoding:
Text File  |  2008-09-12  |  1.3 KB  |  44 lines

  1. package
  2. {
  3.    import ENGINE.CORE.OGlobal;
  4.    import ENGINE.INTERFACE.OIObject;
  5.    import ENGINE.INTERFACE.OInterface;
  6.    import flash.display.Bitmap;
  7.    import flash.display.MovieClip;
  8.    import flash.events.MouseEvent;
  9.    import flash.geom.Rectangle;
  10.    import flash.net.URLRequest;
  11.    import flash.net.navigateToURL;
  12.    
  13.    public class OWLogo extends OIObject
  14.    {
  15.       
  16.       public static var OLogoBig:Class = OWLogo_OLogoBig;
  17.        
  18.       
  19.       public var iLogo:Bitmap;
  20.       
  21.       public function OWLogo()
  22.       {
  23.          var _loc1_:Rectangle = null;
  24.          var _loc2_:MovieClip = null;
  25.          this.graphics.beginFill(16777215);
  26.          _loc1_ = OGlobal.StageRect;
  27.          this.graphics.drawRect(-(_loc1_.width - 800 * OGlobal.Scale) / 2,-(_loc1_.height - 600 * OGlobal.Scale) / 2,_loc1_.width,_loc1_.height);
  28.          this.graphics.endFill();
  29.          super([],OInterface.iDefSlowAnimators);
  30.          _loc2_ = new OLogoBig() as MovieClip;
  31.          _loc2_.x = 0;
  32.          _loc2_.y = 0;
  33.          this.addChild(_loc2_);
  34.       }
  35.       
  36.       public function OnClick(param1:MouseEvent) : void
  37.       {
  38.          navigateToURL(new URLRequest("http://www.shockwave.com"),"_blank");
  39.          this.removeEventListener(MouseEvent.CLICK,OnClick);
  40.          this.buttonMode = false;
  41.       }
  42.    }
  43. }
  44.