Desperate for in depth explanation

I have a main movie that loads in external movies, I want flash to remember what order the movies are loaded in and store the information for retrieval. I will then have a back button on each external movie and when you click the back buton it retrieves the previous movie.

I know this is a big question, I do understand actionscript basics but am just starting to get into storing values in variables and arrays, I think the biggest stumbling block for me with this challenge is how can flash remember what happened five or six steps previous.

Appreciate any help or advice or links to tutorials on this.

Thanks