Getting Started > What's new in Flash 5 ActionScript > Local variables
Local variablesYou 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 permanenteven temporary variables like loop counters remained in the movie until the movie ended.