1. Computing

Changing Alpha by Degrees with setProperty


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).

©2014 About.com. All rights reserved.