# AS alpha tween

**URL:** <https://forum.kirupa.com/t/as-alpha-tween/193292>\
**Category:** flash\
**Created:** [July 12, 2006, 1:27pm UTC](https://forum.kirupa.com/t/as-alpha-tween/193292 "2006-07-12T13:27:06Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![ollie1](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/ollie1/32/2180_2.png) [@ollie1](https://forum.kirupa.com/u/ollie1)\
**Post date:** [July 12, 2006, 1:27pm UTC](https://forum.kirupa.com/t/as-alpha-tween/193292/1 "2006-07-12T13:27:06Z")

</div>

I have an array (workArray), when one of the MCs in the array is hovered over, i want it to change from 50% transparency to 80%, then when one is clicked it should change from 80% to 100%. If another is clicked then the one first selected should go back to 50% and the new one selected should go from 80% to 100%

This is my first attempt with arrays, So here is what I have so far 🙂

```auto
workArray = [t1, t2, t3, t4, t5, t6, t7, t8];

this.onEnterFrame = function() {
	workArray._alpha = 50;
	}

this.workArray.onRollOver = function() {
	workArray.alphaTo(80);
}
this.workArray.onRelease = function() {
	workArray.alphaTo(100);
}

```

None of the above actually seems to be working… Am I using the wrong alpha syntax?

Any help on this would be greatly appreciated 😃
