Hi,
You can create thios effect using a mixture of actionscript, html, css and javascript.
I haven't touched flash for a while, so i am using as2 rather than as3, don't know what the synhtax for this is i'm afraid.
Within your flash file, you might have this code for handling two buttons...