Advertisement
Guest User

Untitled

a guest
Aug 19th, 2017
70
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. package
  2. {
  3.     import flash.display.MovieClip;
  4.     import flash.events.Event;
  5.     import flash.events.MouseEvent;
  6.     /**
  7.      * ...
  8.      * @author Matt
  9.      */
  10.     public class EmptyTile extends TileBase
  11.     {          
  12.         public function EmptyTile()
  13.         {
  14.             trace("Empty Tile created!");
  15.             this.addEventListener( Event.ADDED, onCreated );
  16.         }
  17.        
  18.         private function onCreated(e:Event):void
  19.         {
  20.             this.buttonMode = false;
  21.            
  22.             this.addEventListener(MouseEvent.ROLL_OVER, thisMouseOver, false, 0, true );
  23.             this.addEventListener(MouseEvent.ROLL_OUT, thisMouseOut, false, 0, true ); 
  24.         }
  25.        
  26.         private function thisMouseOut(e:MouseEvent):void
  27.         {
  28.            
  29.         }
  30.        
  31.         private function thisMouseOver(e:MouseEvent):void
  32.         {
  33.            
  34.         }
  35.     }
  36.  
  37. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement