Accessing the Stage

I don’t understand how objects on the stage (created in the Flash IDE) can be accessed.

In AS2, it was simple, just use _root or this.stage. In AS3, this appears not to be the case.

Here is an example class


package johnbailey{
    import flash.display.MovieClip;
    import flash.display.Stage;
    import fl.transitions.Tween;
    import fl.transitions.easing.*;
   
    public class myStageClass{
       
        private var _stage:MovieClip = null;

        public function myStageClass(thestage:MovieClip){
            this._stage = thestage;
            var myTween:Tween = new Tween(this._stage.box_MC, "x", Elastic.easeOut, 0, 50, 3, true)
        }
    }
}

NOTE: box_MC is on the fla’s stage

**
ANSWER** *sort of

See above
*Then just put this in the fla with an mc instance of box_MC

import johnbailey.myStageClass;
var startIt = new myStageClass(this);