programming - workshop 2

Download Programming - Workshop 2

If you can't read please download the document

Upload: cas-lemmens

Post on 10-May-2015

485 views

Category:

Technology


0 download

DESCRIPTION

This is the second part of my workshop on programming. We continue on loops, start with conditionals and explain arrays.

TRANSCRIPT

  • 1.Programming Cas Lemmens - Workshop 2

2. Regarding the feedback... I dont get what Im doing... This is normal! Itll get specic soon! Programming is just not my thing... Same thing! This is very raw! Ive already seen this! Make sure you come next time =) 3. What did we see last time? 4. What did we see last time?Variables var welcome:String = Hello World!; 5. What did we see last time?Variables var welcome:String = Hello World!;Mathematical functions + - / * % 6. What did we see last time?Variables var welcome:String = Hello World!;Mathematical functions + - / * %Boolean logic < > == != 7. What did we see last time?Variables var welcome:String = Hello World!;Mathematical functions + - / * %Boolean logic < > == !=Loops: while-loop 8. PlanningIntroduction to Flash/AS3 ConstructorProgramming process PropertiesProcedural programmingObject Oriented programming VariablesIdeaMathematical functionsInheritanceBoolean Logic Datatypes & Type checkingLoops InterfacesConditionalsStatic classsesMethods Methods & scopesArraysNamespaces & packagesObject based programmingEventsClasses Model - View - ControllerPackagesDoing a programming projectAccess controlFlash & Flex libraries 9. PlanningIntroduction to Flash/AS3 ConstructorProgramming process PropertiesProcedural programmingObject Oriented programming VariablesIdeaMathematical functionsInheritanceBoolean Logic Datatypes & Type checkingLoops InterfacesConditionalsStatic classsesMethods Methods & scopesArraysNamespaces & packagesObject based programmingEvents ClassesModel - View - Controller Packages Doing a programming project Access control Flash & Flex libraries 10. PlanningIntroduction to Flash/AS3 ConstructorProgramming process PropertiesProcedural programmingObject Oriented programming VariablesIdeaMathematical functionsInheritanceBoolean Logic Datatypes & Type checkingLoops InterfacesConditionalsStatic classsesMethods Methods & scopesArraysNamespaces & packagesObject based programmingEvents ClassesModel - View - Controller Packages Doing a programming project Access control Flash & Flex libraries 11. Procedural programming Loops 12. How can I display this?1x6= 62 x 6 = 123 x 6 = 184 x 6 = 245 x 6 = 306 x 6 = 367 x 6 = 428 x 6 = 489 x 6 = 52 10 x 6 = 60 13. Common loops While-loop For-loop Do while-loop 14. while loop while(condition){ // Do something} The loop will keep on goinguntil the condition is false. 15. How can I display this?1x6= 62 x 6 = 123 x 6 = 184 x 6 = 245 x 6 = 306 x 6 = 367 x 6 = 428 x 6 = 489 x 6 = 52 10 x 6 = 60 16. while loop while(condition) {// Do something } 17. while loopvar counter:Number = 1;while(condition) {// Do something } 18. while loopvar counter:Number = 1;while(counter < 11) {// Do something } 19. while loopvar counter:Number = 1;while(counter