FlashS10
Search:
ClassWork / FlashS10

Flash Back - Veronique Brossier?

The joy of programming is composed of many others: the joy of the expert in applying knowledge powerfully, of the sleuth in unraveling mysteries, of the smith in forging impregnable armor, of the innovator is creating something fresh, of the philosopher in creating whole systems of thought, of the mathematician in navigating a space of abstract perfection and of the artisan in producing an artifact that is both functional and beautiful.
Jonathan Amsterdam, Java professor, ITP 2000

Homework due date and names:
January 26 - David, Brett, India, EJ
February 2 - Hsin-Yi, Yang, Hana, Catherine
February 9 - Poram, Garrad, Susan
February 16 - Ariel, Jason, Ozge, Pei-Jong, Macaulay
February 23 - Marko, Lucas, Kristin, Jong Yoon
March 2 - Yoon Ju, Martin, Diego

Week 7
Logic and sequence
Download class files.

Week 6
XML loading and parsing
Download class files.

Week 5
Audio, Timing and decay
Download class files.
Assignment. Create one of the following:
Application manipulating sound, application with multiple sounds played in an interesting way, create a clock using universal time, create an application with objects being created then decaying and dying.

Week 4
Trigonometry
Download class files.

Week 3
Conditional and logic thinking, functions, Boolean, integer, Number
Download class files.

Assignment:
- Read my code carefully until you understand it.
- Close it. Rewrite the whole thing on your own (don't cheat!).
- Add an additional movie clip for the decimal point. You will need to change the code slightly to make it work..
- Import a different png to make it look like your own.

Week 2
Events, Listeners and MovieClip manipulation
Download class files. Review examples in order.

Assignment:
- create an example when movie clips listen to the mouseEvent.
- look at example "clickRun". Change it so that when the mouse is clicked, the movieclip animates to its position (not jump). The answer is in the code below.

someMovieClip.addEventListener(MouseEvent.CLICK, someFunction);

function someFunction(event:MouseEvent):void {
// this will remove the listener
event.currentTarget.removeEventListener(MouseEvent.CLICK, someFunction);
}

Good luck!

Week 1
package {
import flash.display.MovieClip;
public class Main extends MovieClip {
public function Main() {
trace("hello");
trace(myCircle); // this assumes that a movieClip with that name is on the stage
var white = new White(); // this assumes that a movieClip with the LINKAGE name "White" is in the library
addChild(white);
var yellow = new Yellow(); // this assumes that a movie clip with the LINKAGE name "Yellow" is in the library
white.addChild(yello);
}
}
}

Homework
Create a fla, create a few shapes, convert them to movieclips (they will appear in the library), create a documentClass (put fla and documentClass in one same folder), add the name of the documentClass in the fla under the properties panel, write a trace statement to make sure that fla is linked to the document class, place a movie clip on the stage and give it an instance name, trace that it is visible in your class and change one of its properties (x or y coordinates), remove movie clip from stage, give it a linkage name in the library, now attach the movie using code only, trace its presence, add it to the displayList, now add another movie clip inside the first movie clip (remember the egg example). Feel free to do more!

Search
  Page last modified on March 06, 2010, at 04:06 PM