Communicating with stage or root from an AS3 class

Hi all,

I’m using the following code from an AS3 class which extends a Library symbol to tell the main timeline to do something:

MovieClip(this.root).gotoAndStop("game1");

I know I ‘should’ use stage, but it’s not working for me. EG:

package {
    import flash.display.MovieClip;
    import flash.display.Stage;
    import flash.display.SimpleButton;
    import flash.events.MouseEvent;
    
    public class StageTest extends MovieClip {
        private var theStage:Stage;
        public function StageTest(stageRef:Stage){
            theStage = stageRef;
            init();
        }
        private function init():void{
            SimpleBttn.addEventListener(MouseEvent.MOUSE_UP, simpleBttnHandler);
        }
        private function simpleBttnHandler(event:MouseEvent):void{
            doSomething();
        }
        private function doSomething():void{
            theStage.gotoAndPlay("something interesting");
        }
    }
}

What am I doing wrong here?
Kind regards
Kevin