• No results found

Programatic Animation

N/A
N/A
Protected

Academic year: 2021

Share "Programatic Animation"

Copied!
24
0
0

Loading.... (view fulltext now)

Full text

(1)

}

F l a s h P i t t 0 9 - I n t e r m e d i a t e A c t i o n S c r i p t 3 . 0

Programatic Animation

(2)

}

F l a s h P i t t 0 9 - I n t e r m e d i a t e A c t i o n S c r i p t 3 . 0

Programatic Animation

What is Animation?

What is Programatic Animation?

Interactive Animation

Enterframe vs Timer /// make this still

Conclusions

(3)

}

F l a s h P i t t 0 9 - I n t e r m e d i a t e A c t i o n S c r i p t 3 . 0

What is

(4)

}

F l a s h P i t t 0 9 - I n t e r m e d i a t e A c t i o n S c r i p t 3 . 0

an

i

mate

-1. To give spirit and support to

2. To give live to.

3. To move to action

(5)

}

F l a s h P i t t 0 9 - I n t e r m e d i a t e A c t i o n S c r i p t 3 . 0

What is

Programatic

Animation?

(6)

}

F l a s h P i t t 0 9 - I n t e r m e d i a t e A c t i o n S c r i p t 3 . 0

Programatic

(7)

}

F l a s h P i t t 0 9 - I n t e r m e d i a t e A c t i o n S c r i p t 3 . 0

Programatic Animation

mc.x = 10

mc.x = 20

mc.x = 30

mc.x = 40

mc.x = 50

Frame 1

Frame 2

Frame 3

Frame 4

Frame 5

moves on the x

(8)

}

F l a s h P i t t 0 9 - I n t e r m e d i a t e A c t i o n S c r i p t 3 . 0

Programatic Animation

Example

import fl.transitions.Tween; import fl.transitions.easing.*; var myTween:Tween;

(9)

}

F l a s h P i t t 0 9 - I n t e r m e d i a t e A c t i o n S c r i p t 3 . 0

Programatic Animation

Example

import fl.transitions.Tween; import fl.transitions.easing.*; var myTween:Tween;

myTween = new Tween(mc, "x",Bounce.easeOut, 0, 300, 3, true);

(10)

}

F l a s h P i t t 0 9 - I n t e r m e d i a t e A c t i o n S c r i p t 3 . 0

Programatic Animation

Example

import fl.transitions.Tween; import fl.transitions.easing.*; var myTween:Tween;

myTween = new Tween(mc, "x",Bounce.easeOut, 0, 300, 3, true);

Creating a Tween

(11)

}

F l a s h P i t t 0 9 - I n t e r m e d i a t e A c t i o n S c r i p t 3 . 0

Programatic Animation

Example

import fl.transitions.Tween; import fl.transitions.easing.*; var myTween:Tween;

myTween = new Tween(mc, "x",Bounce.easeOut, 0, 300, 3, true);

name of the

(12)

}

F l a s h P i t t 0 9 - I n t e r m e d i a t e A c t i o n S c r i p t 3 . 0

Programatic Animation

Example

import fl.transitions.Tween; import fl.transitions.easing.*; var myTween:Tween;

myTween = new Tween(mc, "x",Bounce.easeOut, 0, 300, 3, true);

(13)

}

F l a s h P i t t 0 9 - I n t e r m e d i a t e A c t i o n S c r i p t 3 . 0

Programatic Animation

Example

import fl.transitions.Tween; import fl.transitions.easing.*; var myTween:Tween;

myTween = new Tween(mc, "x",Bounce.easeOut, 0, 300, 3, true);

(14)

}

F l a s h P i t t 0 9 - I n t e r m e d i a t e A c t i o n S c r i p t 3 . 0

Programatic Animation

Example

import fl.transitions.Tween; import fl.transitions.easing.*; var myTween:Tween;

myTween = new Tween(mc, "x",Bounce.easeOut, 0, 300, 3, true);

(15)

}

F l a s h P i t t 0 9 - I n t e r m e d i a t e A c t i o n S c r i p t 3 . 0

Programatic Animation

Example

import fl.transitions.Tween; import fl.transitions.easing.*; var myTween:Tween;

myTween = new Tween(mc, "x",Bounce.easeOut, 0, 300, 3, true);

(16)

}

F l a s h P i t t 0 9 - I n t e r m e d i a t e A c t i o n S c r i p t 3 . 0

Programatic Animation

Example

import fl.transitions.Tween; import fl.transitions.easing.*; var myTween:Tween;

myTween = new Tween(mc, "x",Bounce.easeOut, 0, 300, 3, true);

actual seconds or

milliseconds

(17)

}

F l a s h P i t t 0 9 - I n t e r m e d i a t e A c t i o n S c r i p t 3 . 0

Interactive

(18)

}

F l a s h P i t t 0 9 - I n t e r m e d i a t e A c t i o n S c r i p t 3 . 0

Interactive Animation

mc.addEventListener(MouseEvent.CLICK, onClick);

function onClick(e:MouseEvent){

mc.x+=20

}

(19)

}

F l a s h P i t t 0 9 - I n t e r m e d i a t e A c t i o n S c r i p t 3 . 0

Interactive Animation

mc.addEventListener(MouseEvent.CLICK, onClick);

function onClick(e:MouseEvent){

mc.x+=20;

}

registering a click

event on the

MovieClip Object

(20)

}

F l a s h P i t t 0 9 - I n t e r m e d i a t e A c t i o n S c r i p t 3 . 0

Interactive Animation

mc.addEventListener(MouseEvent.CLICK, onClick);

function onClick(e:MouseEvent){

mc.x+=20

}

function to handle

the click event

(21)

}

F l a s h P i t t 0 9 - I n t e r m e d i a t e A c t i o n S c r i p t 3 . 0

Interactive Animation

mc.addEventListener(MouseEvent.CLICK, onClick);

function onClick(e:MouseEvent){

mc.x+=20

}

The MovieClip object

will move across the

screen 10 pixels for

every mouse click

(22)

}

F l a s h P i t t 0 9 - I n t e r m e d i a t e A c t i o n S c r i p t 3 . 0

Conclusions

(23)

}

F l a s h P i t t 0 9 - I n t e r m e d i a t e A c t i o n S c r i p t 3 . 0

Conclusions

Any property that can change is animate-able

Programatic Animation is the changing of

properties over time

Animation can be Event driven

(24)

}

F l a s h P i t t 0 9 - I n t e r m e d i a t e A c t i o n S c r i p t 3 . 0

Programatic Animation:

Summary

What is Animation?

What is Programatic Animation

Interactive Animation

References

Related documents

In answer to these questions, this paper offers two main reasons for the relative neglect of this motivational component: the first is related to the histori- cal roots of the

Called when a mouse button is pressed and released while the mouse cursor remains stationary on a component. public void mouseReleased( MouseEvent

proaches to support component composition, an underlying base component framework (MOCCA) combining features of CCA and H2O models, an interop- erability solution bridging CCA and

With continuous variables across the entire fit sample, Pearson's correlations were completed to determine whether relation existed between weight status (BMI z score),

Thus the null hypothesis of no co-integration is rejected for the supply model, and a non-spurious long-run relationship is confirmed among the monthly mutton marketed, the

Vilner is insistent, though, that the Zionist colonial project was eminently linked to the British imperial project: “The British mandatory rule in Palestine was a regular

Panel collapse method Mouse click on close button (16pt font: “Close X”) within 555 x 360 panel to close with flip animation or click outside the Interactive panel area to

• Appendix B, AirBEAM Smart Client, provides information for staging and provisioning the mobile computer using the AirBEAM Smart Client.. • Appendix C, App Launcher