In Flash Actionscript 3, if a function is defined in Frame 1 of a flash animation and the animation loops, does it store another version of the function in memory upon each loop.
frame 1:
function blah() {
var n = "yes";
return n;
}
If so, is it a best practice to check to see if it's the first time the frame has been run, by setting a variable and checking it's existence, or is it a non-issue because the compiler checks to make sure that a function has not already been defined?
frame 1:
if (!status) {
function blah() {
var n = "yes";
return n;
}
var status = "loaded";
}