# If movieclip leaves movie boundaries, gotoAndPlay new frame

**URL:** <https://forum.kirupa.com/t/if-movieclip-leaves-movie-boundaries-gotoandplay-new-frame/310237>\
**Category:** flash\
**Created:** [June 5, 2010, 12:44am UTC](https://forum.kirupa.com/t/if-movieclip-leaves-movie-boundaries-gotoandplay-new-frame/310237 "2010-06-05T00:44:01Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Iokina](https://avatars.discourse-cdn.com/v4/letter/i/9f8e36/32.png) [@Iokina](https://forum.kirupa.com/u/Iokina)\
**Post date:** [June 5, 2010, 12:44am UTC](https://forum.kirupa.com/t/if-movieclip-leaves-movie-boundaries-gotoandplay-new-frame/310237/1 "2010-06-05T00:44:01Z")

</div>

I am using an older version of flash. This is technically a game question but it is in older flash.

My MC is a movable char that can jump, fall, and land on platforms. I would like to program a way for if the char falls and doesn’t meet ground (i.e. falls out of view entirely) for a new frame to play on the main timeline OR for a movie clip to load asking it to try again OR for the game to start over completely. Whichever method is easiest.

Lemme know if you need to code.

Something like if y value of MC = -5 on the movie plane, load movie clip “try again”
