Graphics Programs Reference
In-Depth Information
12
13
14
15
16
17
18
points[8] = { x:125, y:100 }
points[9] = { x:100, y:100 }
points[10]= { x:100, y: 60 }
points[11]= { x:135, y: 60 }
points[12]= { x:150, y: 0 }
points[13]= { x:200, y: 0 }
points[14]= { x:125, y:250 }
Save the file as planeDataA.as and then close it. As noted earlier, it is critical that
the .as suffix be used, as Flash requires it.
Step 4: Load the object data
You just need to make a one-line change at the beginning of the program as shown.
1
2
3
// include the object data
#include "planeDataA.as"
Save and test your movie. Your results should look like the left side of Figure 9.9 with
the cut line showing. Comment out the lineStyle setting as shown below, then save
and test your movie again. You should get the right side of Figure 9.9 as advertised.
171
172
173
// draw the shape
//lineStyle(2, 0x0000ff, 100);
beginFill(0x00aaff,75);
Figure 9.9 The letterform with and without the border
 
Search WWH ::




Custom Search