# How to get to run the stage in a subclass

**URL:** <https://forum.kirupa.com/t/how-to-get-to-run-the-stage-in-a-subclass/314421>\
**Category:** flash\
**Created:** [September 28, 2010, 9:46am UTC](https://forum.kirupa.com/t/how-to-get-to-run-the-stage-in-a-subclass/314421 "2010-09-28T09:46:24Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![chindevil](https://avatars.discourse-cdn.com/v4/letter/c/5f9b8f/32.png) [@chindevil](https://forum.kirupa.com/u/chindevil)\
**Post date:** [September 28, 2010, 9:46am UTC](https://forum.kirupa.com/t/how-to-get-to-run-the-stage-in-a-subclass/314421/1 "2010-09-28T09:46:24Z")

</div>

I try to run the function stage in class it is not working.

```auto
package [COLOR=Red]devilClass.Player[/COLOR]{
    import flash.display.*;
    import flash.events.*;
    public class test extends MovieClip {
        public function test(){
            trace(stage.displayState);
        }
        
    }
}

```

but Call class stage in main Class it working , because???

```auto
package{
    import flash.display.*;
    import flash.events.*;
    public class test extends MovieClip {
        public function test(){
            trace(stage.displayState);
        }
        
    }
}

```

Is there a way to call class stage in a class Import?
