Recent News

AS3 MouseEvents and Buttons

Posted by sortofme on February 22nd, 2008

first off the link to the class documentation on Adobe Livedocs/MouseEvents:

Actionscript:
  1. //simple way of creating a default Button
  2. package{
  3.    import flash.display.MovieClip;
  4.    import flash.events.MouseEvent;
  5.    public class NavButton extends MovieClip {
  6.       public function NavButton() {
  7.       this.mouseEnabled = true;//to display the hand cursor on Rollover
  8.       this.buttonMode = true;
  9.       this.addEventListener(MouseEvent.ROLL_OVER, dim);
  10.       this.addEventListener(MouseEvent.ROLL_OUT, bright);
  11.       }
  12.       private function  dim ( event:MouseEvent ) : void{
  13.          this.alpha= .75;
  14.       }
  15.       private function bright(event:MouseEvent):void{
  16.          this.alpha = 1;
  17.       }
  18.    }
  19. }

a simple text chat

Posted by sortofme on February 21st, 2008

code collection for a simple text chat running through the flash media server 2, written in AS3.

AS3 cheat sheet

Posted by sortofme on February 21st, 2008

In my quest to convert my apps from AS2 to AS3, I tumbled across this very helpful cheat sheet:  AS2 to AS3 migration

more to be found here: www.actionscriptcheatsheet.com/

Recent Comments | Recent Posts


designed and coded by: noesi
bottom