Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- package code {
- import flash.display.MovieClip;
- public class PlaybookSportSubMenu extends SubMenu {
- public var playbookMiniSubPanel:PlaybookMiniSubPanel;
- public var subPointer:SubPointer = new SubPointer();
- //tried to make a public static so that in the panel class i can
- //change the movieclip
- //public static var aClip:PlaybookSportSubMenu = new PlaybookSportSubMenu();
- public function PlaybookSportSubMenu() {
- // constructor code
- playbookMiniSubPanel = new PlaybookMiniSubPanel(5);
- addChildAt(playbookMiniSubPanel,0);
- playbookMiniSubPanel.y = 113;
- playbookMiniSubPanel.x = -63;
- addChild(subPointer);
- subPointer.x=-30;
- subPointer.y=114;
- subPointer.alpha=.8;
- }
- private function setContent(to:MovieClip):void
- {
- contentClip = to;
- }
- public function sendContentTo(aLabel:String):void
- {
- contentClip.gotoAndStop(aLabel);
- }
- //no need to create another remove function since this class
- //extends SubMenu, it obtains all of the other
- //class's methods and properties
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment