Graphics Programs Reference
In-Depth Information
Figure 7.19 Results before shifting a selected flag
Step 7: One final refinement
When a flag is selected and zooms in, it basically goes to the center of the Stage. Since
the flags have been loaded into empty movie clips, their registration points are in the
upper-left corner of the flag, so we only see part of the flag. We need to move the flag
up and to the left.
One way to do this is to offset the position of the flag by half its width and half its
height in the displayObj() function. Insert the lines shown after the scale calculation,
and all should be fine. Save your movie and test it to see whether you get results like
that of Figure 7.18. It was work, but the results are pretty good.
Search WWH ::




Custom Search