What is the action for,

I have a header for my website and it is going to be made in flash, and i just wanted to know what is the action command for headers? like make it play once and stop?
also how do you save flash for uploading on to your web? like swf file?