# Check what frame thats current

**URL:** <https://forum.kirupa.com/t/check-what-frame-thats-current/62118>\
**Category:** Uncategorized\
**Created:** [August 25, 2004, 3:37am UTC](https://forum.kirupa.com/t/check-what-frame-thats-current/62118 "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/62118/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:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [August 25, 2004, 6:59pm UTC](https://forum.kirupa.com/t/check-what-frame-thats-current/62118/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.
