# Conditional Objects?

**URL:** <https://forum.kirupa.com/t/conditional-objects/259672>\
**Category:** flash\
**Created:** [May 7, 2008, 5:33pm UTC](https://forum.kirupa.com/t/conditional-objects/259672 "2008-05-07T17:33:58Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![itbkris](https://avatars.discourse-cdn.com/v4/letter/i/e19adc/32.png) [@itbkris](https://forum.kirupa.com/u/itbkris)\
**Post date:** [May 7, 2008, 5:33pm UTC](https://forum.kirupa.com/t/conditional-objects/259672/1 "2008-05-07T17:33:58Z")

</div>

Is it possible to have objects on the field conditional upon a variable?  
Example:  
if (variable == 0)  
{  
hide pic.jpg;  
}

I imagine it could be done by making the item invisible with an alpha of 0, but if the item were a button it would still be clickable. Any ideas?
