Adobe Flex - Foundation to Advanced (Bundle) [A-FX-103]


Published on

Flex is a highly productive, free open source framework for building and maintaining expressive web applications that deploy consistently on all major browsers, desktops, and operating systems. While Flex applications can be built using only the free Flex SDK, developers can use Adobe® Flex® Builder™ 3 software to dramatically accelerate development.

Published in: Technology
  • Be the first to comment

  • Be the first to like this

No Downloads
Total views
On SlideShare
From Embeds
Number of Embeds
Embeds 0
No embeds

No notes for slide

Adobe Flex - Foundation to Advanced (Bundle) [A-FX-103]

  1. 1. ADOBE Flex 4<br />Peter Andreas Moelgaard<br />
  2. 2. About Me<br />Adobe Certified Professional (Flex)<br />
  3. 3. About Me<br />Adobe Community Professional (Flex)<br />
  4. 4. About Me<br />Adobe Advisory Board for Flash Builder<br />Adobe Advisory Board for Flash Catalyst<br />Adobe Advisory Board for Flex SDK<br />
  5. 5. About Me<br />I’m Peter Andreas Moelgaard<br />I’m 35 years old<br />I’m <br />
  6. 6. About Me<br />Adobe MAX Award x 2 (2008)<br />Adobe MAX Award Semifinalist (2009)<br />Author of Flash Catalyst 2.0 Unleashed(Addison Wesley, 2011)<br />
  7. 7. Agenda<br />Introduction to Flex<br />First Things First - What Is Flex ?<br />How Does Flex Work ?<br />What Can You Do with Flex ?<br />The Flex Ecosystem<br />Build your First Application (Bootcamp)<br />Build the User Interface<br />Connect to Data<br />Create Pages<br />Code Your Interactions<br />
  8. 8. About Me<br />Twitter: @petermoelgaard<br />Blog:<br />
  9. 9. Introduction to Flex<br />before we get our hands dirty…<br />
  10. 10. Introduction to RIA’s<br />Rich Internet Applications (RIA) are desktop-like applications running in the browser.Overcome many limitations of traditional web technologies:<br />Stateless architecture<br />User interaction is mostly point-and-click<br />Non-responsive (click > load > wait > click > load > wait > ...)<br />
  11. 11. Introduction to RIA’s<br />Benefits<br />Rich user experience, like desktop applications<br />No cumbersome installations, or upgrades<br />Single point management, leading to the concept of Software as a Service (SaaS)<br />
  12. 12. Introduction to RIA’s<br />Engaging, informative, self-service-oriented RIAs encourage customers to<br />Stay on your site longer<br />Explore more options<br />Complete more online transactions<br />Spend more money<br />Recommend the site to others<br />Return more often<br />
  13. 13. Introduction to RIA’s<br />Well-designed customer-facing RIAs can <br />Increase online sales up to 30%*<br />Increase conversions, cross-channel sales, and upsells by up to 40%*<br />Reduce contact center / telephone agent calls up to 20% annually*<br />* Forrester: “The Business Case for Rich Internet Applications”(Ron Rogowski, March 12, 2007)<br />
  14. 14. Introduction to RIA’s<br />“…even modest improvements in online customer experiences can boost revenue gains by $117 million to $311 million per year -- due to additional purchases, reluctance to switch, and likelihood of recommending to colleagues and friends.” <br />Forrester “Customer Experience Boosts Revenue” by Bruce D. Temkin, June 22, 2009<br />
  15. 15. First Things First - What Is Flex ?<br />Flex is an open source software development toolkit for building Rich Internet Applications (RIAs) on the Flash Platform.<br />To build a Flex application, you write object-oriented code using ActionScript 3, MXML and CSS languages.<br />The Flex SDK includes a compiler, debugger, profiler and hundreds of ready-to-user components and ActionScript classes that accelerate development.<br />
  16. 16. Adobe provides optimized Flash Player technology to Google<br />Increases accuracy of web search results<br />Enables top search engines to understand what's inside of RIAs<br />Works with all existing SWF content, across all versions<br />
  17. 17. First Things First - What Is Flex ?<br />To help us rapidly develop applications and content using the Flex framework, Adobe offers an Eclipse based IDE.<br />Adobe Flash BuilderIt includes support for intelligent coding,debugging, visual design as well aspowerful testing and monitoring tools.<br />Alternative IDEsFDT, FlourineFX, FlashDevelop,Amethyst, FlexBean, etc.<br />
  18. 18. How Does Flex Work ?<br />Flex source code is first compiled into ActionScript classes and then eventually Flash bytecode, which is executed at the client side by the ActionScript Virtual Machine in Adobe Flash Player or Adobe AIR.<br />Flash<br />Flex<br />ActionScript<br />Flash Platform<br />
  19. 19. What Can You Do With Flex ?<br />You can use Flex to build anything from multimedia-rich consumer experiences to functional line-of-business applications that run behind the firewall.<br />You can use Flex to deliver an entire application experience, or you can embed Flex-based components and widgets within existing HTML websites.<br />You can use Adobe AIR to run an enhanced, standalone version of your application across Windows, MAC OS X, Linux and Android operating systems.<br />
  20. 20. RIAs help businesses save money by enhancing employee productivity <br />Used internally, RIAs can help the enterprise<br />Unite key data from disparate sources <br />Increase employee productivity<br />Reduce data entry time up to 40% <br />Improve accuracy<br />Save time<br />Reduce operating expenses<br />
  21. 21. Common use cases for RIAs across various industries<br />Customer self-service applications<br />Intuitive, guided self-service applications lower costs, increase visibility and usage while increasing overall customer satisfaction<br />Guided selling applications increase ASP and revenues, while reducing errors and returns driving down costs<br />Data visualization<br />Rich, interactive data visualization simplifies complex data and leads to faster decision making<br />Dashboards enable real time pulse of critical business metrics<br />
  22. 22. NASDAQ<br />Enabling stock market participants to replay, understand, and explain market events at any point in time<br />Challenge <br />Manage and deliver trading data in relevant, interactive ways <br />Give users instant insight into extremely detailed trading activity in the market at any time during the day<br />Solution: Market Replay RIA<br />Adobe AIR<br />Adobe Flex <br />Amazon S3<br />Results<br />Delivers valuable data analysis at a lower cost to everyone involved <br />Enables investors and brokers to replay market events and review historical data in simulated real-time<br />“There’s no doubt that working in Adobe AIR is a huge benefit. The ability to process trading data on the desktop enables NASDAQ to deliver valuable data analysis at a lower cost to everyone involved.” <br />Randall Hopkins <br /> Vice president, NASDAQ Market Data <br />
  23. 23. SAP<br />Transforming business data into rich, interactive dashboards and data presentations– without programming<br />Challenge <br />Accelerate new product innovation and user adoption of Business Intelligence (BI) tools through dynamic, impactful user experiences<br />Solution: Xcelsius software<br />Adobe AIR<br />Adobe Flash Builder<br />Adobe LiveCycle Data Services ES<br />Results<br />Accelerated product development from years to months<br />Improved BI analysis<br />Drove increased adoption of BI solutions across enterprises<br />“With BI tools based on the Flash Platform, business users can quickly access and analyze enterprise data to better understand the business without assistance from IT or business analysts.” <br />James ThomasVice President of Product Marketing, SAP BusinessObjects<br />
  24. 24. FedEx<br />Connecting customers to shipment tracking information online and offline<br />Challenge <br />Improve customer access to shipment tracking information, online as well as on the desktop<br />Solution<br />Adobe AIR<br />Adobe Flex<br />Results<br />Delivered consistent customer experience online and offline<br />Enabled easy-to-use, always on, branded tracking method<br />Increased development productivity by almost 50%<br />“… individual shippers, consignees, and small businesses will benefit most from the new, easy-to-use Adobe AIR application because they will have immediate access to critical information about their shipping and supply chain activities.” <br />Aitza Anderson, product manager, FedEx<br />All external content and images pending approvals.<br />
  25. 25. The Flex Ecosystem<br />TOOLS<br />FRAMEWORK<br />CLIENTS<br />SERVICES<br />SERVERS<br />Flash Player<br />Flex<br />Flash Media Server Family<br />Flash <br />PlatformServices<br />FlashCatalyst<br />FlashProfessional<br />Flash Builder<br />AIR<br />LiveCycle<br />ColdFusion<br />Creative Suite<br />Analytics &<br />Optimization<br />
  26. 26. The Flex Ecosystem<br />
  27. 27. The Flex Ecosystem<br />Adobe Flash Platform<br />Is an entire family of technologies you can use to create, run and provide data to RIAs, including client runtimes, tools, frameworks, servers and cloud services.<br />Flash Platform Runtimes<br />At the center of the Flash Platform are the client runtimes. Adobe Flash Player for the browser and Adobe AIR for outside the browser. <br />
  28. 28. The Flash Player is the world’s most pervasive software<br />98%<br />95%<br />of Internet-connected PCs worldwide have Flash Player installed <br />of top 20 smart phones will support Flash Player this year<br />85%<br />3.5 million<br />of Alexa 100 top websites use Flash Player<br />develop using the Flash Platform<br />70%<br />98%<br />penetration rate in enterprises - Forrester<br />of web games are <br />delivered using Flash Player<br />75%<br />of enterprise professionals will seek Flash Platform development skills in 2011 (Society of Digital Agencies)<br />
  29. 29. The Flex Ecosystem<br />Adobe Flash Player<br />Adobe Flash Player is a browser plugin or Active-X control with a rich object model and rendering engine that allows developers to include highly expressive and interactive content in web-applications<br />To include this richer content, you create a SWF file using Developer tools and then reference this SWF file in your HTML page.<br />When the browser parses the HTML page, the flash player downloads the SWF file and runs in the browser.<br />
  30. 30. The Flex Ecosystem<br />Adobe AIR<br />Is a cross-operating-system runtime and set of tools that allow developers to deploy HTML, Ajax, and Flash Platform applications (SWF files) to the desktop.<br />An emerging design pattern is to deliver a browser-based version for all users and a desktop version for the more active or power users-<br />
  31. 31. Companies use Adobe AIR to deliver RIAs outside the browser<br />300 million<br />AIR runtime installations<br />2.5 million<br />AIR SDK installations<br />1 million<br />Installations of Adobe AIR within one year of release<br />840<br />Applications in the Adobe AIR Marketplace<br />
  32. 32. The Flex Ecosystem<br />Flash Platform Tools<br />Adobe Flash Builder (FB)Is an Eclipse-based development tool targeted at developers. With this IDE you use the Flex framework to create SWF files.<br />Adobe Flash Catalyst (FC)Is a new interaction design tool for rapidly creating expressive interfaces and interactive content without writing code.<br />Adobe Flash Professional (FL)Is the industry standard for interactive authoring.<br />
  33. 33. Supported across the Board<br />3.5 million developers<br />PARTNERS<br />PROGRAMS<br />TECHNOLOGIES<br />COMMUNITIES<br />150+ supporting technologies to help in application and project development<br />CAIRNGORM<br />ADOBE OPEN SOURCE (<br /><ul><li>Frameworks
  34. 34. Performance and load testing
  35. 35. Tooling plug-ins
  36. 36. Pre-built components
  37. 37. Product extensions, functions and code
  38. 38. 1,000+ global and regional system integrators, ISVs, and VARs
  39. 39. 52 Adobe Agency Partners, including the top digital agencies
  40. 40. 250+ training partners
  41. 41. More than 70 Open Screen Project members
  42. 42. 337 User Groups worldwide</li></li></ul><li>The Flex Ecosystem<br />Flash Platform Languages<br />ActionScriptIs an inheritance-based object-oriented scripting language based on the ECMAscript standard.The syntax and features are very similar to Java.<br />MXMLIs a convenience language, it provides an alternate way to generate ActionScript using a declarative tag-based XML syntax. When you compile an application, the MXML is parsed and converted to ActionScript.<br />
  43. 43. Flex integrates with <br />CLIENT APPLICATION TIER<br />DESIGN &DEVELOPMENTTOOLS<br />Browsers<br />Creative <br />Suite<br />Flash Player<br />AIR<br />FlashProfessional<br />HTTP/S, Sockets, AMF, RTMP,<br />SOAP, WS*, SMTP, REST, …<br />Flash <br />Catalyst<br />Flash Builder<br />SERVICES TIER<br />3rd PartyServices<br />Flex <br />Framework<br />Flash PlatformServices<br />Flash Media Server Family<br />LiveCycle<br />RESOURCE TIER<br />EIS<br />Databases<br />Directories<br />ECM Repository<br />MessageQueues<br />SAP…<br />
  44. 44. The Flex Ecosystem<br />Flash Platform ServicesA set of hosted and managed services.<br />Collaboration ServiceReal-time collaboration service featuring chat, audio, video and simple data.<br />Distribution Servicefor distributing, promoting, tracking, and monetizing applications on e.g. social networks, mobile devices and desktops.<br />Social Servicefor integrating with multiple social networks including Facebook, MySpace, Twitter, Yahoo, Google, AOL and many more…<br />
  45. 45. Flash and HTML5<br />Adobe actually supports HTML<br />The Flash Platform has integrated with HTML for 14 years.<br />AIR 2.0 (desktop) includes support for HTML5.<br />Adobe is committed to supporting HTML5<br />The Flash Platform delivers cross-platform, cross-browser, cross-device consistency.<br />HTML5 implementations will differ and hinder content adoption of rich features, including video tag support.<br />No consistency in codec support for video is yet visible.<br />
  46. 46. Build Your First Application<br />now lets get our hands dirty…<br />
  47. 47. Build Your First Application<br />Build The User Interface<br />Connect to Data<br />Create Pages<br />Code Your Interactions<br />
  48. 48. What We’re Building ?<br />An simple staff management system<br />
  49. 49. Build Your First Application<br />Build The User Interface<br />Create a New Flex Project<br />Use Design Mode to Add Components<br />Use Design Mode to Set Properties<br />Change Component Attributes in MXML<br />Browse and Run the Application<br />
  50. 50. Build Your First Application<br />Connect to Data<br />Create a Flex Data Service<br />Connect the getEmployees() Service Operation to a DataGrid<br />Configure DataGrid Columns<br />Browse and Debug the Application<br />
  51. 51. Build Your First Application<br />Create Pages<br />Create Employees and Departments States<br />Retrieve and Display Department Data in the Departments DataGrid<br />Change Property Values in Different States<br />Change a Property or Style Value in All States<br />Create a New EmployeeDetails State<br />Add Objects to Specific States<br />
  52. 52. Build Your First Application<br />Code Your Interactions<br />Generate an Event Handler<br />Change to the Departments State on a Button click Event<br />Change the Employees State on a Button click event<br />Change the EmployeeDetails State on a DataGrid change Event<br />Clear the TextInput Component on a focusIn Event<br />Change Styles on a click Event<br />
  53. 53. Great Resources<br />Adobe Developer Connection<br />Flex Developer Center <br />Learn Flex in a Week<br />More than 335 user groups<br />Adobe TV<br />Tour de Flex<br />Training Partners and Support Centres<br />1000’s of active bloggers and forums<br />
  54. 54. Conclusion on 1. Day<br />Setting up Environment<br />Design Mode of Flex<br />Using Source Mode of Flex<br />Introduction to ActionScript 3.0<br />Interactivity and Events in Flex<br />Using Data Binding in Flex<br />Laying out in Flex and Flex Containers<br />Creating Forms in Flex<br />Displaying Data in Flex<br />Application Flow and Visibility<br />Working with View States<br />