43
© 2010 Adobe Systems Incorporated. All Rights Reserved. Adobe Condential. Serge Jespers - EMEA Platform Evangelist - [email protected] - @sjespers e mobile revolution

Mobile revolution

Embed Size (px)

DESCRIPTION

As presented at SOTR 2010

Citation preview

Page 1: Mobile revolution

© 2010 Adobe Systems Incorporated. All Rights Reserved. Adobe Con!dential.

Serge Jespers - EMEA Platform Evangelist - [email protected] - @sjespers"e mobile revolution

Page 2: Mobile revolution

© 2010 Adobe Systems Incorporated. All Rights Reserved. Adobe Con!dential.

In this session: Introduction to Flash Player 10.1 and AIR 2 Design considerations New APIs in Flash Player 10.1 and AIR 2 Tools Q & hopefully A

2

Page 3: Mobile revolution

©2010 Adobe Systems Incorporated. All Rights Reserved. Adobe Con!dential. 3

Flash & AIR

Page 4: Mobile revolution

© 2010 Adobe Systems Incorporated. All Rights Reserved. Adobe Con!dential.

Web content & applications Standalone applications(Inside the browser) (Outside the browser)

Flash vs AIR

Page 5: Mobile revolution

© 2010 Adobe Systems Incorporated. All Rights Reserved. Adobe Con!dential.

Flash Player 10.1

"e only consistent browser-based runtime for connected devices

Targeting desktops, mobile phones, netbooks, tablets, and the Digital Home

On track for delivery to consumers in !rst half of 2010

Runtimes will be available over-the-air through marketplaces and Adobe.com

Page 6: Mobile revolution

© 2010 Adobe Systems Incorporated. All Rights Reserved. Adobe Con!dential.

Brings full Flash Player feature set to devices

New Features:

Multi-touch & gestures

Accelerometer

Screen orientation

Mobile text input

Device capabilities discovery

Globalization support (GSLib)

Mobile se#ings manager

Global error handling

Flash Player 10.1

Page 7: Mobile revolution

© 2010 Adobe Systems Incorporated. All Rights Reserved. Adobe Con!dential.

17MB

4MB

25MB

23MB

26MB

15MB

Flash Player 10

Flash Player 10.1

Gamma Bros

Wall-E

FP10 Demo

Flex Photo Album

Yahoo Ad

Flex Data Grid0

0

0

0

0

0

32MB

13MB

69MB

57MB

47MB

40MB

Automatic Memory Reduction

Page 8: Mobile revolution

© 2010 Adobe Systems Incorporated. All Rights Reserved. Adobe Con!dential.

Active State with Animation

6.5 hours

Low Powerwith Animation14.5 hours

Active State with Video4 hours

8

Ba#ery usage

Page 9: Mobile revolution

© 2010 Adobe Systems Incorporated. All Rights Reserved. Adobe Con!dential.

Flash Player 10.1 Showcase

Page 10: Mobile revolution

© 2010 Adobe Systems Incorporated. All Rights Reserved. Adobe Con!dential.

Browser Download

Complementary deployment mechanisms for mobile

Downloaded through on-device catalog

Bundled with System So$ware Updates

Page 11: Mobile revolution

© 2010 Adobe Systems Incorporated. All Rights Reserved. Adobe Con!dential.

Adobe AIR for smartphones (and tablets)

Adobe AIR allows developers to build standalone applications using Flash technology

Public support from Google, RIM and Motorola

First mobile operating system to be supported is Android

Provides Flash developers access to app stores

11

Page 12: Mobile revolution

© 2010 Adobe Systems Incorporated. All Rights Reserved. Adobe Con!dential.

AIR Packaging & Distribution Work%ow

.air (swf, jpg, mp3)

.air

.apk

.exe

.dmg

Page 13: Mobile revolution

© 2010 Adobe Systems Incorporated. All Rights Reserved. Adobe Con!dential.

AIR Showcase

Page 14: Mobile revolution

©2010 Adobe Systems Incorporated. All Rights Reserved. Adobe Con!dential. 14

Design

Page 15: Mobile revolution

©2010 Adobe Systems Incorporated. All Rights Reserved. Adobe Con!dential.

Context

15

Page 16: Mobile revolution

®

Copyright 2009 Adobe Systems Incorporated. All rights reserved. Adobe con!dential. #adobeAUG XL351

Page 17: Mobile revolution

®

Copyright 2009 Adobe Systems Incorporated. All rights reserved. Adobe con!dential. #adobeAUG XL351

Page 18: Mobile revolution

®

Copyright 2009 Adobe Systems Incorporated. All rights reserved. #adobeAUG XL351

FlashWrap by Ted Patrick

Page 19: Mobile revolution

®

Copyright 2009 Adobe Systems Incorporated. All rights reserved. #adobeAUG XL351

TripLog/1040

$12 99Built with

Xcode

Page 20: Mobile revolution

©2010 Adobe Systems Incorporated. All Rights Reserved. Adobe Con!dential.

800p

x

480px

20

Screens

800px

480p

x

Page 21: Mobile revolution

©2010 Adobe Systems Incorporated. All Rights Reserved. Adobe Con!dential.

44px7mm

21

Finger

Page 22: Mobile revolution

©2010 Adobe Systems Incorporated. All Rights Reserved. Adobe Con!dential.

Copyright 2009 Adobe Systems Incorporated. All rights reserved. Adobe con!dential.

22

Usually, a !nger comes with a hand

Page 23: Mobile revolution

©2010 Adobe Systems Incorporated. All Rights Reserved. Adobe Con!dential. 23

Native keyboard

Page 24: Mobile revolution

©2010 Adobe Systems Incorporated. All Rights Reserved. Adobe Con!dential. 24

Optimize your code!

http://adobe.com/go/optimize

Page 25: Mobile revolution

©2010 Adobe Systems Incorporated. All Rights Reserved. Adobe Con!dential. 25

New APIs

Page 26: Mobile revolution

®

Copyright 2010 Adobe Systems Incorporated. All rights reserved. #adobeAUG XL351

Multi-touch

Page 27: Mobile revolution

®

Copyright 2010 Adobe Systems Incorporated. All rights reserved. #adobeAUG XL351

Multi-touch• Similar to multiple mouse events

• Both multi-touch events and gesture events

• Requires multi-touch hardware (Pre#y obvious)

• Amount of touch points only limited by the hardware

• Supported in AIR 2 and FP10.1 (if the browser supports multi-touch)

Page 28: Mobile revolution

®

Copyright 2010 Adobe Systems Incorporated. All rights reserved. #adobeAUG XL351

Multi-touch / Gesturespublic function init():void

{ Multitouch.inputMode = MultitouchInputMode.GESTURE; logo.addEventListener(TransformGestureEvent.GESTURE_ROTATE, onRotate ); logo.addEventListener(TransformGestureEvent.GESTURE_ZOOM, onZoom );}private function onRotate(evt:TransformGestureEvent):void{ // pssst... you should try rotationX or Y logo.rotation += evt.rotation;}private function onZoom(evt:TransformGestureEvent):void{ logo.scaleX *= evt.scaleX; logo.scaleY *= evt.scaleY;}

Page 29: Mobile revolution

®

Copyright 2010 Adobe Systems Incorporated. All rights reserved. #adobeAUG XL351

Screen orientation

Page 30: Mobile revolution

®

Copyright 2010 Adobe Systems Incorporated. All rights reserved. #adobeAUG XL351

Screen orientation• Tells you if your app is viewed in landscape or portrait mode

• Reformat your application based on the orientation

Page 31: Mobile revolution

®

Copyright 2010 Adobe Systems Incorporated. All rights reserved. #adobeAUG XL351

Screen orientationimport flash.events.StageOrientationEvent;

stage.addEventListener("orientationChange", orientationChangedHandler);

function orientationChangedHandler(event:StageOrientationEvent){ dummy.width = stage.stageWidth - 20; dummy.height = stage.stageHeight - 20;}

Page 32: Mobile revolution

®

Copyright 2010 Adobe Systems Incorporated. All rights reserved. #adobeAUG XL351

Accelerometer

Page 33: Mobile revolution

®

Copyright 2010 Adobe Systems Incorporated. All rights reserved. #adobeAUG XL351

Accelerometer• Different from screen rotation

• Converts movement in to three dimensional coordinates

• X, Y and Z acceleration

Page 34: Mobile revolution

®

Copyright 2010 Adobe Systems Incorporated. All rights reserved. #adobeAUG XL351

Accelerometervar accelerometer = new Accelerometer();

accelerometer.addEventListener(AccelerometerEvent.UPDATE, onMove);accelerometer.setRequestedUpdateInterval(40);

function onMove(event:AccelerometerEvent):void{ var ax = event.accelerationX*20; var ay = (event.accelerationY*20)*-1; var az = event.accelerationZ; football.x += ax; football.y += ay; football.scaleX = football.scaleY = az;}

Page 35: Mobile revolution

®

Copyright 2010 Adobe Systems Incorporated. All rights reserved. #adobeAUG XL351

Geo location

Page 36: Mobile revolution

®

Copyright 2010 Adobe Systems Incorporated. All rights reserved. #adobeAUG XL351

Geo location• Get the device location coordinates

• Latitude, longitude, altitude, speed and heading

• Build your own Tom Tom ;-)

Page 37: Mobile revolution

®

Copyright 2010 Adobe Systems Incorporated. All rights reserved. #adobeAUG XL351

Geo locationimport flash.sensors.Geolocation;import flash.events.GeolocationEvent;

var geo = new Geolocation();geo.setRequestedUpdateInterval(1000);

geo.addEventListener(GeolocationEvent.UPDATE, onTravel);

function onTravel(event:GeolocationEvent):void{ long.text = event.latitude.toString(); lat.text = event.longitude.toString(); heading.text = event.heading.toString(); speed.text = event.speed.toString(); hacc.text = event.horizontalAccuracy.toString(); vacc.text = event.verticalAccuracy.toString();}

Page 38: Mobile revolution

©2010 Adobe Systems Incorporated. All Rights Reserved. Adobe Con!dential. 38

Tools

Page 39: Mobile revolution

© 2010 Adobe Systems Incorporated. All Rights Reserved. Adobe Con!dential.

Flash Builder & Flash Professional CS5

Page 40: Mobile revolution

© 2010 Adobe Systems Incorporated. All Rights Reserved. Adobe Con!dential.

Adobe Device Central CS5

Page 41: Mobile revolution

© 2010 Adobe Systems Incorporated. All Rights Reserved. Adobe Con!dential.

•All Major Device Platforms

•680 Pro!les, all Flash versions

•Custom Pro!les

•Location API support (KML, GPX)

•Accelerometer Emulation

•Improved Search Filters

•HTML5 Webkit Integration

Adobe Device Central CS5

Page 42: Mobile revolution

©2010 Adobe Systems Incorporated. All Rights Reserved. Adobe Con!dential. 42

Questions?

Page 43: Mobile revolution

© 2010 Adobe Systems Incorporated. All Rights Reserved. Adobe Con!dential.

Thank you!

[email protected]://www.webkitchen.behttp://twitter.com/sjespers