In my document class named Engine, the stage variable is for some reason null:
package game
{
import flash.display.MovieClip;
import flash.display.Stage;
import flash.events.Event;
public class Engine extends MovieClip
{
public function Engine()
{
trace(stage); // gives Null
}
}
}
This was working fine up until now. I just recently added two dynamic text fields into a symbol, and all of a sudden the stage is null. I really don't see the connection.
This is my first time using actionscript and flash, so am a bit confused at everything.