1. Technology
You can opt-out at any time. Please refer to our privacy policy for contact information.

Changing Alpha by Degrees with setProperty

By

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.