topical media & game development

talk show tell print

lib-present-graphic-imagination-com-neave-link-NeaveLinkButton.ax

lib-present-graphic-imagination-com-neave-link-NeaveLinkButton.ax [swf] flex


  
Neave Link Button Copyright (C) 2008 Paul Neave http://www.neave.com/ This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation at http://www.gnu.org/licenses/gpl.html

  
  
  package // com.neave.link
  {
          import flash.display.*;
          import flash.text.*;
          
          public class @ax-lib-present-graphic-imagination-com-neave-link-NeaveLinkButton extends SimpleButton
          {
                  
Creates a textfield button for a link to www.neave.com

  
                  public function @ax-lib-present-graphic-imagination-com-neave-link-NeaveLinkButton()
                  {
                          var tf:TextField = new TextField();
                          tf.text = "Made by Paul Neave  //  www.neave.com";
                          tf.autoSize = TextFieldAutoSize.CENTER;
                          tf.blendMode = BlendMode.INVERT;
                          
                          var fmt:TextFormat = new TextFormat("Verdana", 11, 0xFFFFFF);
                          fmt.align = TextFormatAlign.CENTER;
                          tf.setTextFormat(fmt);
                          tf.x = -tf.width / 2;
                          tf.y = -tf.height;
                          
                          upState = overState = downState = hitTestState = tf;
                          useHandCursor = true;
                  }
          }
  }
  


(C) Æliens 04/09/2009

You may not copy or print any of this material without explicit permission of the author or the publisher. In case of other copyright issues, contact the author.