# gotoAndPlay problem

**URL:** <https://forum.kirupa.com/t/gotoandplay-problem/201079>\
**Category:** Uncategorized\
**Created:** [September 18, 2006, 11:43am UTC](https://forum.kirupa.com/t/gotoandplay-problem/201079 "2006-09-18T11:43:34Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![hinksta](https://avatars.discourse-cdn.com/v4/letter/h/eb8c5e/32.png) [@hinksta](https://forum.kirupa.com/u/hinksta)\
**Post date:** [September 18, 2006, 11:43am UTC](https://forum.kirupa.com/t/gotoandplay-problem/201079/1 "2006-09-18T11:43:34Z")

</div>

oops [F8]

im trying to get this code to work on btn1, it works up to gotoAndPlay(“twoB”); then gives.  
Error: A ‘with’ action failed because the specified object did not exist.

the first gotoAndPlay(“oneA”); works ok in one\_mc but not when in two\_mc

```auto
on(release){
    if(_root.main_mc.one_mc.parked=="in"){
        with(_root.main_mc.one_mc){
            gotoAndPlay("oneA");
        }
    }            
    else if(_root.main_mc.two_mc.parked=="in"){
        with(_root.main_mc.two_mc){
            gotoAndPlay("twoB");
        }
        with(_root.main_mc.one_mc){
            gotoAndPlay("oneA");
        }
    }
    else if(_root.main_mc.three_mc.parked=="in"){
        with(_root.main_mc.three_mc){
            gotoAndPlay("out");
        }
        with(_root.main_mc.one_mc){
            gotoAndPlay("oneA");
        }
}
    else{
        with(_root.main_mc.one_mc){
            gotoAndPlay("oneA");
        }
    }
        
}

```

[updated download](http://www.ontheball.info/hinksta.rar)
