Starting a movieclip when at the beginning

Hey All,

I have an animated mc. I placed it on the main scene. I want to play it when the .swf first comes up. I tried using onEnterFrame, but I cannot get it to work.

The code looks like this:
[COLOR=Navy]onEnterFrame = function() {
my_mc.gotoAndPlay(11);
}

[COLOR=Black]The code is on the main timeline.[/COLOR]
[/COLOR]