Graphics Programs Reference
In-Depth Information
Figure 11.37 The position of the layer elements after resizing the bounding rectangles
23
24
25
26
// set the background limits of movement
// all others are relative to it
var xmax:Number = obj[0]._width/2;
var xmin:Number = Stage.width - xmax;
A few quick experiments provide the information we need. When the background moves
from the center of the Stage to align with the left edge, it moves 350 pixels as shown in
Figure 11.38. When we do the same thing with one of the two nearest images, we find
that the distance the image moves is 750 pixels as shown in Figure 11.39.
Figure 11.38 Movement of the background to its maximum location
Search WWH ::




Custom Search