# Check what frame thats current

**URL:** <https://forum.kirupa.com/t/check-what-frame-thats-current/120522>\
**Category:** Uncategorized\
**Created:** [August 25, 2004, 3:37am UTC](https://forum.kirupa.com/t/check-what-frame-thats-current/120522 "2004-08-25T03:37:53Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Henxon](https://avatars.discourse-cdn.com/v4/letter/h/51bf81/32.png) [@Henxon](https://forum.kirupa.com/u/Henxon)\
**Post date:** [August 25, 2004, 3:37am UTC](https://forum.kirupa.com/t/check-what-frame-thats-current/120522/1 "2004-08-25T03:37:53Z")

</div>

Hi

how do I check what frame that’s current, according to their names, not the number, that is:

if(\_root.\_currentFrame!=“producers”)

is that a correct way to compare strings? or is there a function, like javas compareTo?

regards henrik

---

<div class="post-metadata">

**Author:** ![Dunga](https://avatars.discourse-cdn.com/v4/letter/d/e0b2c6/32.png) [@Dunga](https://forum.kirupa.com/u/Dunga)\
**Post date:** [August 25, 2004, 6:59pm UTC](https://forum.kirupa.com/t/check-what-frame-thats-current/120522/2 "2004-08-25T18:59:31Z")

</div>

Flash can’t do that… which is rather a limitation. You will have to use the actual number of the frame.
