A Flash Paint Application
More Properties
Now let's create an easy way to scale the brush. The first thing we'll do is declare a variable called brushScale with a value of 150:
var brushScale:Number = 150;
Now we'll set the _xscale and _yscale of each myPaint MovieClip equal to the variable brushScale. There's a little programming shortcut you can take, which you may not have seen yet. You may be used to completing that task with something like this:
myPaint._yscale = brushScale;
myPaint._xscale = brushScale;
But you can save a line a code since both properties (_yscale and _xscale) are set to the same value (brushScale):
myPaint._yScale = myPaint._xScale = brushScale;
Nice, huh? You're Actions window should look like this now:
Test your paint application to make sure you didn't break anything: