# Currentframe Question

**URL:** <https://forum.kirupa.com/t/currentframe-question/192068>\
**Category:** Uncategorized\
**Created:** [June 25, 2006, 8:13pm UTC](https://forum.kirupa.com/t/currentframe-question/192068 "2006-06-25T20:13:36Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![dr77](https://avatars.discourse-cdn.com/v4/letter/d/ac8455/32.png) [@dr77](https://forum.kirupa.com/u/dr77)\
**Post date:** [June 25, 2006, 8:13pm UTC](https://forum.kirupa.com/t/currentframe-question/192068/1 "2006-06-25T20:13:36Z")

</div>

Hello all…

I have a movie clip which, when closed, should send you to a specific frame on the main timeline… I have used frame labels on the main timeline…

Here is a bit of my code so far:

**Code:**

if(\_root.\_currentframe == (“farDef”)){  
\_root.gotoAndStop (“xfarDef”);  
}

Can anyone offer any advice as to why this doesn’t work?

Cheers…

David
