Read Foundation Game Design with ActionScript 3.0, Second Edition Online
Authors: Rex van der Spuy
The final effect will look like
Figure 7-11
. There are no rules on how to go about choosing these settings—just play around with them until you're happy with the way the effect looks.
Figure 7-11.
Give the rectangle an inner glow.
If you need to change this effect, or any others you might add to a drawing object, make sure the object is selected and open the Appearance panel (
Figure 7-12
). Click the effect name to modify it. You can modify all the other visual properties of the object from the Appearance panel as well.
Figure 7-12.
The Appearance panel lets you modify all of an object's visual properties, such as the effects, colors, and opacity.
Next you're going to draw an inner square with rounded corners. You'll fill it with a semi-transparent gradient and add a drop-shadow effect to make it look like it's floating above the outside square.
Figure 7-13.
Select the Rounded Rectangle Tool.
Figure 7-14.
Set the rounded rectangle's corner radius in the Preferences window.
Figure 7-15.
Make sure the new rounded rectangle doesn't have a stroke color.
This gives the square an exact height and width and centers it, as shown in
Figure 7-16
.
Figure 7-16.
Enter the exact dimensions and position in the Control Panel.
You now have two drawing objects on the artboard. If you double-click on either of them with the black arrow, Illustrator will switch to
isolation mode.
This dims and disables all the other objects on the artboard except the selected object so that it's easier for you to work on the selected item. To exit isolation mode, double-click away from the selected object.
Next, you're going to fill this new square with a semi-transparent gradient fill.
Figure 7-17.
Create the gradient by dragging swatches into the color stops.
Figure 7-18.
Select the gradient tool to display the gradient annotator.
Figure 7-19.
Rotate and reposition the gradient.
Now add a shallow drop-shadow effect to give the inner square a bit more depth.
Figure 7-20.
Add a drop shadow to the inner square.
Make sure that the Preview option is selected so that you can see the changes in the square while you're setting these values. Again, it's simply a question of choosing settings that seem to have a nice effect.