Just a few questions that is more geared toward optimizing the AS3 and
Away3D in any way possible:
I read somewhere where someone said the general rule of thumb about
even listeners is when you add an even listener, you should also
remove it if you are done with it otherwise you could get into the
issue of memory leaks.
So, my question is if you add the following event listeners to the
stage for example:
stage.addEventListener(KeyboardEvent.KEY_DOWN, someFunction());
stage.addEventListener(KeyboardEvent.KEY_UP, someFunction());
stage.addEventListener(MouseEvent.MOUSE_WHEEL, someFunction());
stage.addEventListener(MouseEvent.MOUSE_DOWN, someFunction());
stage.addEventListener(MouseEvent.MOUSE_UP, someFunction());
If that rule of thumb is true, than does it mean it is mainly
applicable when event listeners are added to objects and removing it
when not used as removing it from the stage means you remove the
ability to interact with flash??
One other SIDE question, I have seen the function "super()" used in
several classes, I believe at the top inside the constructor of that
class, what is it for, where and when would you use it, and how do you
use it?
Thank you very much....