# gotoAndStop error

**URL:** https://forum.kirupa.com/t/gotoandstop-error/289132
**Category:** flash
**Created:** [May 26, 2009, 7:10pm UTC](https://forum.kirupa.com/t/gotoandstop-error/289132 "2009-05-26T19:10:47Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![sstark](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/sstark/32/3702_2.png) [@sstark](https://forum.kirupa.com/u/sstark)
#### Post date: [May 26, 2009, 7:10pm UTC](https://forum.kirupa.com/t/gotoandstop-error/289132/1 "2009-05-26T19:10:47Z")

</div>

Hello,

I am curious if anyone has found a solution for this very problematic bug…

I have a timeline of labels, with keyframes on each label. The content of each movieClip on the label has an instance name (region\_x), AND a custom class name (random\_x) with a base class of the standard MovieClip class.

All my code is doing is gotoAndStop(label), and it produces this error:

```auto
TypeError: Error #1034: Type Coercion failed: cannot convert random_2@2eac4c41 to random_5.

    at flash.display::MovieClip/gotoAndStop()
    at com.kidriot.avatar::Creator/stopAllParts()[C:\kidriot	okiworld_libs\lib\com\kidriot\avatar\Creator.as:428]
    at com.kidriot.avatar::Creator/tempTokiEnter()[C:\kidriot	okiworld_libs\lib\com\kidriot\avatar\Creator.as:208]

```

if I take off the instance names, no error.

If I do not give them a custom class name, no error.

…however neither of those solutions are viable in my case. I need these MC’s to have an instance name AND a custom class name, without this error when using gotoAndStop()… any ideas?
