flash workshop day three

10
Flash Workshop Day 3 Conducted by Lawrence Zhuang

Upload: kamen-rider

Post on 20-Jun-2015

125 views

Category:

Education


1 download

TRANSCRIPT

Page 1: Flash workshop Day Three

Flash Workshop Day 3

Conducted by Lawrence Zhuang

Page 2: Flash workshop Day Three

Recap

● Using grid to aide us in drawing● Snapping tool function● Window Select● Making a rounded rectangle● Converting to symbol● Library● Creating Gradient● "No-color" selection option● Grouping● How to draw a circle● Clicking twice to select both stroke and fill● Importing jpg and png image file● Layers

Page 3: Flash workshop Day Three

Recap

Page 4: Flash workshop Day Three

Recap

Page 5: Flash workshop Day Three

● Back to where we last stop...

Page 6: Flash workshop Day Three

Actionscript 3.0

● ActionScript is a programming language used to develop applications that will run on the Adobe Flash Player platform.

Page 7: Flash workshop Day Three

What are properties?

Think of properties as characteristics that describe instances (e.g. size, color, rotation).

Some properties of MovieClip instances are:● scaleX - scales the instance horizontally by a specified number● scaleY - scales the instance vertically by a specified number● x - controls the x coordinate of the instance● y - controls the y coordinate of the instance● rotation - rotates the instance to the angle specified● width - adjusts the width of the instance● height - adjusts the height of the instance● alpha - adjusts the opacity level of the instance

Page 8: Flash workshop Day Three

What is a variable?

Think of a variable as a container. It's like a box where you can put something in. But instead of a physical object, a variable can contain information.

A variable is made up of a name and a value. The name is like the label on the box, and the value is the item inside that box.

For example:

quantity = 12

price = 1.25

Page 9: Flash workshop Day Three

What is the data type?

● The data type refers to the type of value that a variable can contain.

● String data is made up of characters. ● The Boolean data type only chooses between 2 values - true

or false.

Examples:

var firstName:String;

var isActive:Boolean;

Page 10: Flash workshop Day Three

Expression???

● An expression is something that computes or evaluates into a single value. In a very simple form, a reference to a variable is already an expression.

For example:

var quantity:Number = 5;