Align objects when ResizeStage problems

I’m trying to align an object on the stage “mymenu” when the browser resizes.
If I write a function to do that inside the flash document, it works properly but now I’m trying to do it from the main class that it called by the main swf.


private var stageW:uint = stage.stageWidth;
private var stageH: uint=stage.stageHeight;
///////////////////////////
public function main() {
     setsizeStage();
  }
///////////////////////////
private function setsizeStage():void {
   stage.scaleMode = StageScaleMode.NO_SCALE;
   stage.align = StageAlign.TOP_LEFT;
   stage.addEventListener(Event.RESIZE, resizeStage);
   stage.dispatchEvent(new Event(Event.RESIZE));
  }
///////////////////////////
private function resizeStage(event:Event):void {
   stageW = stage.stageWidth;
   stageH = stage.stageHeight;
   var menudestinyX:uint= (stageW/2)-100;
   var menudestinyY:uint= 100;
   trace(stageW+" "+stageH);
   TweenLite.to(mymenu, 1, {x:menudestinyX,y:menudestinyY, ease:Expo.easeOut});
  }
 

The output says me that “mymenu” property is not defined but the object is defined and added to de displaylist.:red:

What could be the problem?