Skip to main content
Participant
July 8, 2013
Answered

Array and alpha

  • July 8, 2013
  • 1 reply
  • 321 views

Hello everyone

I have got a question:

Lets assume the we have an arry of movieclips created with for() loop. How to tween alpha of all moveiclips to 0 except for the one that was clicked. After that when we click somewhere one a stage all moveiclips in array have alpha tweened to 1

thx for help in advance

This topic has been closed for replies.
Correct answer kglad

in the click listener, alpha tween all to 0 and tween the clicked one (e.currentTarget) to 1.  make sure the tween to 1 overwrites the previous tween to zero.

i recommend using tweenlite.  its overwrite parameter is enabled (all), by default.

1 reply

kglad
Community Expert
kgladCommunity ExpertCorrect answer
Community Expert
July 8, 2013

in the click listener, alpha tween all to 0 and tween the clicked one (e.currentTarget) to 1.  make sure the tween to 1 overwrites the previous tween to zero.

i recommend using tweenlite.  its overwrite parameter is enabled (all), by default.