# Object stoping instead of playing

**URL:** <https://forum.kirupa.com/t/object-stoping-instead-of-playing/204967>\
**Category:** flash\
**Created:** [October 25, 2006, 12:57am UTC](https://forum.kirupa.com/t/object-stoping-instead-of-playing/204967 "2006-10-25T00:57:50Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![alpharaven](https://avatars.discourse-cdn.com/v4/letter/a/3bc359/32.png) [@alpharaven](https://forum.kirupa.com/u/alpharaven)\
**Post date:** [October 25, 2006, 12:57am UTC](https://forum.kirupa.com/t/object-stoping-instead-of-playing/204967/1 "2006-10-25T00:57:50Z")

</div>

I have a onEnterframe action that tells a movie clip to gotoandPlay(2) but for some god for saken reason the clip does not play I have tried different ways of doing this but I cannot figure this out to save my life. The only way it will play correctly is if I create a button that tells it to gotoAndPlay (2) otherwise it just stops and frame 2. Can someone please help me figure this out. Thanks

Here is the code

```auto
stop ();
_root.container._x = 0;
_root.currMovie = "home";
container.loadMovie (_root.currMovie+".swf");
//-------------------------- 
_root.onLoad = function () {
    backbox.gotoAndPlay (1);
};//////////////Here is where I am having problems
this.onEnterFrame = function () {
    if (backbox._currentframe === 25) {
        menu_holder.gotoAndPlay(2);
        trace ("menu="+menu_holder._x);
    } else {
        menu_holder.stop ();
    }
/////////
    resizeMe ();
};
//--------------------------
var align = Stage.align="L";
resizeMe = function () {
    backbox._x = align;
    backbox._width = Stage.width;
    //menu_holder._x = 0;
    menu_holder.menubar._width = Stage.width;
    menu_holder.menubar._x = align;
    container._x = 0;
};
var stageListener:Object = new Object ();
stageListener.onResize = function () {
    resizeMe ();
};
Stage.align = "L";
Stage.scaleMode = "noScale";
Stage.addListener (stageListener);

```
