HELP: Creating components with embedded action script

can someone help me please… i have an exam on monday and i have been asked to Create a component with embedded action script, that everytime i call an instance of it, it has the action script allready in it… i need a step by step on this … if anyone can help me with this i will really be greatfuullllll.

Here’s a comprehensive step by step tutorial for what you want.

http://www.macromedia.com/support/flash/applications/creating_comps/

Good luck for exam:)