# Changing frame (Cast fail)

**URL:** <https://forum.kirupa.com/t/changing-frame-cast-fail/300039>\
**Category:** flash\
**Created:** [November 15, 2009, 3:47am UTC](https://forum.kirupa.com/t/changing-frame-cast-fail/300039 "2009-11-15T03:47:20Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![bcapecci](https://avatars.discourse-cdn.com/v4/letter/b/ac8455/32.png) [@bcapecci](https://forum.kirupa.com/u/bcapecci)\
**Post date:** [November 15, 2009, 3:47am UTC](https://forum.kirupa.com/t/changing-frame-cast-fail/300039/1 "2009-11-15T03:47:20Z")

</div>

How do I change the frame of my timeline from my player class. I cannot just write gotoAndStop() because it will change the frame of the player not the timeline.

I figured I would try this:  
MovieClip(parent).gotoAndStop(3);  
TypeError: Error #1034: Type Coercion failed: cannot convert flash.display::Stage@ed6fb51 to flash.display.MovieClip.

Why can I not cast this? Tracing parent and root both return stage.
