Now that the CPU has been placed into a symbol and optimized, it's time to be creative. So far, the animation describes only the object's three-dimensional rotation. That's all we ever care to achieve with tools external to Flash. As you're about to see, with Flash's scaling, spinning, Alpha, and color effects, we're about to instill upon the CPU a full range of motion within an unbelievably meager filesize. The use of Flash symbols is crucial. Our rotating CPU has already been imported into a symbol called cpu_rotate, which we'll be able to reuse, alter, and duplicate without noticeably increasing the size of the file. One technique even capitalizes on the capability of instances to play a single frame rather than the entire symbol. From this point on, we'll be referring to the actual ad upon which the example CPU (created in Adobe Dimensions) was based. In this spot, we were able to create an opening move that had real impact. Simply rotating the CPU wasn't enough. We wanted to make it seem as if the cameraor the viewer's eyewere moving in space, and we accomplished that with just a few manipulations of the symbol. Follow these steps to see how we did it:
The object should now rotate into view, moving in both two and three dimensions. |