FMX2004pro:how can i duplicate movieclip and add actionscript 2 the duplicated movie?

how can i duplicate movieclip and add actionscript 2 the duplicated movie?
i tried 2 add script 2 the main movie
but i need better way any one can help
Thank u Sooooooooooooo much