# Acquiring current frame value

**URL:** <https://forum.kirupa.com/t/acquiring-current-frame-value/201262>\
**Category:** Uncategorized\
**Created:** [September 19, 2006, 9:44pm UTC](https://forum.kirupa.com/t/acquiring-current-frame-value/201262 "2006-09-19T21:44:42Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![jib](https://avatars.discourse-cdn.com/v4/letter/j/cab0a1/32.png) [@jib](https://forum.kirupa.com/u/jib)\
**Post date:** [September 19, 2006, 9:44pm UTC](https://forum.kirupa.com/t/acquiring-current-frame-value/201262/1 "2006-09-19T21:44:42Z")

</div>

i was wondering if anyone could help me with acquiring the current frame number of a movie.

the code i’m trying to write goes something like this:

currentframe = movie.currentframe; // here’s where the problem is  
if (currentframe == 5)  
{  
gotoAndPlay(25);  
}  
else if (currentframe == 6)  
{  
gotoAndPlay(26);  
}  
else  
{  
gotoAndPlay(27);  
}

i’ve been searching all over the net for a solution. i can’t figure out how to give “currentframe” the number value of the current frame its in.
