Tuesday, September 29, 2009

Lesson 2

Lesson 2
- functions
- dynamic variables
- regular functions
- for loops
- arranging clips with for loops
- Math.random
- pythagorean theorem for scale
- drawing with code (lineStyle and lineTo)

Reading:
gravity tutorial
grids arranging clips

Pythagorean Theorem.... you don't have to read this, but I figured I'd put it in the links:
http://en.wikipedia.org/wiki/Pythagorean_theorem

Download Classfiles

Function Homework:

Add at least one function to your homework from last week...

Write all of the following functions... Use google to find conversion formulas for things like fahrenheit to kelvin:
http://www.google.com/search?hl=en&client=safari&rls=en&q=1+fahrenheit+to+kelvin&aq=f&oq=&aqi=

// scales a given movieClip's x and y scale properties to the same value
// takes 2 arguments, the clip to alter and the new scale value
uniformScale(myClip, .5);

// causes a given movieClip to rotate and animate off of the right
hand side of the screen.
// takes 3 argumets, the movieClip to alter, the rotation speed and
the horizontal velocity (x increment)
rollToRight(myClip, 10, 5);

// causes a given movieClip to scale up and fade out.
// takes 2 arguments, the movieClip to alter and the speed at which to fade and scale
scaleUpFadeOut(myClip, .1);


Conversion/Math:

// converts fahrenheit to kelvin - (temperature);
// takes one argument, the degrees in fahrenheit
// returns degrees in kelvin
tempFtoK(32);

// converts kelvin to fahrenheit- (temperature);
// takes one argument, the degrees in kelvin
// returns degrees in fahrenheit
tempKtoF(32);

// do the same for millileters to fluid ounces, and fluid onces to millileters


// calculates the area of a rectangle:
// takes 2 arguments, width and height of the rectangle
// returns the area of the rectangle
area(10, 20);

// adds 3 numbers together
// takes 3 arguments and adds them together
// returns the result of the addition of the three arguments
add3(100, 20, 300);

BONUS (optional - don't waste too much time if you can't figure these out):

// calculates the volume of a cube
// takes 1 argument, the length of any side of the cube
// returns the area of the cube
area(100);

// causes a given movieClip to fade out if it is clicked on
// takes 2 arguments, the movieClip to alter and the speed at which to fade out
fadeOutOnClick(myclip, .1);

// draws a grid of circles
// takes 3 arguments, number of rows, number of columns and spacing
// read the grids arranging clips tutorial first for this one
drawCircleGrid(10, 10, 3);

Wednesday, September 23, 2009

Transparent icons

A few students were wondering how to create custom transparent file/folder icons in Mac OSX... i found a small free utility that creates them from png files (for anyone wondering).... check it out, super easy to use:

Pic2Icon

Tuesday, September 22, 2009

Lesson 1

Intermediate Review
- MovieClip nesting
- properties
- enterFrame event
- mouseEvent
- zeno's
- currentTarget
- target
- dynamic properties
- addChild
- mouseMove

Tutorials to Read for next week:

If you only read one tutorial this should be the one:
Properties

You should read these as well...
Event Phases
Event Object
Priority
Capture Phase


Homework:
Expand on zeno3.fla - add at least 15 things moving around with zeno's paradox. Optionally use properties and mouse events to make it more interesting... If you don't have ideas of how to make it more interesting feel free to e-mail me.

Download Classfiles

Syllabus

Advanced Flash

Instructor: Zevan Rosser
bendvent [] gmail
http://www.shapevent.com/
http://www.actionsnippet.com/



COURSE DESCRIPTION:

The goal of this course is to build a solid foundation for ActionScript and advanced Adobe Flash techniques. We will begin with an introduction to basic scripting principles and continue through object-based Flash applications. These skills will enable students to build scalable data-driven Flash sites, applications and animations. We will view existing sites and examine the techniques used in their creation. Students will create small Flash experiments and new Flash sites, or modify existing ones. PREREQUISITE: SMC-3553, Intermediate Flash, or equivalent.

BOOKS:

Learning Actionscript 3.0 *
How to Cheat in Flash CS3
Making Things Move
Actionscript 3.0 Cookbook
Head First Design Patterns (java)

COURSE REQUIREMENTS:

There will be a homework assignment every week. By the third week students will decide on a final project. The remaining weekly homework assignments will relate to this project.

GRADING:

60% Homework

40% Attendance/Participation

COURSE OUTLINE:

Flash Review
-basic review
-animation tricks
-isometric 3d timeline
-parallax motion
-3d face
-lip sync
-vectorpark.com
-mudbubble.com
-shapevent.com
-iscribble.com
-odcast
-alternativa
-pv3d
-box2D
-ape

AS2 - AS3
-migration

Properties and Events
-new event architechture

Display Object Targeting
-nesting display objects
-unicycle
-targeting nested display objects
-isometric 3d coded
-events intermediate

Advanced Functions
-local vars
-init / loop
-practice problems

What is OOP?
-when do you use it?
-what do you already know about it?
-document class
-example classes
-design patterns

Navigations
-Website Skeleton
-code practice
-aligning clips
-TweenLite

External Assets
-preloader
-loading images
-flashvars
-text file
-more about aligning

XML
-loading xml
-dynamic programming

BitmapData
-Working with pixels
-creating your own filters
-realtime photoshop
-demo scene

Camera
-web camera
-web camera with bitmapdata

Sound and Video
-timeline sounds
-library sounds
-loading sounds
-sound visualization
-compute spectrum
-popforge libarary
-working with flvs
-loading video
-working with video components

More Motion
-Complex motion examples
-particle systems

Advanced Display
-z-sorting
-complex re-parenting
-3D

Flash 10
-new features
-3D
-dynamic sound
-IK
-pixel bender

Review and Request
-your questions...