home *** CD-ROM | disk | FTP | other *** search
/ 404 Jogos / CLJG.iso / Diversos / zombietypocalypse.swf / scripts / classes / components / LinkButton.as < prev    next >
Encoding:
Text File  |  2008-09-15  |  1.0 KB  |  43 lines

  1. package classes.components
  2. {
  3.    import flash.display.MovieClip;
  4.    import flash.events.MouseEvent;
  5.    import flash.net.URLRequest;
  6.    import flash.net.navigateToURL;
  7.    
  8.    public class LinkButton extends MovieClip
  9.    {
  10.        
  11.       
  12.       public function LinkButton()
  13.       {
  14.          super();
  15.          this.buttonMode = true;
  16.          this.addEventListener(MouseEvent.CLICK,onClick);
  17.       }
  18.       
  19.       private function onClick(param1:MouseEvent) : void
  20.       {
  21.          var _loc2_:String = null;
  22.          var _loc3_:URLRequest = null;
  23.          if(this.name == "fabrykaGier")
  24.          {
  25.             _loc2_ = "http://www.game-factory.eu";
  26.          }
  27.          if(this.name == "freakyTiki")
  28.          {
  29.             _loc2_ = "http://freakytikiproductions.com/";
  30.          }
  31.          if(this.name == "addicting")
  32.          {
  33.             _loc2_ = "http://www.addictinggames.com";
  34.          }
  35.          if(_loc2_ != null)
  36.          {
  37.             _loc3_ = new URLRequest(_loc2_);
  38.             navigateToURL(_loc3_);
  39.          }
  40.       }
  41.    }
  42. }
  43.