# Simple code not working!

**URL:** <https://forum.kirupa.com/t/simple-code-not-working/192042>\
**Category:** flash\
**Created:** [June 25, 2006, 12:47pm UTC](https://forum.kirupa.com/t/simple-code-not-working/192042 "2006-06-25T12:47:25Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![lukebattye](https://avatars.discourse-cdn.com/v4/letter/l/9d8465/32.png) [@lukebattye](https://forum.kirupa.com/u/lukebattye)\
**Post date:** [June 25, 2006, 12:47pm UTC](https://forum.kirupa.com/t/simple-code-not-working/192042/1 "2006-06-25T12:47:25Z")

</div>

Hi

I have down\_btn on the main timeline and want it to become invisible if my sales\_MC has reached frame 23. Here’s the code…

if (sales\_mc.\_currentframe (23))true;  
down\_btn.visible = false;

What’s the problem with it!?!

If you know whats wrong and can help - thank you!

Luke
