This content has been marked as final. Show 4 replies
did you mean to use:
ha yes that's what I mean: stage.invalidate();
and you see that error message? if so, copy and paste the code you used in your fla.
if called correctly, then it means you are calling it in a scope where stage
is not accessible.
The stage property is only available to DisplayObject instances (including
all subclasses like MovieClip). In addition the stage property will be null
if the DisplayObject instance is not a child of a display list attached to
So if you are using this in a class definition that is not a DisplayObject,
you will need to pass in a reference to stage into that class so that it can
be referenced (or use the stage property of a display object accessible
within that class) or if you are in the scope of a display object, you need
to make sure it is attached to the stage. In Flash Player 18.104.22.168+ you can
use the Event.ADDED_TO_STAGE ("addedToStage") event to determine this.
"romkeedehaan" <firstname.lastname@example.org> wrote in message
> ha yes that's what I mean: stage.invalidate();