
July 22nd, 2008, 06:51 AM
|
|
Gotta get to the next screen..
|
|
Join Date: Nov 2003
Location: Legion of Dynamic Discord
|
|
Hi, if you wanted it to start on a red background and then as it moves right transition to a blue background (I'm just using some example colors here), all you have to do is create a gradient colored rectangle that covers the full width of your animation. - Select the rectangle rool on the tool panel (R) and turn off lines in the two color boxes at the bottom. You should just have a straight color fill now.
- Draw a rectangle on the stage.
- With the rectangle selected open the Color panel (Shift-F9) and change the Type dropdown to "Linear". You should now see your rectangle showing a gradient, usually black on the left and white on the right.
- The bottom of the color panel will now show a gradient color. By clicking the little peg on the left (the black one) you can then change the left hand gradient. Same for the right hand one. By clicking at other points between the two you can create new gradient points. For now let's just stick with the two though. For our example we want the left one to be red and the right one to be blue.
- Say the line drawing animation covers two full widths of the stage, you will then need to make the rectangle that wide. You can either do that by selecting the rectangle and manually typing the width value into the width box on the properties panel or you can drag the rectangle corners (or anchor point if you use the transform tool (Q)).
- Now you just need to tween it's animation to match the line i.e. slide from left to right. That could just be a case of having two keyframes; one at the start and one at the end with the first having a shape tween on it's keyframe.
That's the gist of doing it one way.
__________________
-Tann
-Vote for your favorite ActionScript editor here.
|