CSC206 Web Scripting (Flash Action Script) Fall 2008
Student Homepages
Assignment Summary
Assignment 1 - Setup CSC206 homepage
Assignment 2 - Map with rollover in/out buttons and messages, Video with control buttions including 1 frame back or forward and titles and subtitles.
Assignment 3 - Flash slide show demonstrating shape and motion tweening, scrolling text and animated mask.
Assignment 4 - Animated button route system display. Collision detection story
| Week | Topics | Week | Topics |
|---|---|---|---|
| 1 - 2 Sept | Startup - Course requirements, topics-
Creating web pages with Dreamweaver -
Site setup - Create your CSC206 Homepage, ePortfolio, Starter Pages, Creating links and Tables,
webCT practice quiz |
9 - 28 Oct | Advanced Buttons and Event Handling - |
| 2 - 9 Sept | Graphics- Modifying Simple Graphics, Complex Graphics on a Single Layer, Graphics on Multiple Layers, Working with Symbols Text: Chapters 4, 5, 6, 7 WebCT quiz Thursday and every Thursday |
10 - 4 Nov | Election Day |
| 3 - 16 Sept | Annimation - Frame-by-Frame Animations, Animation with Motion Tweening, Animation with Shape Tweening, More-Complex Animation Text: Chapters 8, 9, 10, 11 |
11 - 11 Nov | Veterans Day |
| 4 - 23 Sept | Interactivity - Building Buttons for Interactivity, Basic Interactivity Text: Chapters 12, 13 |
12 - 18 Nov | Controlling & Displaying Graphics and Sound - Text: Chaper 7, 8 (Drag and Drop Interactivity) |
| 5 - 30 Sept | Multimedia - Lab Class Tuesday 9/30 |
13 - 25 Nov | Controlling Information Flow - |
| 6 - 7 Oct | Flash CS3 Professional Advanced - Lab Class Tuesday 10/7 (May Change) |
14 - 2 Dec | Controlling Text, Manipulating Information
- Text: Chapters 10, 11 (Gernerating Random Numbers p450) Review - Assignments 12, 13, 14 due Thursday |
| 7 - 14 Oct | Action Script - Text: Chapter 3 |
15 - 16/18 Final Exam |
Final Exam Due at the end of exam time CSC206-01 Tuesday 12/16 10:15AM - 12:15 PM |
| 8 - 21 Oct |
Assignments 5, 6, and 7 due on the web Tuesday In Class Midterm Exam Thursday 10/23 |
The final exam will be held during the scheduled final exam time |
|
There will be a practice quiz on Thursday
Assignment 1
Assignment Notes
Dreamweaver Features
Homepage Notes
CSC206NotesF2008
Hurricane maps
Flash example http://www.ynhh.org/
Sound - http://svt.se/hogafflahage/hogafflaHage_site/Kor/hestekor.swf - animation
http://home.southernct.edu/~workmanr1/FlashCollisionDetection.swf
http://home.southernct.edu/~workmanr1/FlashTaco.swf
Slide Shows
http://home.southernct.edu/~workmanr1/FlashSlideShow.swf
Maps
IBM - http://www.ibm.com/us/
UTC - http://www.utc.com/
GE - http://www.ge.com/
Coke - http://beijing2008.coke.com/explore.do?country=US&language=en
Pepsi - http://www.pepsi.com/
Not much Flash
http://my.barackobama.com - http://www.gopconvention2008.com/default.aspx
http://www.microsoft.com/en/us/default.aspx - not flash, siverlight ?
Other:
http://aorta.yale.edu/pc_2.html
http://aorta.yale.edu/pc_3.html
http://aorta.yale.edu/pc_4.html
Text highlights
Solid Colors and Gradients, transparency (alpha) p46 – 50
Stroke Attributes p 56-
Brush tool modes p71
Text Attributes p 84
Bounding box p 111
Stacking Order p 153
Working with layers and folders p159-
Mask layers p 177-
Chapter 7 Symbols - Movie Clip, Buttons, Graphics p190
Symbol Instances p195
Color – Brightness -100 = black, +100= white Tint 197
Transparency (Alpha)
Messages are made invisible in Frame 1
this.message1._visible = false;
this.message2._visible = false;
//this.message3._visible = false; // makes this line is a comment
stop();
When a button is rolled over the message is made visible
on (rollOver) {this.message2._visible = true;}
on (rollOut) {this.message1._visible = false;}
Assignment 2a - Rollover buttons and messages
Use Flash graphics techniques to create a map (drawing) Add interactive buttons
Assignment 2b - Flash Video Example - CSC206FlashVideoTitles.fla
Sample videos = http://www.youtube.com/watch?v=kNF_EP3jQxQ&NR=1
http://www.youtube.com/watch?v=o6wNjXj7zGk&NR=1
Assignment Example - Flash Video With Titles - Flash Video With Titles.swf
=======================================================================
Frame-by-Frame Animations, Animation with Motion Tweening, Animation with Shape Tweening, More-Complex Animation
Keyframes 212-
Onion Skinning 234-
Frame Rate 238-
Filters 327-
Assignment 3 Example - Flash Slide Show .fla - Flash Slide Show.swf
Setup a Flash slideshow using Scene. Your first Flash page should contain a heading and titled buttons that link to a Scene. The contents of each scene are described below. Each scene should include a return to scene 1 button. Each scene See - - for the sport that you should illustrate.
Example Flash Site - http://www.icoke.ca/home/index!en
Slide Show
Button Code Scene 1- on (release) {gotoAndPlay("Scene 2",1);}
Button Code to return to Scene 1 - on (press) {gotoAndStop("Scene 1",1);}
To create a new scene – Insert > Scene
Flash Tutorial Help
Google “Flash buttons” tutorial – 41,000 hits
Google “Flash Buttons” 323,000 hits
http://www.killersites.com/ - sample videos – http://www.killersites.com/videoTutorials/FlashTutorial/flash/lasso.html -
http://www.killersites.com/videoTutorials/FlashTutorial/flash/buttons.html
http://www.smartwebby.com/flash/advanced_buttons.asp
CSC206 Week4 Interactivity Chapters 12, 13
Assignment 4
Sample Code - CSC206MouseEvent3 - CSC206MouseEvent3.swf
Animated buttons examples - http://www.jetblue.com/wherewejet/ - http://www.directferries.co.uk/routes.htm
http://svt.se/hogafflahage/hogafflaHage_site/Kor/hestekor.swf
Flash Button Tutorial - http://www.echoecho.com/flashbuttons.htm
Prewritten Flash Buttons - http://www.flashvortex.com/
Free additional Flash buttons – Freeware - http://www.adobe.com/cfusion/exchange/index.cfm?event=extensionDetail&loc=en_us&extid=179510
Other sites with Flash contentLeona Lewis - http://www.leonalewismusic.co.uk/index.php/index
Flo Rida - http://floridaraps.com/ -Sara Bareilles - http://www.sarabmusic.com/ - Chris Brown - http://www.chrisbrownworld.com/
Event Handling Code Example – see Text 367-386
Events – CLICK and MOUSE_OVER
Action – nextFrame(), prevFrame()
To make Flash respond to a user interaction (event)
stop();
// The code inside the function parentheses tells where the event comes from (pEvent) and what kind of event it is (Mouse Event)
function handleClickForward( pEvent:MouseEvent):void
{
if( pEvent.target == nextFrameButton )
{
nextFrame(); // handle the event
}
}
//Register Events
nextFrameButton.addEventListener(
MouseEvent.CLICK, handleClickForward);
nextFrameButton.addEventListener(
MouseEvent.MOUSE_OVER, handleClickForward );
//=============================================
function handleClickPrevious( pEvent:MouseEvent):void
{
if( pEvent.target == backButtonNew )
{
prevFrame(); // handle the event
}
}
//Register Events
backButtonNew.addEventListener(
MouseEvent.CLICK, handleClickPrevious ).
Week 4 Thursday Drag amd Drop Colission Detection
Assignment 4b Create a tiny colission detection story Flash movie
Drag and Drop 236Adv
Collision Detection 240Adv
Collision Detection .fla - Collision Detection.swf
stop();
//Drag and Drop
function startDragging (myevent:MouseEvent):void
{
BlueFish.startDrag();
}
//===================================================236 Adv
function stopDragging (myevent:MouseEvent):void
{
BlueFish.stopDrag();
}
BlueFish.addEventListener ( MouseEvent.MOUSE_DOWN, startDragging);
//===================================================
BlueFish.addEventListener ( MouseEvent.MOUSE_UP, stopDragging);
//====Collision Test
stage.addEventListener(Event.ENTER_FRAME, detectCollision); //run at Frame rate
function detectCollision(myevent:Event):void{
if (BlueFish.hitTestObject(Hook)==true) {BlueFish.nextFrame();
}
}
==============================
CSC206 Week 5 CS3
Assignments 1, 2, 3, 4, 5 Due Tuesday October 7, In-class exam Thursday October 9
Week5 Assignment – Create a Flash movie with the following features.
Assignment and Test 1 Checklist
Week |
|
|
1 |
Setup CSC206 homepage, site management, table, links, images, background image |
|
2 |
Map with rollover in/out buttons and messages, Video with control buttons including 1 frame back or forward and titles and subtitles. |
(ActionScript 2) |
3 |
Flash slide show demonstrating shape and motion tweening, scrolling text and animated mask. |
(ActionScript 2) |
4 |
Animated button route system display. Collision detection story |
(ActionScript 3) |
5 |
Text messages, Object location display, ENTER_FRAME event, background sound, video |
(ActionScript 3) |
AC_FL_RunContent( 'codebase','http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,28,0','width','700','height','400','src','CSC206DDColisionDetectionSoundVideo2','quality','high','pluginspage','http://www.adobe.com/shockwave/download/download.cgi?P1_Prod_Version=ShockwaveFlash','movie','CSC206DDColisionDetectionSoundVideo2' ); //end AC code
ColisionDetection Sound and Video.fla
stop();
today.text = "Program written of October 3, 2008";
this.WarningMessage.visible = false;
// Display fish starting location
xloc.text = this.BlueFish.x.toString();
yloc.text = this.BlueFish.y.toString();
//Drag and Drop
function startDragging (myevent:MouseEvent):void
{
BlueFish.startDrag();
}
//===================================================
function stopDragging (myevent:MouseEvent):void
{
BlueFish.stopDrag();
}
BlueFish.addEventListener ( MouseEvent.MOUSE_DOWN, startDragging);
//===================================================
BlueFish.addEventListener ( MouseEvent.MOUSE_UP, stopDragging);
//
stage.addEventListener(Event.ENTER_FRAME, detectCollision);
function detectCollision(myevent:Event):void
// Where is the fish? x is the horizontal location property , y is the vertical location property
{xloc.text = this.BlueFish.x.toString();
yloc.text = this.BlueFish.y.toString();
// Did the fish get caught?
if (BlueFish.hitTestObject(Hook)==true) {BlueFish.nextFrame(); }
// Is the fish in danger? Display warning message, play educational video
if (BlueFish.x <= 350) {WarningMessage.visible = true; gotoAndPlay(10); }