# If then

**URL:** <https://forum.kirupa.com/t/if-then/243521>\
**Category:** Uncategorized\
**Created:** [November 7, 2007, 8:51pm UTC](https://forum.kirupa.com/t/if-then/243521 "2007-11-07T20:51:04Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![bobbo0722](https://avatars.discourse-cdn.com/v4/letter/b/919ad9/32.png) [@bobbo0722](https://forum.kirupa.com/u/bobbo0722)\
**Post date:** [November 7, 2007, 8:51pm UTC](https://forum.kirupa.com/t/if-then/243521/1 "2007-11-07T20:51:04Z")

</div>

Hey guys, I am working on a flash file for a site and I need a little guidance with the AS. I have three buttons, when the relating content is open, the button is in the open state. When a user clicks on another button, I want the initial button to play through the time line to get the normal state. I think I need to set some variables and have an if then statement on the button AS, but I can’t figure it out. Below is a link to a site that uses a similar file.

[http://www.componentart.com/](http://www.componentart.com/)

Thanks for the help!
