Graphics Programs Reference
In-Depth Information
65
66
67
68
69
70
// create the motion along the circular path
this.onEnterFrame = function()
{
// update the angle increment based on how far
// _xmouse is from the center of the Stage
var angleChange:Number = Math.round((_xmouse - xo)/
speedfactor);
startAngle += angleChange;
71
Step 3: Change the graphics
You may be thinking that this is all very well and good, but all of the objects are the
same. For most applications, different objects are needed. Let's see how we might
modify what we have at this point. As a first step, let's change the background into a
more application-oriented image. Go to the Stage and select the background. In the
Properties window, choose the Swap option as shown in Figure 6.13.
Figure 6.13 Selecting the Swap option
The Swap Symbol dialog box will appear. Select bg2 and click OK. The new background,
shown in Figure 6.14, will appear on the Stage.
 
Search WWH ::




Custom Search