1. Home
  2. Computing & Technology
  3. Animation

Changing Alpha by Degrees with setProperty

By Adrien-Luc Sanders, About.com

1 of 7

Using setProperty to change various attributes of shapes isn’t set to arbitrary values; you can use variables to control the changes in increments. Let’s try setting up a situation where each time that a button is clicked, the opacity of a shape drops by 10%, until it reaches 0%--at which point it returns to 100%.

Start off by creating a new shape on the stage and turning it into a symbol (F8).

Explore Animation
About.com Special Features

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

Easy ways to connect two computers for networking purposes. More >

  1. Home
  2. Computing & Technology
  3. Animation
  4. Flash Animation Tutorials
  5. Changing Alpha by Degrees with setProperty

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

All rights reserved.