Hi there,

I'm currently learning AS3 (and 2 aswell I guess). Now i'm having a little 'problem' with duplicated variables.

I'm having a function with two for-loops:
code:
for(var i:int=0; i<10; i++) {
var m:Boolean = false;
}

for(var i:int=0; i<10; i++) {
var m:Boolean = false;
}


Why do i get the warning of duplicated variables? I always thought that both variables 'i' and 'm' would get removed at the end of the loop. Doesn't this happen anymore since AS2/3 ?

Thanks,
~Sph