# .enabled and .\_alpha help please?

**URL:** <https://forum.kirupa.com/t/enabled-and--alpha-help-please/169437>\
**Category:** flash\
**Created:** [November 16, 2005, 10:39am UTC](https://forum.kirupa.com/t/enabled-and--alpha-help-please/169437 "2005-11-16T10:39:31Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![yankeedoodles](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/yankeedoodles/32/812_2.png) [@yankeedoodles](https://forum.kirupa.com/u/yankeedoodles)\
**Post date:** [November 16, 2005, 10:39am UTC](https://forum.kirupa.com/t/enabled-and--alpha-help-please/169437/1 "2005-11-16T10:39:31Z")

</div>

Hey people,  
i am creating this matching game thing where ppl have to click an item and its corresponding name Eg. i will place buttons of a circle, square and a triangle with the buttons namecircle, namesquare and nametriangle…  
so if a user clicks on circle i do a  
var target = “circle”; (where target will help me decide if its wrong or not)  
then the user gets an option to click on the 3 words.  
the actionscript for my namecircle is as such :

on(release){  
if (target == “circle”){  
score++;  
circle.\_alpha=0;  
circle.enabled=false  
wordcircle.\_alpha=0;  
wordcircle.enabled=false;  
}  
//the above just made the correct answers disappear and add a point.  
else{  
???.\_alpha=0;  
???.enabled=false;  
wordcircle.\_alpha=0;  
wordcircle.enabled=false  
}  
}

Ok this is where the problem comes in, i have set the name of the picture same as the target variable. so how do i replace the ??? with the variable, cos normally you place the itemname.\_alpha …but can i use a variable(since it shares the same name as the itemname) there instead?

Thanks in advance
