> When you have an "onEnterFrame" and you want to terminate it but call on a > function at the end of it, what is the best way of doing this? > Do you call the function first and then end the onEnterFrame or do you end > the onEnterFrame and then call the function?
It doesn't matter. You nulify the reference and the current call continues to execute. So it makes no difference in practice (unless your function SETS onEnterFrame of course). > Also, do you use onEnterFrame = null or is it better to delete > onEnterFrame? > Someone made tests about it to see what was faster a long time ago, but I can't remember the results. :( IIRC, it was better to set it as undefined (same effect as delete in this case?) Zeh _______________________________________________ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders