# Play movie clip if at certain frame

**URL:** <https://forum.kirupa.com/t/play-movie-clip-if-at-certain-frame/25433>\
**Category:** flash\
**Created:** [July 12, 2003, 6:49pm UTC](https://forum.kirupa.com/t/play-movie-clip-if-at-certain-frame/25433 "2003-07-12T18:49:29Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![NeoDreamer](https://avatars.discourse-cdn.com/v4/letter/n/ccd318/32.png) [@NeoDreamer](https://forum.kirupa.com/u/NeoDreamer)\
**Post date:** [July 12, 2003, 6:49pm UTC](https://forum.kirupa.com/t/play-movie-clip-if-at-certain-frame/25433/1 "2003-07-12T18:49:29Z")

</div>

How do you translate the english (below) into actionscript?

If the the movie clip with the instance name “hello” is currently at a frame greater than 2 (considering the frames inside “hello,” not the main timeline), then goto and play its frame 76.

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [July 12, 2003, 7:02pm UTC](https://forum.kirupa.com/t/play-movie-clip-if-at-certain-frame/25433/2 "2003-07-12T19:02:41Z")

</div>

```auto
hello.onEnterFrame = function() {
_currentframe >2 ? _root.gotoAndPlay(76) : null
}

```
