Pan class in Flash AS3 <p>I have a movieclip and I am going to add a pan feature to it. I want to add the pan as it's own class that the movieclip can reference.</p> <p>When I create the pan class, I send the movieclip to it so I have it's position properties at all times.</p> <p>What is the best way to access the stage in the pan class? I will need to be able to get the stage mouseX, mouseY, stageWidth, and stageHeight.</p> <p>Right now, I have the pan class extend a sprite object and actually add it as a child of the movieclip I want to pan.</p> <p>Would it be better to just send the stage itself into the pan class as well or is there a better way than this?</p>