Actionscript Help

Hello guys
i’m starting to learn actionscript,
1-i created a button using flash cs4, and what i’m searching for is how to do (onclick event : sum two values and dispaly them ).
2-i wanna know what to write on actionscript( events needed ).
3-where i can define the id for the button

I want the answer as fast as possible
thanks alot

What code have you tried so far? This sort of simple code is covered in the tutorials included with flash