Week3 sp15 (1)
-
Upload
elizabeth-peters -
Category
Documents
-
view
21 -
download
5
Transcript of Week3 sp15 (1)
Week 4Review QuestionsReview Projects
BUGS (CurriculumGuide p.58)Write out, explain, and solve
PseudocodeBasics.pdfhttp://www.slideshare.net/DamianGordon1/pseudocode-10373156
ReviewFlash ActionScript InterfaceTrace CommandExport MC for ActionScriptTextField
Class is a blueprint for Objects• Each part of “thing” may have own blueprint• Each Object inherits from the Class
MovieClip – Make a list of what can be done with a movieClip. How does this apply to other objects?
Horizon Line Demo – makes classStart new Flash AS3 movie. Name horizonlinedemo.fla. Draw shape (not line) on stage for horizon line. Make symbol, export for ActionScript. Notice dialog box. Hit ok, notice next dialog box. Flash is creating a class for our symbol. You could also create a class with actionscript.
Flash – two ways to include code. Internal and External. What are the pros/cons of each? A Fla file connects to class file (.as) by setting the value in the properties.
Define in ActionScript, give examples• Variables – Types? string vs. evaluate
String, Boolean, Number, Array, Error, Date, Math, RegExp, Function, Object • Functions• Variable Scope – global vs. local• Event Handler• Objects / Classes• Methods• Properties• Statements• Comments
Assignment write a Program Flow Chart for:Tic Tac Toe GameUtilize best practices for Flow Charts:
Easy to read!Must have Start and StopGenerally read top to bottomUse arrows on connectors to show flowOne per page, each page should have a title and number.Don’t break a flow chart into multiple pages.
Great Examples: http://users.evtek.fi/~jaanah/IntroC/DBeech/3gl_flow.htm#startDue April 28, beginning of class. Upload to DocSharing