® 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.

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

© 2011 Adobe Systems Incorporated. All Rights Reserved. Adobe Confidential. Performance-Tuning Mobile Flex Applications Evtim Georgiev Computer Scientist,
Introduction to HTML & CSS
Master Pages, User Controls, Site Maps, Localization Svetlin Nakov Telerik Corporation
Lab 10: Images and Skinning, Sound and Assets User Interface Lab: GUI Lab Oct. 30 th, 2013.
HTML Overview - Cascading Style Sheets (CSS). Before We Begin Make a copy of one of your HTML file you have previously created Make a copy of one of your.
Web Design with Cascading Style Sheet Lan Vu. Overview Introduction to CSS Designing CSS Using Visual Studio to create CSS Using template for web design.
Tutorial 8: Developing an Excel Application
Flex 4 - Spark Containers Ryan Frishberg Software Consultant, Lab49
© 2011 Adobe Systems Incorporated. All Rights Reserved. Adobe Confidential. Kiran Kaja | Accessibility Engineer Ensuring Accessibility in Document Conversion.
Designer’s Challenge – Web-based Applications using Adobe Flex and OpenInsight Clay Borne President CLB IT.
Introducing Cascading Style Sheets  Cascading Style Sheet Basics  Creating Styles  Using Styles  Manipulating Styles  Text Formatting with CSS.
Flash Workshop Flash Workshop :: Agenda  Introductions  Look at a few Flash Examples  Flash Web Sites  Flash Web Applications  Flash Games.
Unit 2, cont. September 14 HTML,Validating your pages, Publishing your site.
Create a Web Site with Frames
© 2011 Delmar, Cengage Learning Chapter 8 Building Complex Animations.
Course Textbook: Build Your Own ASP.Net Website: Chapter 2
Written by Liron Blecher
Cascading Style Sheet. What is CSS? CSS stands for Cascading Style Sheets. CSS are a series of instruction that specify how markup elements should appear.
XP New Perspectives on XML Tutorial 4 1 XML Schema Tutorial – Carey ISBN Working with Namespaces and Schemas.
Lab 2: Interface Building User Interface Lab: GUI Lab Sep. 4 th, 2012.
M1G Introduction to Programming 2 4. Enhancing a class:Room.
Using Styles and Style Sheets for Design
Understanding CSS Essentials: Content Flow, Positioning, and Styling
Rujchai Ung-arunyawee Department of Computer Engineering Khon Kaen University.
COLD FUSION Deepak Sethi. What is it…. Cold fusion is a complete web application server mainly used for developing e-business applications. It allows.
© 2011 Adobe Systems Incorporated. All Rights Reserved. Adobe Confidential. Building an Extension for Flash Professional Justin Putney | Co-founder, Ajar.
XP Dreamweaver 8.0 Tutorial 3 1 Adding Text and Formatting Text with CSS Styles.
 This presentation introduces the following: › 3 types of CSS › CSS syntax › CSS comments › CSS and color › The box model.
© 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.
Esri UC2013. Technical Workshop. Technical Workshop 2013 Esri International User Conference July 8–12, 2013 | San Diego, California ArcGIS API for Flex.
ColdFusion 9 and Flex 4: Application Development Ryan Stewart Platform Evangelist, Adobe Systems
Essentials of HTML Class 4 Instructor: Jeanne Hart
CS134 Web Design & Development Cascading Style Sheets (CSS) Mehmud Abliz.
Tutorial 7 Planning and Creating a Flash Web Site.
Lab 3: Actionscript User Interface Lab: GUI Lab Sep. 11 th, 2012.
© 2012 The McGraw-Hill Companies, Inc. All rights reserved. word 2010 Chapter 3 Formatting Documents.
ASP.NET &.NET Environment. Overview Part of Microsoft’s.NET environment Used for Development of  Websites  Internet applications  Web Services & XML.
Building cool web applications with Flex Presenters Joseph Khan Rasmiranjan Nayak.
New Features Overview. Agenda Silverlight - Intro Silverlight 3 New Features Overview with Demos, Demos and Demos… RIA Services Overview Demos, Demos,
Use CSS to Implement a Reusable Design Selecting a Dreamweaver CSS Starter Layout is the easiest way to create a page with a CSS layout You can access.
1 Tutorial 14 Validating Documents with Schemas Exploring the XML Schema Vocabulary.
Customizing Aspen Templates TEC04 Elizabeth Lucchese.
INTRODUCTION TO CSS. TOPICS TO BE DISCUSSED……….  Introduction Introduction  Features of CSS Features of CSS  Creating Style Sheet Creating Style Sheet.
Introducing Cascading Style Sheets. Cascading Style Sheet Basics  Cascading Style Sheet Basics  Creating Styles  Using Styles  Manipulating Styles.
Introduction to c++ programming - object oriented programming concepts - Structured Vs OOP. Classes and objects - class definition - Objects - class scope.
Tutorial 3 Adding and Formatting Text with CSS Styles.
Reading Flash. Training target: Read the following reading materials and use the reading skills mentioned in the passages above. You may also choose some.
® Copyright 2008 Adobe Systems Incorporated. All rights reserved. ADOBE® ACCESSIBILITY PDF Accessibility – Best Practices for Authoring Pete DeVasto Greg.
1 A Basic Introduction to Flash. Outline What is a flash? Macromedia Flash MX 2004 Flash concepts Flash Demos Conclusion Additional help 2.
2006 Adobe Systems Incorporated. All Rights Reserved. 1 Flex for Flash Developers Sho Kuwamoto Sr. Director, Engineering Adobe Systems, Inc.
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.
Department of Computer Science, Florida State University CGS 3066: Web Programming and Design Spring
® Copyright 2008 Adobe Systems Incorporated. All rights reserved. Creating New Components in Flex 3 and Beyond Deepa Subramaniam Flex SDK
Leveraging Web Content Management in SharePoint 2013 Christina Wheeler.
Web Design Principles 5 th Edition Chapter 3 Writing HTML for the Modern Web.
Getting Started with CSS
XAML User Interface Creation in C#
Website Design 3
© Paradigm Publishing, Inc.
WPF AKEEL AHMED.
.NET and .NET Core 7. XAML Pan Wuming 2017.
Interface Programming 2 Week 1
INTRODUCTION TO FLASH ANIMATION
What language other than MXML you can use for writing a Flex Application.
Presentation transcript:

® 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 Lafferty Adobe Systems #adobemax103

® Copyright 2009 Adobe Systems Incorporated. All rights reserved. Adobe confidential.2 Now Playing… (Agenda)  What is Flex 4 all about?  What are the major changes in Flex 4 from Flex 3?  Help Flex 3 developers understand new concepts in Flex 4 that are different from Flex 3.  What are the hiccups that people might run into when migrating applications to Flex 4? Twitter: #adobemax103

® Copyright 2009 Adobe Systems Incorporated. All rights reserved. Adobe confidential.3 Do The Right Thing (Goals of Flex 4)  Give you the tools to make an AWESOME user interface.  Give you the features you always wanted in previous versions of Flex.  Help you take advantage of the Flash Player’s latest and greatest. Twitter: #adobemax103

® Copyright 2009 Adobe Systems Incorporated. All rights reserved. Adobe confidential.4 “Paths of Glory” (Benefits of Flex 4) Ease of Complex Skinning Easier to create components that use different layouts Taking advantage of Player 10 features such as pixel bender effects and the Flash Text Engine. Improvements in Effects Faster Compiler Simpler States syntax 2-way Binding Twitter: #adobemax103 Advanced CSS Support

® Copyright 2009 Adobe Systems Incorporated. All rights reserved. Adobe confidential.5 New Packages Twitter: #adobemax103 mx packages mx.controls.* mx.containers.* mx.effects.* mx.events.* mx.graphics.* mx.managers.* … spark.layouts.* BasicLayout HorizontalLayout TileLayout VerticalLayou t … spark.primitives.* BitmapImage Ellipse Graphic Path Line RectangularDropShadow Rect VideoElement spark.components.* Application Border Button CheckBox ButtonBar Group DropDownList SkinnableContainer … List spark.effects.* AddAction Animate AnimateColor Move Fade Resize Move3D Rotate3D … Rotate

® Copyright 2009 Adobe Systems Incorporated. All rights reserved. Adobe confidential.6 New Namespaces Spark Component namespace. Use with MXML 2009 Language namespace URI: library://ns.adobe.com/flex/spark MXML 2009 Language namespace URI: MX Component namespace. Use with MXML 2009 Language namespace URI: library://ns.adobe.com/flex/halo Legacy namespace URI: Twitter: #adobemax103

® Copyright 2009 Adobe Systems Incorporated. All rights reserved. Adobe confidential.7 MXML Graphics Flex 4 has added graphic primitives enabling you to draw lines, ellipses, and curves. Two types of graphics: Static / Optimized FXG (.fxg files) Runtime FXG / MXML Graphics <s:SolidColorStroke weight="2" color="0x000000" /> Twitter: #adobemax103

® Copyright 2009 Adobe Systems Incorporated. All rights reserved. Adobe confidential.8 “Lost in Translation” (Flex States)  States were confusing to use in the past.  Removal of AddChild, RemoveChild  Replaced by includeIn and excludeFrom attributes that are specified inline.  Removal of SetStye and SetProperty  New dot syntax <s:TextInput color.errorState=“0xFF0000” color.validState=“0x000000” /> <s:Button click.submitState=“submit()” click.clearState=“resetForm()” />  States are used in Skin files. Twitter: #adobemax103

® Copyright 2009 Adobe Systems Incorporated. All rights reserved. Adobe confidential.9 Skinning in Flex 4  Components all have separate skin files (e.g. ButtonSkin.mxml)  These skin files use MXML Graphics to draw skin parts  The skins also define states. Spark Button Button.as ButtonSkin.mxml  To customize a component use:  Styles  Custom Skin Twitter: #adobemax103

® Copyright 2009 Adobe Systems Incorporated. All rights reserved. Adobe confidential.10 Creating a Custom Skin  Copy a skin class from the Spark theme or Wireframe theme  Rename that Skin.  Make customizations to that skin.  Every skin should have :  Host Component defined  States  MXML Graphics  Assign that skin to the skinClass of your component instance. Twitter: #adobemax103

® Copyright 2009 Adobe Systems Incorporated. All rights reserved. Adobe confidential.11 The Usual Suspects (Common Migration Issues)  Type selectors need namespaces  Compile against player 10.  Application.application -> FlexGlobals.topLevelApplicationFlexGlobals  RSLs are on by default.  Declarations Tag  Unsupported styles in skins. Twitter: #adobemax103

® Copyright 2009 Adobe Systems Incorporated. All rights reserved. Adobe confidential.12 Problem Child (Declarations Tag)  Anything that is not a visual elements or default property must be within tag.  Formatters, Effect, RPC declarations, Validators etc. <s:AnimateColor id=“colorEffect” targets=“{[examplePanel, targetLabel, detailText]}” colorFrom=“0x0000FF” colorTo=“0xFF0000” repeatCount=“2” /> {dob.text} <mx:DateValidator source=“{dob}” property=“text” allowedFormatChars=“/” trigger=“{myButton}” triggerEvent=“click” valid=“validated_handler(event);”/> Twitter: #adobemax103

® Copyright 2009 Adobe Systems Incorporated. All rights reserved. Adobe confidential.13 “If Looks Could Kill” (Theme Changes)  The default theme is the Spark theme in Flex 4.  The default theme in Flex 3 was Halo.  Many of the styles that were available in the Halo theme are not available in the Spark theme. Twitter: #adobemax103

® Copyright 2009 Adobe Systems Incorporated. All rights reserved. Adobe confidential.14 “If Looks Could Kill” (Theme Changes) Twitter: #adobemax103

® Copyright 2009 Adobe Systems Incorporated. All rights reserved. Adobe confidential.15 “The Matrix” (Mixing MX and Spark Components) Use Spark Components wherever you can Spark Components should all play nicely with MX components  You can put any MX component in Spark containers  You cannot directly put graphic primitive objects like BitmapImage, Rect, Line, Path, and Ellipse inside a MX container without wrapping it in a Group.  MX effects do not work on Spark graphic primitives.  When using MX Navigators (e.g. Accordion, ViewStack), use the NavigatorContent component. Twitter: #adobemax103

® Copyright 2009 Adobe Systems Incorporated. All rights reserved. Adobe confidential.16  The Spark components don’t support the Halo theme.  Cannot create spark component based itemRenderers for MX List based components (in this Beta)  APIs between MX and Spark components are different (e.g. addChild vs addElement)  When using MX and Spark components together, you may want to use TLFTextfield for all MX components (which isn’t the default).  Add the compiler argument -theme+=${flexlib}\projects\spark\TLFText.css Disclaimer: TLFTextfield is not supported on MX TextArea, TextInput and RichTextEditor “There Will Be Blood” (Mixing Halo and Spark Components) Twitter: #adobemax103

® Copyright 2009 Adobe Systems Incorporated. All rights reserved. Adobe confidential.17 Resources Devnet articles: Differences Between Flex 3 and Flex 4 (Beta) Flex 4 Effects by Chet Haase: Introducing Skinning in Flex 4 by Ryan Frishberg Spark Layouts with Flex 4 by Evtim Georgiev Flex 4 Backwards Compatibility Doc: Flex Examples by Peter DeHaan: Flex 4 Feature Specifications: Twitter: #adobemax103

® Copyright 2009 Adobe Systems Incorporated. All rights reserved. Adobe confidential.18 Q&A Twitter: #adobemax103

® Copyright 2009 Adobe Systems Incorporated. All rights reserved. Adobe confidential.19