Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

Array and alpha

New Here ,
Jul 07, 2013 Jul 07, 2013

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

TOPICS
ActionScript
303
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines

correct answers 1 Correct answer

Community Expert , Jul 07, 2013 Jul 07, 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.

Translate
Community Expert ,
Jul 07, 2013 Jul 07, 2013
LATEST

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.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines