Lab 3: Actionscript User Interface Lab: GUI Lab Sep. 11 th, 2012.

Slides:



Advertisements
Similar presentations
Pages and boxes Building quick user interfaces. learning objectives o Build a quick UI with pages and boxes o understand how pages and boxes work o click.
Advertisements

Lab 9: Code Organization User Interface Lab: GUI Lab October 23 rd, 2013.
Lab 10: Images and Skinning, Sound and Assets User Interface Lab: GUI Lab Oct. 30 th, 2013.
The Web Warrior Guide to Web Design Technologies
CSD 340 (Blum)1 Using Microsoft Visual Studio.NET Development Environment and Introducing Functions.
Flex and ActionScript. What is Flex? Adobe Flex is a rich Internet application framework built on top of the Flash platform Applications are built using.
HTML Recall that HTML is static in that it describes how a page is to be displayed, but it doesn’t provide for interaction or animation. A page created.
JavaScript 101 Lesson 5: Introduction to Events. Lesson Topics Event driven programming Events and event handlers The onClick event handler for hyperlinks.
Introduction to JavaScript for Python Programmers
Web Programming Material From Greenlaw/Hepp, In-line/On-line: Fundamentals of the Internet and the World Wide Web 1 Introduction The JavaScript Programming.
JavaScript Events and Event Handlers 1 An event is an action that occurs within a Web browser or Web document. An event handler is a statement that tells.
1 Events Lect 8. 2 Event-driven Pages one popular feature of the Web is its interactive nature e.g., you click on buttons to make windows appear e.g.,
Web Programming – Java Script Association of Computing Activities Computer Science and Engineering Indian Institute of Technology Kanpur.
Javascript and the Web Whys and Hows of Javascript.
Lab 2: Interface Building User Interface Lab: GUI Lab Sep. 4 th, 2012.
RIA & Adobe Flex Yunhui Fu 11/05/2008. What’s RIA RIA (Rich Internet Applications) –web applications which look and perform like desktop applications.
Event-driven Programming
Lab 1: Introduction User Interface Lab: GUI Lab Aug. 28 th, 2013.
Lab 1: Introduction User Interface Lab: GUI Lab Aug. 28 th, 2013.
Introduction to Graphical User Interfaces. Objectives * Students should understand what a procedural program is. * Students should understand what an.
Lab 5: drawing and output User Interface Lab: GUI Lab Sep. 25 th, 2013.
CNIT 133 Interactive Web Pags – JavaScript and AJAX JavaScript Environment.
Lab 2: Forms and Basic Input User Interface Lab: GUI Lab Sep. 2 nd, 2014.
Intro to JavaScript. Use the tag to tell the browser you are writing JavaScript.
Lab 3: Language Structures User Interface Lab: GUI Lab Sep. 9 th, 2014.
Patroklos Patroklou George Antoniou Constantinos Kyprianou.
Java Programming: From Problem Analysis to Program Design, Second Edition1  Learn about basic GUI components.  Explore how the GUI components JFrame,
Lecture # 6 Forms, Widgets and Event Handling. Today Questions: From notes/reading/life? Share Personal Web Page (if not too personal) 1.Introduce: How.
Agency Overview0 0Presentation Title Flex Hands-On Experience Kristen Olsen Web Systems Engineer September 27, 2008.
Client Side Programming with JavaScript Why use client side programming? Web sides built on CGI programs can rapidly become overly complicated to maintain,
Client-Side Scripting JavaScript.  produced by Netscape for use within HTML Web pages.  built into all the major modern browsers. properties  lightweight,
Object Oriented Software Development 9. Creating Graphical User Interfaces.
Lab 6: event & input intro User Interface Lab: GUI Lab Oct. 2 nd, 2013.
Lab 12: Other Languages User Interface Lab: GUI Lab Nov. 12 th, 2013.
Introduction to Client Side Scripting CS Client Side Scripting Client side means the Browser is interpreting the script Script is downloaded with.
HTML Form Widgets. Review: HTML Forms HTML forms are used to create web pages that accept user input Forms allow the user to communicate information back.
JavaScript Syntax, how to use it in a HTML document
CSD 340 (Blum)1 Starting JavaScript Homage to the Homage to the Square.
JavaScript Scripting language What is Scripting ? A scripting language, script language, or extension language is a programming language.
JavaScript Introduction.  JavaScript is a scripting language  A scripting language is a lightweight programming language  A JavaScript can be inserted.
Introduction To JavaScript. Putting it Together (page 11) All javascript must go in-between the script tags. All javascript must go in-between the script.
1 CSC160 Chapter 7: Events and Event Handlers. 2 Outline Event and event handlers onClick event handler onMouseOver event handler onMouseOut event handler.
Scripting Languages Client Side and Server Side. Examples of client side/server side Examples of client-side side include: JavaScript Jquery (uses a JavaScript.
JavaScript Challenges Answers for challenges
2006 Adobe Systems Incorporated. All Rights Reserved. 1 Flex for Flash Developers Sho Kuwamoto Sr. Director, Engineering Adobe Systems, Inc.
HTML FORMS The TEXT Object Presented By: Ankit Gupta.
1 Javascript CS , Spring What is Javascript ? Browser scripting language  Dynamic page creation  Interactive  Embedded into HTML pages.
Event Handling (the right way). A Simple Web Page Events - Summary The web page looks like this:
Lab 5: More on Events and Introduction to the Canvas Tag User Interface Lab: GUI Lab Sep. 23 rd, 2013.
JavaScript Events Java 4 Understanding Events Events add interactivity between the web page and the user You can think of an event as a trigger that.
Programming in AS3. AS3 vs MXML MXML is content/structure AS3 ties in with the MXML to create the a functioning program.
Javascript Basic Concepts Presentation By: Er. Sunny Chanday Lecturer CSE/IT RBIENT.
JavaScript and Ajax (JavaScript Environment) Week 6 Web site:
JavaScript Events. Understanding Events Events add interactivity between the web page and the user Events add interactivity between the web page and the.
JavaScript JavaScript is a programming language that web browsers understand. You can use it to make your web pages interactive by: Responding to user.
Web Programming Java Script-Introduction. What is Javascript? JavaScript is a scripting language using for the Web. JavaScript is a programming language.
Client-side (JavaScript) Validation. Associating a function with a click event – Part 1 Use the input tag’s onclick attribute to associate a function.
Introduction to.
JavaScript is a programming language designed for Web pages.
Introduction to JavaScript
DHTML Javascript Internet Technology.
.NET and .NET Core 7. XAML Pan Wuming 2017.
A second look at JavaScript
DHTML Javascript Internet Technology.
For this assignment, copy and past the XHTML to a notepad file with the .html extension. Then add the code I ask for to complete the problems.
Introduction to JavaScript
JavaScript Basics What is JavaScript?
JavaScript is a scripting language designed for Web pages by Netscape.
Introduction to JavaScript
Presentation transcript:

Lab 3: Actionscript User Interface Lab: GUI Lab Sep. 11 th, 2012

Hw1a Due now!

Project 1b TBA Uses actionscript (this lab) Due by 9:00am, 9/25 (in two weeks)

Lab 3 goals MXML: a more general perspective Basic actionscript – Variables – Functions – Conditions

MXML Declarative language Declare objects and layout between objects – Other example: HTML Good for layout declaration Imperative language Write imperative statement that get run top to bottom – Other example: javascript Good for interactivity Actionscript Example: Creating a rectangle that is 100 x 100 var rect1:Rectangle = new Rectangle; rect1.width = 100; rect1.height = 100; this.contentGroup.addElement(rect1);

MXML Declarative language Declare objects and layout between objects – Other example: HTML Good for layout declaration Imperative language Write imperative statement that get run top to botttom – Other example: javascript Good for interactivity Actionscript Example: Creating a rectangle that is 100 x 100 var rect1:Rectangle = new Rectangle; rect1.width = 100; rect1.height = 100; this.contentGroup.addElement(rect1);

MXML Components: Namespaces mx – Halo s – Spark (Halo + skinning) fx – Language (programming) map – Google Maps

MXML syntax Opening tag Closing tag

Declare an ellipse In Source View View the outline of your code

MXML syntax Opening tag Closing tag Attribute name Attribute value

MXML syntax Opening tag Closing tag Attribute

Set the width and height to 100 <s:Ellipse width=“100” height=“100”>

MXML syntax Opening tag Closing tag Attribute Child tag

Set the color of the ellipse

MXML: Layouts Containers Organizers Positioning

MSML Declarative language Declare objects and layout between objects – Other example: HTML Good for layout declaration Imperative language Write imperative statement that get run top to bottom – Other example: javascript Good for interactivity Actionscript Example: Creating a rectangle that is 100 x 100 var rect1:Rectangle = new Rectangle; rect1.width = 100; rect1.height = 100; this.contentGroup.addElement(rect1);

<![CDATA[ // code goes here ]]> Tag Don’t interpret as MXML

Declare a script in your application

Actionscript public var myInt:int; public var myStr:String= “hi”; Access control Declaration NameTypeValue

Declare a date object Name: startTime Type: Date Initial value set to: new Date()

Declare a date object

Add a button, generate event handler Label: “Click me!” Under “On click:”, click “Generate Event Handler”

Pop up an alert on click Test your program

Show how many seconds since the app started Test your program

Show if the current time is the GUI lab time Test your program

Where to Explore? ActionScript references ce/actionscript/3/index.html Example Projects: Tour de Flex Google!!