I try to run the function stage in class it is not working.
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???
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?