The purpose is to simulate turning a page rounded using a script.
This example, based upon 2 images, is not so easy as you may think
We 'll use beginGradientFill and sprites.
⇒ animation ⇐
This is the framework you 'll get at bottom left corner of the stage.
Basic variables :
R : ray circle.
xc : X-coordinate circle center.
Parameters reckoned :
- Tangential point T.
angle θ = 45°
- point A
distance = xT + yT
1 - Set up general size of the scene 240x320 (any background color).
Frame Rate 100.
2 - Insert image organp1.jpg in the middle of the scene. ( Menu Insert / Image )
3 - Insert image organp2.jpg in the middle of the scene. ( Menu Insert / Image )
Toggle Target. Name it image2. Convert to Sprite.
Outline 'd look like
- Hexadecimal colors for gradient.
- Create empty clip named coin : CreateEmptyMovieClip
- et up array ( should have same items number :
colors, alphas, ratios.
- set up an array to limt gradient sizes..
- fill in : beginGradientFill
- draw border.
- end filling.
In Outline, select Scene_1. Enter the following script :
Et voilà, that 's it.
Of course, this example is pretty basic. It's up to you to place many images. It 'll be quite tough.
BTW : I took this pictures in South Arizona, close to Mexican border. (Organ Pipes Cactus Nat. Mon.)