2006 Adobe Systems Incorporated. All Rights Reserved. 1 Flex for Flash Developers Sho Kuwamoto Sr. Director, Engineering Adobe Systems, Inc.

Slides:



Advertisements
Similar presentations
Drawing, Skinning and Degrafa This presentation covers drawing, skinning and the use of Degrafa to make things easier. Understanding the basics of drawing.
Advertisements

Flex Component Life-cycle. What is it? Sequence of steps that occur when you create a component object from a component class. As part of this process,
17 HTML, Scripting, and Interactivity Section 17.1 Add an audio file using HTML Create a form using HTML Add text boxes using HTML Add radio buttons and.
© 2010 Delmar, Cengage Learning Chapter 9 Positioning Objects with AP Div Tags.
1 Web Site Design Overview of the Internet Cookie Setton.
© 2011 Delmar, Cengage Learning Chapter 10 Positioning Objects with AP Divs.
Lab 9: Code Organization User Interface Lab: GUI Lab October 23 rd, 2013.
Designer’s Challenge – Web-based Applications using Adobe Flex and OpenInsight Clay Borne President CLB IT.
1 Frameworks. 2 Framework Set of cooperating classes/interfaces –Structure essential mechanisms of a problem domain –Programmer can extend framework classes,
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.
Create slices and hotspots Create links in Web pages Create rollovers from slices Create basic animation Add tweening symbol instances to create animation.
Macromedia Dreamweaver 4 Advanced Level Course. Add Rollovers Rollovers or mouseovers are possibly the most popular effects used in designing Web pages.
1 CS 3870/CS 5870 Static and Dynamic Web Pages ASP.NET and IIS.
Architecture Of ASP.NET. What is ASP?  Server-side scripting technology.  Files containing HTML and scripting code.  Access via HTTP requests.  Scripting.
RIA & Adobe Flex Yunhui Fu 11/05/2008. What’s RIA RIA (Rich Internet Applications) –web applications which look and perform like desktop applications.
Server vs Client-side validation. JavaScript JavaScript is an object-based language. JavaScript is based on manipulating objects by modifying an object’s.
© Cheltenham Computer Training 2001 Macromedia Dreamweaver 4 - Slide No 1 Macromedia Dreamweaver 4 Advanced Level Course.
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.
Prepared by Stephen Olaño June 12, Rich Internet Applications It allow to build rich applications with data and multimedia contents, offering a.
Java Programming, 3e Concepts and Techniques Chapter 3 Section 65 – Manipulating Data Using Methods – Java Applet.
CNIT 133 Interactive Web Pags – JavaScript and AJAX JavaScript Environment.
Javascript: More features B. Ramamurthy 7/4/2014B. Ramamurthy, CSE651C1.
Adding User Interactivity – Lesson 51 Adding User Interactivity Lesson 5.
ASP.NET Web Server Controls Basic Web Server Controls.
JavaScript: Functions © by Pearson Education, Inc. All Rights Reserved.
LiveCycle Data Services Introduction Part 2. Part 2? This is the second in our series on LiveCycle Data Services. If you missed our first presentation,
© 2012 Adobe Systems Incorporated. All Rights Reserved. Copyright 2012 Adobe Systems Incorporated. All rights reserved. ® INTRODUCTION TO FLASH ANIMATION.
® Copyright 2010 Adobe Systems Incorporated. All rights reserved. ® ® 1 INTRODUCTION TO ADOBE FLASH PROFESSIONAL CS5.
Chapter 17: Applets, Images, and Sound. Objectives Learn about applets Write an HTML document to host an applet Use the init() method Work with JApplet.
2006 Adobe Systems Incorporated. All Rights Reserved. 1 Adobe’s Open Source Flex SDK. OSCON - July 2008 Portland, OR Duane Nickull & James Ward Sr. Technology.
Agency Overview0 0Presentation Title Flex Hands-On Experience Kristen Olsen Web Systems Engineer September 27, 2008.
® Copyright 2009 Adobe Systems Incorporated. All rights reserved. Adobe confidential.1 Moving from Flex 3 to Flex 4 The Good, the Bad, and the Ugly… Joan.
Chapter 10 Fireworks: Part II The Web Warrior Guide to Web Design Technologies.
ColdFusion 9 and Flex 4: Application Development Ryan Stewart Platform Evangelist, Adobe Systems
Flash and Flex Can Hold Hands Techniques for Integrating Flash Content and Flex Applications FiTC - Hollywood October 5, 2006 Chafic Kazoun, Founder and.
Tutorial 7 Planning and Creating a Flash Web Site.
Lab 3: Actionscript User Interface Lab: GUI Lab Sep. 11 th, 2012.
Dreamweaver 8 Introduction What you can do with Dreamweaver 8 What's new in Dreamweaver 8.
1 Geospatial and Business Intelligence Jean-Sébastien Turcotte Executive VP San Francisco - April 2007 Streamlining web mapping applications.
Flex 2 We’re Not in Kansas Anymore! or Welcome to Flex Theo Rushin Jr TeraTech, Inc.
WaveMaker Visual AJAX Studio 4.0 Training Basics: Building Your First Application Designer Basics.
Visual C# 2012 How to Program © by Pearson Education, Inc. All Rights Reserved.
Introduction to Flash Animation CS 318. Topics Introduction to Flash and animation The Flash development environment Creating Flash animations  Layers.
Visual C# 2012 How to Program © by Pearson Education, Inc. All Rights Reserved.
Introduction to Flex 2 by Rich Tretola. About Me Rich Tretola is a senior software developer at Herff Jones, Inc. specializing in Rich Internet Applications.
CSCI 6962: Server-side Design and Programming Facelets and User Interface Design.
XP Tutorial 7 Creating a Flash Web Site. XP New Perspectives on Macromedia Flash 82 Objectives Plan and create a Flash Web site Create a Flash template.
Unit-IV - Flash Player - Flex framework - MXML introduction - Action script introduction - Working with Action script - Flex data binding - Common UI components.
Chapter 11 Adding Media and Interactivity. Chapter 11 Lessons Introduction 1.Add and modify Flash objects 2.Add rollover images 3.Add behaviors 4.Add.
Debugging tools in Flash CIS 126. Debugging Flash provides several tools for testing ActionScript in your SWF files. –The Debugger, lets you find errors.
Writing secure Flex applications  MXML tags with security restrictions  Disabling viewSourceURL  Remove sensitive information from SWF files  Input.
Introduction to JavaScript MIS 3502, Spring 2016 Jeremy Shafer Department of MIS Fox School of Business Temple University 2/2/2016.
® Copyright 2008 Adobe Systems Incorporated. All rights reserved. Creating New Components in Flex 3 and Beyond Deepa Subramaniam Flex SDK
Introduction to ASP.NET development. Background ASP released in 1996 ASP supported for a minimum 10 years from Windows 8 release ASP.Net 1.0 released.
CFUNITED – The premier ColdFusion conference Flex 2.0 and ColdFusion Integration – 101 Nahuel Foronda Laura Arguello.
 2001 Prentice Hall, Inc. All rights reserved. 1 Chapter 18 - Dynamic HTML: Path Sequencer and Sprite ActiveX Controls Outline 18.1 Introduction 18.2.
Introduction to.
Geospatial Research & Solutions GIS.ASU.EDU
Creating a Flash Web Site
Objective % Select and utilize tools to design and develop websites.
Objective % Select and utilize tools to design and develop websites.
.NET and .NET Core 7. XAML Pan Wuming 2017.
Tutorial 6 Creating Dynamic Pages
INTRODUCTION TO FLASH ANIMATION
What language other than MXML you can use for writing a Flex Application.
Presentation transcript:

2006 Adobe Systems Incorporated. All Rights Reserved. 1 Flex for Flash Developers Sho Kuwamoto Sr. Director, Engineering Adobe Systems, Inc.

2006 Adobe Systems Incorporated. All Rights Reserved. 2 What is Flex?  Tag/script-based app development for Flash  ActionScript class library  Layout  Effects, skins, etc.  Networking and data  Compiler, debugger, and other tools

2006 Adobe Systems Incorporated. All Rights Reserved. 3 HTML vs Flex vs Flash Unlike HTML, Flex was designed for application development (no more creating navbars by slicing up images!)  HTML / CSS files  Includes  JavaScript libraries  Tag-based  HTML output HTMLFlexFlash  MXML / CSS files  Components  ActionScript classes  Tag-based  SWF output  FLA files  Symbols  ActionScript classes  Timeline-based  SWF output format reuse behavior metaphor output

2006 Adobe Systems Incorporated. All Rights Reserved. 4 Let’s see some code

2006 Adobe Systems Incorporated. All Rights Reserved. 5 Our first application – Step1.mxml

2006 Adobe Systems Incorporated. All Rights Reserved. 6 Adding layout – Step2.mxml

2006 Adobe Systems Incorporated. All Rights Reserved. 7 Adding styles – Step3.mxml TextArea { font-size: 36px; font-weight: bold; }

2006 Adobe Systems Incorporated. All Rights Reserved. 8 Adding behavior – Step4a.mxml <Button label="goodbye" right="30" bottom="41" click="myPanel.visible = false"/>

2006 Adobe Systems Incorporated. All Rights Reserved. 9 Adding behavior – Step4b.mxml public function goodbye() : void { myPanel.visible = false; }

2006 Adobe Systems Incorporated. All Rights Reserved. 10 Adding behavior – Step4c.mxml

2006 Adobe Systems Incorporated. All Rights Reserved. 11 Adding behavior – Step4c_code.as public function doInit() : void { goodbyeButton.addEventListener("click", goodbye); } public function goodbye(event: Event) : void { myPanel.visible = false; }

2006 Adobe Systems Incorporated. All Rights Reserved. 12 Adding states – Step5.mxml

2006 Adobe Systems Incorporated. All Rights Reserved. 13 Adding states – Step5_code.as public function doInit() : void { goodbyeButton.addEventListener("click", goodbye); smallButton.addEventListener("click", makeSmall); } public function goodbye(event: Event) : void { myPanel.visible = false; } public function makeSmall(event: Event) : void { currentState = "small"; }

2006 Adobe Systems Incorporated. All Rights Reserved. 14 Adding effects – Step6.mxml <Panel id="myPanel" layout="absolute" width="80%" height="80%" hideEffect="Fade" resizeEffect="Resize">

2006 Adobe Systems Incorporated. All Rights Reserved. 15 Deeper dives

2006 Adobe Systems Incorporated. All Rights Reserved. 16 Application structure Flex Application Framework Code behind (AS) Code behind (AS) CSS Component MXML Component App-specific component (AS/MXML) App-specific component (AS/MXML) Reusable component library State SWF Skins & Styles Layout & Effects Behavior & Data Components DesignerDeveloper

2006 Adobe Systems Incorporated. All Rights Reserved. 17 Designers and developers  Responsible for skinning and styling through CSS and SWF  Does initial layout. May do final layout (via tool)  Does effect and transition design.  Responsible for program logic and component development  May be responsible for final layout (via containers)  May implement effects and transitions  Connects to data and services DesignerDeveloper MXML ASCSS/SWF

2006 Adobe Systems Incorporated. All Rights Reserved. 18 Keys to des/dev workflow  Separate out code into “code behind” pages  Use or other methods to separate the ActionScript code  Add event handlers from ActionScript, not MXML  Try not to write fancy data binding code in MXML  Do not create visual components programmatically unless absolutely necessary  Do as much styling in CSS as possible  Use states when possible to express changes to user interface

2006 Adobe Systems Incorporated. All Rights Reserved. 19 Skinning and styling  SWF files or GIF/PNG can be used for skinning  SWF attached to controls via CSS  Scale 9 can be done in SWF or in CSS  CSS gives tons of control for the look of Flex controls  CSS styles can be defined per tag, or per class

2006 Adobe Systems Incorporated. All Rights Reserved. 20 Working with states – music app welcome top 100 by genre user user - edit login genre listing which genre? which user?

2006 Adobe Systems Incorporated. All Rights Reserved. 21 How are the states related? welcome top 100 by genre user - edit genre listing genre listing (base state) (listing) user

2006 Adobe Systems Incorporated. All Rights Reserved. 22 When do effects run?  When a specific trigger fires e.g., show, hide, and resize  When a transition from one state to another occurs  When called explicitly through ActionScript myEffect.play();

2006 Adobe Systems Incorporated. All Rights Reserved. 23 Defining your own effects  Using parallel and sequence  Effects can also be defined programmatically

2006 Adobe Systems Incorporated. All Rights Reserved. 24 Interstate gotchas  Control how the state change interacts with effects by using SetPropertyAction, et. al.

2006 Adobe Systems Incorporated. All Rights Reserved. 25 Components MyApp.mxml  Break your application into pieces using components function initStartPanel() {…} function initDetailPanel() {…} … …

2006 Adobe Systems Incorporated. All Rights Reserved. 26 Components MyApp.mxml StartPanel.mxml  Break your application into pieces using components function initStartPanel() {…} …

2006 Adobe Systems Incorporated. All Rights Reserved. 27 Service calls  Make calls to the server using RPC calls  

2006 Adobe Systems Incorporated. All Rights Reserved. 28 Service calls  Results come asynchronously; listen for the “result” event.  Alternatively, use data binding.  Results can be retrieved off of the “result” property of the service itself.  Always add fault handlers; you never know whether the connection will work.

2006 Adobe Systems Incorporated. All Rights Reserved. 29 Data binding  Use curly braces to bind ActionScript expressions to MXML attribute values.  Not all attributes can be bound – use the [Bindable] metadata in order to make a member variable bindable.  In beta 2, properties with getters and setters can also be made bindable through the same metadata.

2006 Adobe Systems Incorporated. All Rights Reserved. 30