Flash Buttons

Hello, In Flash I want to create a button that does something when it is clicked on. For example, if a user clicks on the button or presses on the keyboard “enter” a new URL will pop up that’s just one example.

I have a just general idea how to make a button. But, i am unsure on how you make your button do something when pressed on?

Can somebody please give some examples of the MouseEvent code, or provide me with some links in regards Flash Button tutorials?

Thanks