Displaying Variables in Dynamic Text box

Hello All!
Im currently working on a flash map and its of building with several floors, my question is this… How do I create a variable that holds the floor name and when its clicked a Dynamic text box pulls that variable and displays the name displayed in it. I know I should be up on this but… Im rusty.
Thanks All!
fidelity88