1 / 15

Lab 1: Introduction

Lab 1: Introduction. User Interface Lab: GUI Lab Aug. 28 th , 2013. Lab Instructor. Erik Harpstead eharpste@cs.cmu.edu NSH 2507 (until ~mid Sept) 4617 Office Hours Tuesday 3-4pm Thursday 11-12pm. Lab Coordinator. Anind Dey anind@cs.cmu.edu Office Hours B y appointment. Lab 1.

Download Presentation

Lab 1: Introduction

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. Lab 1: Introduction User Interface Lab: GUI Lab Aug. 28th, 2013

  2. Lab Instructor • Erik Harpstead • eharpste@cs.cmu.edu • NSH 2507 (until ~mid Sept) 4617 • Office Hours • Tuesday 3-4pm • Thursday 11-12pm

  3. Lab Coordinator • AnindDey • anind@cs.cmu.edu • Office Hours • By appointment

  4. Lab 1 • Introduction • Basic lab info • HTML5 overview • “Hello world” walkthrough

  5. Introduction • Introduce yourself! • Name, year, major • What do you hope to learn from the lab?

  6. Our platform: HTML5 • HTML5 defines interactive content on the modern web • Also used as the basis for other graphical user interface systems • Windows 8.1 apps • Ubuntu Web Apps

  7. Why HTML5? • Ubiquitous • Open Source • Common platform • Highly expressive

  8. Why not HTML5? • Designed by Evolution • Relatively new standard • “Common” platform • JavaScript

  9. HTML5 framework • HTML • Creating interface objects and layout • JavaScript • Creating interactive behavior associated with objects on the interface • CSS • Defining visual style

  10. MXML: <s:Button id=“myButton” x = “132” y = “91” width = “162” height = “66” label=“Click Me!” click=“doSomething()“ /> actionScript: private function doSomething():void{ if(myButton.getStyle("color") == 0x00000) myButton.setStyle("color", 0xff0000); }

  11. MXML: <s:Button id=“myButton” x = “132” y = “91” width = “162” height = “66” label=“Click Me!” click=“doSomething()“ /> actionScript: private function doSomething():void{ if(myButton.getStyle("color") == 0x00000) myButton.setStyle("color", 0xff0000); }

  12. MXML: <s:Button id=“myButton” x = “132” y = “91” width = “162” height = “66” label=“Click Me!” click=“doSomething()“ /> actionScript: private function doSomething():void{ if(myButton.getStyle("color") == 0x00000) myButton.setStyle("color", 0xff0000); }

  13. Let’s write “Hello World”

  14. Next week • Come to class with your laptop with Netbeans 8.0 (or some other IDE) installed • Netbeans 8.0: https://netbeans.org/downloads/index.html • Your “Hello World” program • We will start from modifying the code you have. • Project 1 will be announced

  15. Resources • ActionScript referenceshttp://help.adobe.com/en_US/FlashPlatform/reference/actionscript/3/index.html • Tour de Flexhttp://www.adobe.com/devnet/flex/tourdeflex.html • Course Websitehttp://www.krivers.net/pui-gui-13/

More Related