1. Home
  2. Computing & Technology
  3. Animation

Using setTransform to Change Color and Opacity

By , About.com Guide

5 of 7

Since we mentioned changing the value of select when the button is clicked, let’s add an on (release) to do that:
on (release){
select=!select;
}

Now, every time the button’s clicked, the value of select will become the opposite of what it was before. If it was true, it becomes false. If it was false, it becomes true. We’ll use that in our last step to determine when the button highlight is turned on or off.

Explore Animation
About.com Special Features

Holiday Central

What to eat, where to go, fun things to do and how to save money on the perfect gifts. More >

Family Tech Center

Stay connected and entertained with reviews on tips on the latest HDTVs, cellphones and more. More >

  1. Home
  2. Computing & Technology
  3. Animation
  4. Flash Animation Tutorials
  5. Using setTransform to Change Color and Opacity

©2009 About.com, a part of The New York Times Company.

All rights reserved.