Review of Previous Classes Declaring Variables - var myVar:DataType = value Data Types – Number, uint, String, Boolean Functions – parameters, return.

Slides:



Advertisements
Similar presentations
SEMINAR APPOINTMENT SLIDES
Advertisements

AP Computer Science Anthony Keen. Computer 101 What happens when you turn a computer on? –BIOS tries to start a system loader –A system loader tries to.
CS 206 Introduction to Computer Science II 09 / 05 / 2008 Instructor: Michael Eckmann.
Written by: Dr. JJ Shepherd
CS 106 Introduction to Computer Science I 11 / 26 / 2007 Instructor: Michael Eckmann.
CS 106 Introduction to Computer Science I 11 / 28 / 2007 Instructor: Michael Eckmann.
CS 106 Introduction to Computer Science I 11 / 20 / 2006 Instructor: Michael Eckmann.
1 Flash Actionscript Event Handling. 2 Event Handling Right now we know all about variables lets go back to our text input/output example: Suppose we.
Flash Workshop Flash Workshop :: Agenda  Introductions  Look at a few Flash Examples  Flash Web Sites  Flash Web Applications  Flash Games.
1 Flash Actionscript Adding Interactive Actions Variables.
CS 106 Introduction to Computer Science I 11 / 15 / 2006 Instructor: Michael Eckmann.
Kapi’olani Community College Art 258 Interface Programming II In-class Presentation Week 5A.
1 Flash Actionscript Actionscript and Objects. 2 Actionscript and Objects ActionScript is what's known as an object-oriented programming language. Object-oriented.
Adapted from Dr. Craig Chase, The University of Texas at Austin.
1 Flash Programming Introduction Script Assist. 2 Course Description This course concentrates on the teaching of Actionscript, the programming language.
A tour around Java General introduction to aspects of the language (these will be covered in more detail later) After this tour you should have a general.
Programming Paradigms Imperative programming Functional programming Logic programming Event-driven programming Object-oriented programming A programming.
Hello AP Computer Science!. What are some of the things that you have used computers for?
Instructor: Chris Trenkov Hands-on Course Python for Absolute Beginners (Spring 2015) Class #005 (April somthin, 2015)
Lecture 18 Page 1 CS 111 Online Design Principles for Secure Systems Economy Complete mediation Open design Separation of privileges Least privilege Least.
Wyatt Pearsall November  HyperText Transfer Protocol.
11 Finding Winners Using Arrays Session 8.2. Session Overview  Find out how the C# language makes it easy to create an array that contains multiple values.
CMSC 202 Exceptions. Aug 7, Error Handling In the ideal world, all errors would occur when your code is compiled. That won’t happen. Errors which.
‘Tirgul’ # 7 Enterprise Development Using Visual Basic 6.0 Autumn 2002 Tirgul #7.
Java Introduction to JNI Prepared by Humaira Siddiqui.
Method Overriding Remember inheritance: when a child class inherits methods, variables, etc from a parent class. Example: public class Dictionary extends.
Tutorial 8 Programming with ActionScript 3.0. XP Objectives Review the basics of ActionScript programming Compare ActionScript 2.0 and ActionScript 3.0.
Getting a handle on ActionScript A basic primer for non-programmers.
Applications Development
Programming in Java CSCI-2220 Object Oriented Programming.
CS324e - Elements of Graphics and Visualization Java GUIs - Event Handling.
Datatypes, Variables, Constants Flash Class. What Does ActionScript Do? Automates Examples: – Tells animation what to do button is clicked – Turn off.
Code The Arduino Environment.
1 CS161 Introduction to Computer Science Topic #9.
Interfaces, Classes, Collections School of Engineering and Computer Science, Victoria University of Wellington COMP T2 Lecture 3 Thomas Kuehne.
Programming games Problems. Schedule Various examples. Homework: rps, bo (don't go back to do this), cannonball, Video or Audio should be complete. Now.
Topic 3: C Basics CSE 30: Computer Organization and Systems Programming Winter 2011 Prof. Ryan Kastner Dept. of Computer Science and Engineering University.
8-1 Compilers Compiler A program that translates a high-level language program into machine code High-level languages provide a richer set of instructions.
Hello Computer Science!. Below is an example of a Hello World program in JAVA. While it is only three lines of code, there are many things that are happening.
Software Development. Software Development Loop Design  Programmers need a solid foundation before they start coding anything  Understand the task.
Real Audio Real audio is a file format for sound and video files on the web. Real Audio files are files with either a.rm or.ram extention. Real Audio format.
M1G Introduction to Programming 2 5. Completing the program.
Computer Game Design ActionScript is… Object-oriented programming Everything you do in ActionScript does something to some object* Some objects.
2016 N5 Prelim Revision. HTML Absolute/Relative addressing in HTML.
Perl Day 5. Arrays vs Hash Arrays are one way to store multiple things in a variable. Hashes are another. Arrays are one way to store multiple things.
 In the java programming language, a keyword is one of 50 reserved words which have a predefined meaning in the language; because of this,
CHAPTER 14 Classes, Objects, and Games XNA Game Studio 4.0.
BIT116: Scripting Associative Arrays. Today AngularJS Q + A for the exam 2.
Creating a GUI Class An example of class design using inheritance and interfaces.
Review of Previous Class Declaring variables var myVariableName:DataType = variableValue;
Lesson 8: The OOP concepts of Polymorphism and Interfaces.
Introduction to Computer Programming - Project 2 Intro to Digital Technology.
Threads and Multithreading. Multiprocessing Modern operating systems are multiprocessing Appear to do more than one thing at a time Three general approaches:
Quick Review of OOP Constructs Classes:  Data types for structured data and behavior  fields and methods Objects:  Variables whose data type is a class.
Written by: Dr. JJ Shepherd
BIT 115: Introduction To Programming Professor: Dr. Baba Kofi Weusijana (say Doc-tor Way-oo-see-jah-nah, Doc-tor, or Bah-bah)
Java I/O Basics MIS 3023 Business Programming Concepts II The University of Tulsa Professor: Akhilesh Bajaj All slides in this presentation ©Akhilesh Bajaj,
Coding – Week 2 Functions, Arrays, and Objects. Functions  Functions are not a new concept – you’ve been using them already.  void setup() {} and void.
Coming up Implementation vs. Interface The Truth about variables Comparing strings HashMaps.
Computer Control and Monitoring Today we will look at: What we mean by computer control Examples of computer control Sensors – analogue and digital Sampling.
In today’s lesson we will be looking at: what we mean by the software development lifecycle the phases in the lifecycle We will focus particularly on testing:
Lesson 2: Building Blocks of Programming
1 Code
Interface Programming 2 Week 1
Threads and Multithreading
Flash & ActionScript Syntax is similar to JavaScript
Tonga Institute of Higher Education IT 141: Information Systems
Tonga Institute of Higher Education IT 141: Information Systems
CMSC 202 Exceptions.
Intro to Programming (in JavaScript)
Presentation transcript:

Review of Previous Classes Declaring Variables - var myVar:DataType = value Data Types – Number, uint, String, Boolean Functions – parameters, return value This is stuff you’ll be using forever if you decide to continue programming so make sure you understand it all.

Review of Previous Classes Conditional If statements Arrays Loops Event listeners

Scenario When you turn on a car with a car key in the ignition, the key itself is an abstraction. The key doesn't actually do anything to turn on the car. The key is just an inert object designed to plug into the ignition. The actual engine turns on the car. But the car manufacturer would never expect you to learn how to open up the hood and tinker with the spark plug in order to turn on the car. That would be inconvenient and unrealistic. As the consumer, you just want a fast, secure and easy way to turn on the car without requiring an engineering degree to do so. So they've conveniently packaged the entire process into the ignition switch which requires a key to activate.

API API is a generic term and stands for Application Programming Interface. Practically everything in programming is based on an API of some sort. Think of the car key as an API. It’s designed so you just plug it in and it somehow magically turns on the car. You don’t really care how it works as long as it works.

API A programming language like ActionScript is more of an abstract layer of instructions for controlling how the computer behaves. When you say "play a sound file" - ActionScript doesn't actually directly play the sound for you. What it does is it goes to the computer and accesses the sound hardware and then instructs the hardware: "this user has asked me to play this specific sound file" and the hardware will play the sound file as asked. The sound hardware itself might have to do some super complicated procedure in its integrated circuits to physically play the actual sound. ActionScript just makes the request via the API.

API Classes We use classes to access these APIs. Think of classes as a control panel that includes an entire set of buttons that make up an interface for you to press when you want something specific to magically happen.

API Classes Except they exist in ActionScript code format that you can access. This way, you can integrate an API with Flash to do specific functionality in your program.

Classes and Objects Classes are known as Objects after they're instantiated. The term class is an abstraction for a type of object. Think of a class like a brand. An object is a physical version of that brand. While you can’t physically OWN that brand, you can buy an object from that brand name. Instantiating an object is like buying an object of that brand. var myCar:MercedesCar = new MercedesCar(); Sometimes, the two terms Class and Object are used interchangeably.

Classes and Objects For example, when the marketers are trying to sell you on buying their car, they're not marketing a specific individual car that physically sits in a dealer lot somewhere, they're marketing an entire line of cars that fall under that brand name. The actual car itself when you buy it is an object.

API Package APIs might have several different classes to perform its functionality. We call these a package for “a package of classes”. For example, if we had a car API, it might have a class for the CD player which would include all the functionality to control only the CD player. We might have another API for the transmission which would have all the functionality to control the car's transmission system.

Methods/Properties/Events All classes can have three things: properties, methods and events. - A property is a VARIABLE assigned to that class. - A method is a FUNCTION assigned to that class. - An event is an EVENT that you can listen to. Different methods, properties and events can be accessed from different classes. These are only accessible from an instance of that class and no where else.

Switch to syntax.doc