Control a Timeline with Mouse Position
_alpha
We're going to introduce you to another property that can be set dynamically using ActionScript: Alpha
You already know that alpha is how Flash describes the transparency of an object, and that it spans a range from 0 (fully transparent) to 100 (fully opaque).
The basic syntax for using flash to reference the movieClip alpha is: InstanceName._alpha
If we wanted to set the transparency of our main movieClip to 50%, we would set variable: main._alpha = 50;
Let's see if you can use the y position of the mouse to dynamically set the alpha of main from 0 to 100! Study the work you completed to set xPos and apply it to this new challenge. Your project should function like the one below: