Hey,
I have my website as many .as classes. In these classes when I want to check the mouse is pressed I simple do:
addEventListener(MouseEvent.MOUSE_DOWN,funcDown);
However, I am loading in an external .swf into my website. In the external file I have:
addEventListener(Event.ENTER_FRAME,funcFrame);
which works fine. But when I want to check if the mouse is pressed the only way I can get it working in the .swf is to use:
stage.addEventListener(MouseEvent.MOUSE_DOWN,funcDown);
which works fine when its running by itself, but when loaded into the website the “stage” bit creates an error and the script fails to run.
Im not sure what the work around is, or exactly what the problem is in accessing the stage class from an external file.
Thanks for reading and helping,
Dan