Www.cfunited.com AIR: Building Desktop Applications with Flex Rob Rusher.

Slides:



Advertisements
Similar presentations
Samsung Smart TV is a web-based application running on an application engine installed on digital TVs connected to the Internet.
Advertisements

JavaScript FaaDoOEngineers.com FaaDoOEngineers.com.
Bringing Rich Commerce To The Desktop with AIR Joe Berkovitz, VP of Engineering ( Tim Walling, Software Architect (
1.  Understanding about How to Working with Server Side Scripting using PHP Framework (CodeIgniter) 2.
 data/data-storage.html#pref data/data-storage.html#pref 
Chapter 18 - Data sources and datasets 1 Outline How to create a data source How to use a data source How to use Query Builder to build a simple query.
Agenda What AIR ? Why AIR ? – Business benefits Browser vs. desktop AIR for everyone AIR for Ajax Developers AIR Security AIR every where – Showcase applications.
Mobile Application Development
Presented by Denard - March 2013.
X2O Server Installation
Virtual techdays INDIA │ august 2010 Building ASP.NET applications using SQL Server Compact Chaitanya Solapurkar │ Partner Technical Consultant,
Quick Tour of the Web Technologies: The BIG picture LECTURE A bird’s eye view of the different web technologies that we shall explore and study.
COM 205 Multimedia Applications
APPX 4.3 Overview. APPX 4.3  System Administration Application Change Management (SCCS) Application Change Management (SCCS) Runtime Process Monitor.
Sharing Geographic Content
Windows.Net Programming Series Preview. Course Schedule CourseDate Microsoft.Net Fundamentals 01/13/2014 Microsoft Windows/Web Fundamentals 01/20/2014.
Copyright © 2012 Certification Partners, LLC -- All Rights Reserved Lesson 5: Multimedia on the Web.
Martin Kruliš by Martin Kruliš (v1.0)1.
Lecture 3 – Data Storage with XML+AJAX and MySQL+socket.io
RIA & Adobe Flex Yunhui Fu 11/05/2008. What’s RIA RIA (Rich Internet Applications) –web applications which look and perform like desktop applications.
CSC 2720 Building Web Applications Cookies, URL-Rewriting, Hidden Fields and Session Management.
JRun 4 & Macromedia MX Tommy Reilly JRun Engineer.
McGraw-Hill/Irwin © 2004 by The McGraw-Hill Companies, Inc. All rights reserved. Dynamic Action with Macromedia Dreamweaver MX Barry Sosinsky Valda Hilley.
© 2011 Adobe Systems Incorporated. All Rights Reserved. Adobe Confidential. Adobe Presentation Brijesh Patel | Working with AIR Native Extensions.
Stimulsoft Reports.Net 20 Problems which Stimulsoft Reports.Net solves
Obsydian OLE Automation Ranjit Sahota Chief Architect Obsydian Development Ranjit Sahota Chief Architect Obsydian Development.
XP New Perspectives on XML, 2 nd Edition Tutorial 10 1 WORKING WITH THE DOCUMENT OBJECT MODEL TUTORIAL 10.
London April 2005 London April 2005 Creating Eyeblaster Ads The Rich Media Platform The Rich Media Platform Eyeblaster.
COLD FUSION Deepak Sethi. What is it…. Cold fusion is a complete web application server mainly used for developing e-business applications. It allows.
Data File Access API : Under the Hood Simon Horwith CTO Etrilogy Ltd.
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,
June 6 th – 8 th 2005 Deployment Tool Set Synergy 2005.
Flex 2.0 Flex for ColdFusion developers Part 1. What is Flex Flex allows developers to create Flash content for Rich Internet Applications in a more programmer.
ColdFusion 9 and Flex 4: Application Development Ryan Stewart Platform Evangelist, Adobe Systems
Flex Data Communications Nick Kwiatkowski, Michigan State University.
CHAP 6. USING THE HTML5 WEB STORAGE API.  Cookie - Are a built-in way of sending text values back and forth from server to client.  Servers can use.
© 2006 Hewlett-Packard Development Company, L.P. The information contained herein is subject to change without notice HP Library Encryption - LTO4 Key.
Searching Business Data with MOSS 2007 Enterprise Search Presenter: Corey Roth Enterprise Consultant Stonebridge Blog:
2006 Adobe Systems Incorporated. All Rights Reserved. 1 Adobe RIA Technologies: Adobe Flex 3 Cornel Creanga Platform Evangelist
2006 Adobe Systems Incorporated. All Rights Reserved. 1 RIAs - Beyond the Buzz James Ward Technical Evangelist jamesward.org
Grid Chemistry System Architecture Overview Akylbek Zhumabayev.
What’s new in Kentico CMS 5.0 Michal Neuwirth Product Manager Kentico Software.
PI Data Archive Server COM Points Richard Beeson.
Creating an Example Android App in Android Studio Activity lifecycle & UI Resources.
Persistance Android. Adding Persistance SQL Refresher Understand how to create and migrate SQLLite database with android APIs. – Get all tasks – Add a.
1 Chapter 20 – Data sources and datasets Outline How to create a data source How to use a data source How to use Query Builder to build a simple query.
Copyright © 2006 Pilothouse Consulting Inc. All rights reserved. Search Overview Search Features: WSS and Office Search Architecture Content Sources and.
Microsoft Excel 2003 Illustrated Complete Data with Other Programs Exchanging.
Dissecting the Windows CE Build Process James Y. Wilson Principal Engineer, Windows Embedded MVP CalAmp, Inc. James Y. Wilson Principal Engineer, Windows.
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.
Lunch Bytes! Quick and simple nuggets to feed your appetite for knowledge. Always 15 minutes or less. Essential information FAST. A fun-filled way to cap.
© FPT SOFTWARE – TRAINING MATERIAL – Internal use 04e-BM/NS/HDCV/FSOFT v2/3 JSP Application Models.
ASP. ASP is a powerful tool for making dynamic and interactive Web pages An ASP file can contain text, HTML tags and scripts. Scripts in an ASP file are.
Fundamentals of Web DevelopmentRandy Connolly and Ricardo HoarFundamentals of Web DevelopmentRandy Connolly and Ricardo Hoar Fundamentals of Web DevelopmentRandy.
Unit-IV - Flash Player - Flex framework - MXML introduction - Action script introduction - Working with Action script - Flex data binding - Common UI components.
Purdue Pride Joe Gutierrez Tung Ho Janam Jahavier 3/3/2010Purdue Pride.
Session 11: Cookies, Sessions ans Security iNET Academy Open Source Web Development.
Main Concepts of Web Testing Telerik Software Academy Software Quality Assurance.
Excel Services Displays all or parts of interactive Excel worksheets in the browser –Excel “publish” feature with optional parameters defined in worksheet.
CHAPTER 9 File Storage Shared Preferences SQLite.
Data in Windows 10 UWP Andy Wigley XML, JSON, SQLite or EF Core ?
Ext JS - Direct Bridging The Gap A DMSBT Presentation By Timothy Chandler.
June 28 th – July 1 st 2006 Thomas Burleson Principal Architect Understanding Flex 2 Data Services “With ColdFusion, why should.
COSC405 Web Application Engineering II Slides adopted from here
Using E-Business Suite Attachments
Searching Business Data with MOSS 2007 Enterprise Search
Searching Business Data with MOSS 2007 Enterprise Search
WEB API.
Phonegap Bridge Configuration file
Lesson 5: Multimedia on the Web
Presentation transcript:

AIR: Building Desktop Applications with Flex Rob Rusher

2www.cfunited.com About Rob Rusher Principal Consultant at On3 Former Macromedia Professional Services Working with Flex from the beginning Working with AIR from the beginning Wrote the Adobe Certified AIR course Author of a few ColdFusion books Purveyor of knowledge

3www.cfunited.com About this session What AIR gives you How to create an AIR application with Flex How to implement several AIR features

4www.cfunited.com What AIR gives you Runtime (required on the client) Version of Flash Player WebKit SQLite SDK Component Library AIR Developer Tool (ADT) AIR Debug Launcher (ADL)

5www.cfunited.com More on the AIR SDK Extension to Flex API File system access Network access Embedded database Drag-n-Drop Windowing Application Update Also a JavaScript version of the API

6www.cfunited.com How to Create an AIR Application

7www.cfunited.com What did that do? Application Descriptor Required XML file Uniquely identifies your application via an Application ID com.on3solutions.myapplication Version Application Icons Initial window

8www.cfunited.com A look at the Application Descriptor com.on3solutions.feedreader Main v1 --> [This value will be overwritten by Flash Builder in the output app.xml] -->

9www.cfunited.com Lets implement these features File FileStream NativeWindow HTML SQLite

10www.cfunited.com FileFile A flash.filesystem.File object represents either a file or directory Some File methods have synchronous and asynchronous versions: –copyTo() and copyToAsync() –deleteFile() and deleteFileAsync() –moveTo() and moveToAsync() Synchronous method calls suspend execution Asynchronous method calls do not suspend code execution, but require an event listener

11www.cfunited.com Common directories

12www.cfunited.com Files on your system Additional methods to open a system dialog with a specified title, and optionally filter by an array of permitted types browseForDirectory( title ) browseForOpen( title, typeFilter ) browseForOpenMultiple( title, typeFilter )

13www.cfunited.com DisclaimerDisclaimer YOU are the ONLY one responsible for deleting files that shouldn’t be deleted.

14www.cfunited.com Deleting files Methods to recycle or delete a file’s path content deleteFile() deleteDirectory( deleteContent ) private function deleteFile( evtObj:Event, tree:FileSystemTree ):void { if( tree.selectedItem.isDirectory ) { tree.selectedItem.deleteDirectory(true); } else { tree.selectedItem.deleteFile(); } }

15www.cfunited.com FileStreamFileStream A flash.filesystem.FileStream object is used to read or write files to the file system Again, files may be opened and written synchronous or asynchronous PROGRESS and COMPLETE events are dispatched during read/write

16www.cfunited.com Using a FileStream Create a FileStream object Create File objects for the directory and file to read or write Open the file stream for synchronous or asynchronous Read or write data to the file stream –readBytes(), readUTF(), readObject(), etc. –writeBytes(), writeUTF(), writeObject(), etc. Close the file stream–close()

17www.cfunited.com WindowingWindowing NativeWindow mx:WindowedApplication, mx:Window HTMLLoader.createRootWindow, window.open()

18www.cfunited.com mx:HTMLmx:HTML Used to load HTML content within an AS application HTML text provided by the app has full system access Can eval() HTML text loaded from an external URL (including OS files) is loaded with limited security

19www.cfunited.com Drag and Drop Supported Types Bitmaps Files Text URL Strings Serialized Objects (AMF) Operations Copy Move Link

20www.cfunited.com NativeDrag classes NativeDragManager NativeDragEvent Clipboard reference Clipboard hasFormat() get/set/clearData()

21www.cfunited.com Persisting application data Embedded SQLite engine Supports AES-CBC 128-bit encryption Stores byte arrays indexed by a string key setItem, getItem, removeItem

22www.cfunited.com SQL Classes SQLConnection SQLStatement Synchronous and Asynchronous methods

23www.cfunited.com SQL Syntax Parameters ? Numbered params, 0-indexed

24www.cfunited.com Updating Applications ApplicationUpdater Use version tag in app-descriptor Migration isFirstRun isNewerVersionFunction

25www.cfunited.com Contact Info On3solutions.com