So, just wondering;
If i write a for loop as follows…:
function pass(){
trace("pass");
}
for(var i = 0; i<5; i++){
pass();
}
…my understanding is that I have written a function that is carried out five times.
So logically, when I instead write the script like this…:
for(var i = 0; i<5; i++){
function pass(){
trace("pass");
}
pass();
}
…I have actually written and called this function five different times.
So my question is does this clog down any processing usage in my script? Is it less efficient to write my code in the latter way?