# Problem with button

**URL:** <https://forum.kirupa.com/t/problem-with-button/260499>\
**Category:** Uncategorized\
**Created:** [May 16, 2008, 8:34am UTC](https://forum.kirupa.com/t/problem-with-button/260499 "2008-05-16T08:34:32Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Alber\_Kidd](https://avatars.discourse-cdn.com/v4/letter/a/e47c2d/32.png) [@Alber\_Kidd](https://forum.kirupa.com/u/Alber_Kidd)\
**Post date:** [May 16, 2008, 8:34am UTC](https://forum.kirupa.com/t/problem-with-button/260499/1 "2008-05-16T08:34:32Z")

</div>

I have a mc on the main timline. Inside the MC I have some actions

when I do trace(this.parent)

I get [object\_maintimeline]

However when I try

this.parent.gotoAndStop(10);

I get an error.

1061: Call to a possibly undefined method gotoAndStop through a reference with static type flash.display:DisplayObjectContainer.

Any help would be appreciated.

---

<div class="post-metadata">

**Author:** ![Felixz](https://avatars.discourse-cdn.com/v4/letter/f/ecb155/32.png) [@Felixz](https://forum.kirupa.com/u/Felixz)\
**Post date:** [May 16, 2008, 12:17pm UTC](https://forum.kirupa.com/t/problem-with-button/260499/2 "2008-05-16T12:17:56Z")

</div>

```auto
Object(parent).gotoAndStop(10);

```
