Flash actionscript

how do u pass variables thru a click of a button. im creating an interactive demo as well as an autorun demo using the same flash movies. how do u achieve this so that flash knows what the user has clicked.

pass where?