flash: why use "var"?
flash: why use "var"?
Out of context: Reply #4
- Started
- Last post
- 13 Responses
- estlin0
as far as my knowledge of it...
var is useful in that the memory used by the variable is released after the execution of the actionscript call it's contained in. might or might not significantly speed things up, haven't done real world tests, but in theory it should be more efficient.
you only use it if you don't need to reference the variable outside of its local scope.