Copy link to clipboard
Copied
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
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.
Copy link to clipboard
Copied
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.
Find more inspiration, events, and resources on the new Adobe Community
Explore Now