History like back button on MX

[font=Verdana][size=1]I want to create a history function in Flash MX pro for an interactive CD i’m making. Each section in the interactive cd has its own label. Each section (individual mc’s) have their own sub-sections with their own labels also.

My idea is to create an array that stores the label of the last 5 sections visited. I thought i could read the label and put it into the last position of the array every time the user visits a section. When the user press the “back” button I would grab the last frame label from the array and put that into the gotoAndPlay code in the back function.[/size]

Question: How do I read the label value? ie the character string itself.

[size=1]If anybody else has a better idea please let me know.

Cheers. :)[/size]