How to make Hidden navbar at the sides?

Hi, I’m wondering if a hidden navbar can be done at the left side of my flash whereby i can trigger it to open by sliding out with all the submenus and close it. I know it can but done in javascript but can it be done in actionscript?

Need help urgently!! Hope experts can help me with the coding and how i go abt coding. I have only basic understanding of actionscript. Thanks