SlideShare a Scribd company logo
XOOM with Flash and AIR Terry RyanDeveloper Evangelisthttp://terrenceryan.com@tpryan
Who are you?
Flash on Devices
Flash on MobileFlash Player 10.1 + In-browser contentGames, videoDeploy as a SWF, put on the webAir 2.5 + Mobile applicationsNative APIs, extra functionalityPackage to target individual devices
Current VersionsFlash Player 10.3Air 2.6
AIR for Devices.apk
“Native Application”AIR for Device Applications are “Native”That means they can be put on app storesNOT that the UI components are native
We can use Flash to build “native applications”
A layer above Android? Isn’t that slow?
Comb Over Charlie
Why Flash on Devices
AIR is MultiScreen
Harness Creatives
Timeout
Deeper Dive
What can AIR do?
GEO APIsGeolocation.isSupportedGeolocationEvent.UPDATEGeolocationEvent:altitudeheadinghorizontalAccuracylatitudelongitudespeedtimestampverticalAccuracy
Accelerometer APIsAccelerometer.isSupportedAccelerometerEvent.UPDATEAccelerometerEvent:accelerationXaccelerationYaccelerationZtimestamp
Multi-Touch APIsGesture OR Multitouch --- Multitouch.inputModeMultitouchInputMode.GESTURE
TransformGestureEvent
GESTURE_PAN
GESTURE_ROTATE
GESTURE_SWIPE
GESTURE_ZOOM
GestureEvent.GESTURE_TWO_FINGER_TAP
PressAndTapGestureEvent.GESTURE_PRESS_AND_TAP
MultitouchInputMode.TOUCH_POINT
TouchEvent
TOUCH_BEGIN
TOUCH_END
TOUCH_MOVE
TOUCH_OUT
TOUCH_OVER
TOUCH_ROLL_OUT
TOUCH_ROLL_OVER
TOUCH_TAPRemote DataStandard Flex Networking Libraries:HTTPServiceWebServiceRemoteObject
Camera AccessCamera - Raw camera feedCameraUI - Native Camera AppvarcameraUI:CameraUI = new CameraUI();cameraUI.launch(MediaType.IMAGE);CameraRoll - Choose photos from the device's camera rollvarcameraRoll:CameraRoll = new CameraRoll();cameraRoll.browseForImage();cameraRoll.addBitmapData(bd);21
Native App IntegrationOpen Email, Browser, Maps, Phone, or SMSnavigateToURL(new URLRequest('mailto:foo@bar.com'));navigateToURL(new URLRequest('http://www.jamesward.com'));navigateToURL(new URLRequest('http://maps.google.com/'));navigateToURL(new URLRequest('tel:1234567890'));navigateToURL(new URLRequest('sms:1234567890'));22
Local DB APIsSQLiteSQLConnectionSync and/or Async connectionsSQLStatementPrepared Statements:varstmt:SQLStatement = new SQLStatement();stmt.sqlConnection = FlexGlobals.topLevelApplication['sqlConnection'];stmt.text = "INSERT into giberish values(:giberish)";stmt.parameters[":giberish"] = g.text;stmt.execute();
StageWebViewWebStageView.isSupportedvarswv:StageWebView = new StageWebView();swv.viewPort = new Rectangle(0, stage.height - height, width, height);swv.stage = stage;swv.loadURL("http://www.jamesward.com");24
Tooling
Flash ToolingFlash ProfessionalDesigner centricTimeline based Traditional Flash ToolFlash BuilderDeveloper CentricCode basedEclipse Plugin
ActionScript
ActionScriptScripting Language for FlashObject OrientedEvent Based
Scripting LanguageLike JavaScript, PHP, ruby…Allow for manipulation of item in Flash’s world
vargreet:TextField = newTextField();greet.text = "Hello World";this.addChild(greet);
Flash Builder 4
MXML and ActionScriptCode editingVisual layoutand stylingMobile debuggingWhat is Flash Builder
DemoBoa Tarde
Flex for Mobile
Mobile Optimized Components
View NavigatorThe pattern for screens on devicesCan define transitions between viewsUses push/pop stack to move between views
Tab NavigatorTab through viewsJust set up multiple ViewNavigators with the firstViewpropertyCan’t use push/pop
ActionbarProvides easy access to important featuresWon’t scrollCan be defined globally or for each view
DemoFlash Builder in Action
Philly ETE

More Related Content

Developing for Xoom with Flash and AIR

Editor's Notes

  1. Point out currently 10.2 on most devices including Xoom.
  2. Point out currently 10.2 on most devices including Xoom.
  3. You develop with AIR but it creates an apk file that is distributable on any market. It requires the AIR runtime, but makes it easy for someone to get if they need it.
  4. Point out currently 10.2 on most devices including Xoom.
  5. Flash Builder is a professional eclipse-based Integrated Development Environment (IDE) used by developers in the creation of rich Internet application built with the Flex framework and is used by ActionScript developers creating interactive Flash content.Flash Builder includes intelligent code editing support, Design-view for visual layout and editing, and a powerful, interactive debugger and profiling tools for memory, performance and network monitoring.
  6. Point out currently 10.2 on most devices including Xoom.