Graphics Programs Reference
In-Depth Information
Figure 6.35 Objects rotating from Step 2
Step 3: Create the sinusoidal motion
We're almost done. Let's equally space the objects in the x-direction. We'll do this when
we load them. Through a little trial and error, inserting the following line does the job.
25
26
27
28
this.createEmptyMovieClip("object"+i, i);
this["object"+i].loadMovie("stamps/fame"+(i+1)+".jpg");
this["object"+i].x = i*60 - 400;
}
Since we defined the x - coordinates of the objects at the outset, we need to disconnect
them from the circular rotation. Either comment out or delete the following line.
36
37
38
39
40
// put it on the circle
//thisObj.x = xc + r * Math.cos(a);
thisObj.y = yc;
thisObj.z = zc + r * Math.sin(a);
We are currently changing the alpha for aerial perspective, but this effect works better
with it turned off, so also either comment out or delete the following line.
 
Search WWH ::




Custom Search