Remembering last state of a nested movie clip

hey guys!!

i am new to this forum and new to AS also

i am making an application kind of thing in flash

i created a functionality for minimizing and maximizing it (on the stage only)
by keeping the whole application in a movie clip.
and then animating that movie clip on press of a button

now the issue is that

when i reverse the playback of timeline(to expand the application)
it expands in its initial state

but i want it to remember the last state of my nested movie clip(10 lvls of nesting ) and expand in in that state.

any suggestion how can i achieve that remembering the last state thing