Accessing main class stage event listener.
Posted
by Hwang
on Stack Overflow
See other posts from Stack Overflow
or by Hwang
Published on 2010-04-13T09:10:33Z
Indexed on
2010/04/13
9:12 UTC
Read the original article
Hit count: 259
actionscript-3
I wanted to remove an event listener from main class stage, but i get the error 1120: Access of undefined property stage.
How do I actually access the stage?
custom class:
import main;
main.disableVcam();
main class:
public static function disableVcam():void {
trace("disable");
stage.removeEventListener(MouseEvent.MOUSE_MOVE, movevC);
}
© Stack Overflow or respective owner