Getting Started > What's new in Flash 5 ActionScript > Local variables

Local variables

You can declare local variables that expire at the end of the action list or function call. This allows you to manage memory and reuse variable names. Flash 4 variables were all permanent—even temporary variables like loop counters remained in the movie until the movie ended.