Hi flash world!!!

I've written a sample movie that creates a movie dynamically and I'd like this movie to produce some onClipEvent() but I don't know how to do it....

_root.createEmptyMovieClip ("square", 1);
with (_root.square) {
lineStyle (5, 0x333333, 100);
beginFill(0x333333);
moveTo (200, 200);
lineTo (200, 300);
lineTo (300, 300);
lineTo (300, 200);
lineTo (200,200);
}

Here is the sample.... someone could help me?

Thank you very much!!!!