missEmm

PlaybookSportSubmenu.as

Apr 30th, 2011
82
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. package code {
  2.    
  3.     import flash.display.MovieClip;
  4.    
  5.    
  6.     public class PlaybookSportSubMenu extends SubMenu {
  7.         public var playbookMiniSubPanel:PlaybookMiniSubPanel;
  8.         public var subPointer:SubPointer = new SubPointer();
  9.        
  10.         //tried to make a public static so that in the panel class i can
  11.         //change the movieclip
  12.         //public static var aClip:PlaybookSportSubMenu = new PlaybookSportSubMenu();
  13.        
  14.         public function PlaybookSportSubMenu() {
  15.             // constructor code
  16.            
  17.         playbookMiniSubPanel = new PlaybookMiniSubPanel(5);
  18.         addChildAt(playbookMiniSubPanel,0);
  19.         playbookMiniSubPanel.y = 113;
  20.         playbookMiniSubPanel.x = -63;
  21.        
  22.         addChild(subPointer);
  23.             subPointer.x=-30;
  24.             subPointer.y=114;
  25.             subPointer.alpha=.8;
  26.        
  27.         }
  28.        
  29.        
  30.         private function setContent(to:MovieClip):void
  31.         {
  32.             contentClip = to;
  33.         }
  34.        
  35.         public function sendContentTo(aLabel:String):void
  36.         {
  37.             contentClip.gotoAndStop(aLabel);
  38.         }
  39.         //no need to create another remove function since this class
  40.         //extends SubMenu, it obtains all of the other
  41.         //class's methods and properties
  42.        
  43.     }
  44.    
  45.    
  46. }
Advertisement
Add Comment
Please, Sign In to add comment