# \_currentframe vs. frame label. Ready...FIGHT!

**URL:** <https://forum.kirupa.com/t/-currentframe-vs-frame-label-ready-fight/297288>\
**Category:** flash\
**Created:** [September 29, 2009, 5:06pm UTC](https://forum.kirupa.com/t/-currentframe-vs-frame-label-ready-fight/297288 "2009-09-29T17:06:55Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Bolshoi333](https://avatars.discourse-cdn.com/v4/letter/b/c4cdca/32.png) [@Bolshoi333](https://forum.kirupa.com/u/Bolshoi333)\
**Post date:** [September 29, 2009, 5:06pm UTC](https://forum.kirupa.com/t/-currentframe-vs-frame-label-ready-fight/297288/1 "2009-09-29T17:06:55Z")

</div>

Hey all! Currently, I’m trying to make an engine for a fighting game that utilizes combos. Right now, I’m marking the cutoff point from an action that leads into a combo (which will cut through the ending animation of the previous attack) between a non-combo (which will require the attack animation to run to completion) with an number specified in the code.

```auto
char.cut = 7;
if(char._currentframe >= char.cut){
   //next action;
}

```

What I would like to do, to make it easier to make small adjustments in attack lengths without having to change every detail is to label the cutoff frame. But I don’t know how to compare \_currentframe (a number) to frame label (a string).

```auto
if(char._currentframe >= char.label){
   //next action;
}

```

Clearly, a direct comparison is not possible; but is there any way to associate the frame’s label with its number? Any help or advice would be much appreciated. Otherwise I’ll have to do it the long way ☹

Thanks in advance!
