| Code: |
|
for (n=0;n<2;++n){ trace(n); } |
this returns 0 1 to the output panel which is desired
but
| Code: |
|
for(n=0;n<2;++n){ trace(n); if (n=0) { number = 0 }else if(n=1){ number=1 } } |
this will only output 0 in the panel. it never makes it to 1. if you jack up the conditoin to <10 or somsething it will display 0111111111 or something similiar. so any actionscript users out there that can explain to me why?
