# Starting a movieclip when at the beginning

**URL:** <https://forum.kirupa.com/t/starting-a-movieclip-when-at-the-beginning/177187>\
**Category:** flash\
**Created:** [January 30, 2006, 10:23pm UTC](https://forum.kirupa.com/t/starting-a-movieclip-when-at-the-beginning/177187 "2006-01-30T22:23:18Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![lariat1997](https://avatars.discourse-cdn.com/v4/letter/l/df705f/32.png) [@lariat1997](https://forum.kirupa.com/u/lariat1997)\
**Post date:** [January 30, 2006, 10:23pm UTC](https://forum.kirupa.com/t/starting-a-movieclip-when-at-the-beginning/177187/1 "2006-01-30T22:23:18Z")

</div>

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]
