# \_currentframe help

**URL:** <https://forum.kirupa.com/t/-currentframe-help/64940>\
**Category:** flash\
**Created:** [September 21, 2004, 4:57pm UTC](https://forum.kirupa.com/t/-currentframe-help/64940 "2004-09-21T16:57:17Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![theHollow](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/thehollow/32/106_2.png) [@theHollow](https://forum.kirupa.com/u/theHollow)\
**Post date:** [September 21, 2004, 4:57pm UTC](https://forum.kirupa.com/t/-currentframe-help/64940/1 "2004-09-21T16:57:17Z")

</div>

i have a button inside a movieclip, when i click the button i want it find what the current frame is on the main timeline and then perform an action depending on what the current frame is. so for ive used the code below and ive modified it a bit but i still cant get it working. can anyone help me.

on (release) {  
if (\_root.\_currentframe == “BOMB”) {  
trace (“true”);  
} else {  
trace (“false”);  
}  
}

Thnx,  
Brendan Smith

---

<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:** [September 21, 2004, 4:59pm UTC](https://forum.kirupa.com/t/-currentframe-help/64940/2 "2004-09-21T16:59:43Z")

</div>

\_currentframe is only for frame _numbers_. There is currently no way to check for frame _names_ in Flash.

---

<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:** [September 21, 2004, 5:13pm UTC](https://forum.kirupa.com/t/-currentframe-help/64940/3 "2004-09-21T17:13:49Z")

</div>

thnx senocular it works perfectly now
