INFO 424 SCHEDULE

EXERCISE: Create Tweens

Experiment with tweening various properties of objects. Here is an example (click on each bar to see them change - I've pasted a picture of my code below):

1. Draw a shape on the stage.

2. Convert it into a button that will trigger a tween/tweens when you click it.

3. Open your code panel and create tweens in ActionScript to change various parameters of the buttons

Refer to the tweenInAS.fla code module for reminders about tweens

Refer to the online ActionScript 3.0 Language reference for properties of symbol buttons (the class is called "SimpleButton" - click on "Show Inherited Public Properties" to see all of your options)

Here are some:

scaleX: scale in the 'x' dimension

scaleY: scale in the 'y' dimension

(when you change both of these simultaneously you can create zooming)

rotationZ: rotate in the plane of the page

alpha: transparency (scale of 0 to 1)

 

Code for the bar tween example:

FINAL PRODUCT: tweens.fla