topical media & game development

talk show tell print

#graphic-player-10-cube-be-nascom-flash10-tests-widgets-NestedPerspectiveMenuItem.ax

#graphic-player-10-cube-be-nascom-flash10-tests-widgets-NestedPerspectiveMenuItem.ax [swf] [flash] flex


  package be.nascom.flash10_tests.widgets{
          import flash.display.DisplayObjectContainer;
          import flash.events.Event;
          import flash.events.MouseEvent;
          import flash.filters.DropShadowFilter;
          
          
          public class @ax-graphic-player-10-cube-be-nascom-flash10-tests-widgets-NestedPerspectiveMenuItem extends CubeSideMaterial{
                  
                  public function @ax-graphic-player-10-cube-be-nascom-flash10-tests-widgets-NestedPerspectiveMenuItem(w:uint, h:uint, side_id:uint){
                          super(w, h, side_id);
                          addEventListener(MouseEvent.MOUSE_OVER,popOut);
                          addEventListener(MouseEvent.MOUSE_OUT,popBack);
                  }
                  
                  protected function popOut(e:Event):void{
                          var p:DisplayObjectContainer=this.parent;
                          this.parent.removeChild(this);
                          p.addChild(this);
                          this.z=-60;
                          this.filters=[new DropShadowFilter(30,45,0,.5,20,20)];
                  }
                  
                  protected function popBack(e:Event):void{
                          this.z=0;
                          this.filters=[];
                  }
                  
                  public function destroy():void{
                          removeEventListener(MouseEvent.MOUSE_OVER,popOut);
                          removeEventListener(MouseEvent.MOUSE_OUT,popBack);
                  }
                  
                  
                  
          }
  }


(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.