Ariel
02.02.2008, 00:21
Очень странный вопрос: означает ли нижеприведенное определение из флашового хелпа, что переменные, определенные в цикле FOR, должны быть валидны только в теле цикла?
VAR
Used to declare local variables. If you declare variables inside a function, the variables are local. They are defined for the function and expire at the end of the function call. More specifically, a variable defined using var is local to the code block containing it. Code blocks are demarcated by curly braces ({}).
VAR
Used to declare local variables. If you declare variables inside a function, the variables are local. They are defined for the function and expire at the end of the function call. More specifically, a variable defined using var is local to the code block containing it. Code blocks are demarcated by curly braces ({}).