Use AS to create a symbol in library (help!)

Hi there. Could someone please tell me how I can create a MovieClip Symbol and put it into the Library using ActionScript?

I want to do this so I can dynamically create content for a ScrollPane.

Sorry if this is a simple/stupid question, I am quite new to all this!

Thanks.:kir: