e mobile revolution
      Serge Jespers - EMEA Platform Evangelist - serge@adobe.com - @sjespers




© 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




© 2010 Adobe Systems Incorporated. All Rights Reserved. Adobe Con dential.             2
Flash & AIR

©2010 Adobe Systems Incorporated. All Rights Reserved. Adobe Con dential.   3
Flash vs AIR




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


© 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




© 2010 Adobe Systems Incorporated. All Rights Reserved. Adobe Con dential.
Flash Player 10.1

     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




© 2010 Adobe Systems Incorporated. All Rights Reserved. Adobe Con dential.
Automatic Memory Reduction


                                                                                      40MB
                 Gamma Bros
                                                       0                15MB

                                                                                           47MB
                                Wall-E
                                                       0                       26MB

                                                                                             57MB
                   FP10 Demo
                                                       0                      23MB

                                                                                                  69MB
   Flex Photo Album
                                                       0                       25MB

                                                               13MB
                        Yahoo Ad
                                                       0    4MB

                                                                                    32MB
              Flex Data Grid
                                                       0                     17MB                        Flash Player 10

                                                                                                         Flash Player 10.1

© 2010 Adobe Systems Incorporated. All Rights Reserved. Adobe Con dential.
Ba ery usage




                Active State                                                  Active State      Low Power
                with Video                                                   with Animation   with Animation
                  4 hours                                                       6.5 hours       14.5 hours
© 2010 Adobe Systems Incorporated. All Rights Reserved. Adobe Con dential.         8
Flash Player 10.1
             Showcase




© 2010 Adobe Systems Incorporated. All Rights Reserved. Adobe Con dential.
Complementary deployment mechanisms for mobile




         Bundled with System                                                 Downloaded through   Browser Download
         So ware Updates                                                     on-device catalog




© 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




 © 2010 Adobe Systems Incorporated. All Rights Reserved. Adobe Con dential.
11
AIR Packaging & Distribution Work ow



                                                                             .air



                                                                             .exe
                                                       .air
                                              (swf, jpg, mp3)
                                                                             .dmg


                                                                             .apk



© 2010 Adobe Systems Incorporated. All Rights Reserved. Adobe Con dential.
AIR Showcase




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

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




©2010 Adobe Systems Incorporated. All Rights Reserved. Adobe Con dential.   15
®




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




Copyright 2009 Adobe Systems Incorporated. All rights reserved. Adobe con dential.   #adobeAUG XL351
FlashWrap
by Ted Patrick
                                                                                     ®




 Copyright 2009 Adobe Systems Incorporated. All rights reserved.   #adobeAUG XL351
Built with
                                                                    Xcode
                                                                                                  $12   99




TripLog/1040

                                                                                                             ®




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

                     800px




                                          480px                                          800px




                                                                                 480px

©2010 Adobe Systems Incorporated. All Rights Reserved. Adobe Con dential.   20
Finger




                                                 7mm

                                         44px
                                                                            ≠



©2010 Adobe Systems Incorporated. All Rights Reserved. Adobe Con dential.       21
Usually, a nger comes with a hand




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

    Copyright 2009 Adobe Systems Incorporated. All rights reserved. Adobe con dential.
Native keyboard




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




                     http://adobe.com/go/optimize



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

©2010 Adobe Systems Incorporated. All Rights Reserved. Adobe Con dential.   25
Multi-touch

                                                                                    ®




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)




                                                                                          ®




Copyright 2010 Adobe Systems Incorporated. All rights reserved.   #adobeAUG XL351
Multi-touch / Gestures
                 public 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;
   }




                                                                                    ®




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




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




                                                                                          ®




Copyright 2010 Adobe Systems Incorporated. All rights reserved.   #adobeAUG XL351
Screen orientation
   import flash.events.StageOrientationEvent;

   stage.addEventListener("orientationChange", orientationChangedHandler);

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




                                                                                    ®




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

                                                                                    ®




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




                                                                                    ®




Copyright 2010 Adobe Systems Incorporated. All rights reserved.   #adobeAUG XL351
Accelerometer
   var 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;
   }




                                                                                    ®




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

                                                                                    ®




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 ;-)




                                                                                    ®




Copyright 2010 Adobe Systems Incorporated. All rights reserved.   #adobeAUG XL351
Geo location
   import 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();
   }




                                                                                    ®




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

©2010 Adobe Systems Incorporated. All Rights Reserved. Adobe Con dential.     38
Flash Builder & Flash Professional CS5




© 2010 Adobe Systems Incorporated. All Rights Reserved. Adobe Con dential.
Adobe Device Central CS5




© 2010 Adobe Systems Incorporated. All Rights Reserved. Adobe Con dential.
Adobe Device Central CS5



          •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




© 2010 Adobe Systems Incorporated. All Rights Reserved. Adobe Con dential.
Questions?

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

                                    serge@adobe.com
                           http://www.webkitchen.be
                           http://twitter.com/sjespers




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

Mobile revolution

  • 1.
    e mobile revolution Serge Jespers - EMEA Platform Evangelist - serge@adobe.com - @sjespers © 2010 Adobe Systems Incorporated. All Rights Reserved. Adobe Con dential.
  • 2.
    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 © 2010 Adobe Systems Incorporated. All Rights Reserved. Adobe Con dential. 2
  • 3.
    Flash & AIR ©2010Adobe Systems Incorporated. All Rights Reserved. Adobe Con dential. 3
  • 4.
    Flash vs AIR Web content & applications Standalone applications (Inside the browser) (Outside the browser) © 2010 Adobe Systems Incorporated. All Rights Reserved. Adobe Con dential.
  • 5.
    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 © 2010 Adobe Systems Incorporated. All Rights Reserved. Adobe Con dential.
  • 6.
    Flash Player 10.1  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 © 2010 Adobe Systems Incorporated. All Rights Reserved. Adobe Con dential.
  • 7.
    Automatic Memory Reduction 40MB Gamma Bros 0 15MB 47MB Wall-E 0 26MB 57MB FP10 Demo 0 23MB 69MB Flex Photo Album 0 25MB 13MB Yahoo Ad 0 4MB 32MB Flex Data Grid 0 17MB Flash Player 10 Flash Player 10.1 © 2010 Adobe Systems Incorporated. All Rights Reserved. Adobe Con dential.
  • 8.
    Ba ery usage Active State Active State Low Power with Video with Animation with Animation 4 hours 6.5 hours 14.5 hours © 2010 Adobe Systems Incorporated. All Rights Reserved. Adobe Con dential. 8
  • 9.
    Flash Player 10.1 Showcase © 2010 Adobe Systems Incorporated. All Rights Reserved. Adobe Con dential.
  • 10.
    Complementary deployment mechanismsfor mobile Bundled with System Downloaded through Browser Download So ware Updates on-device catalog © 2010 Adobe Systems Incorporated. All Rights Reserved. Adobe Con dential.
  • 11.
    Adobe AIR forsmartphones (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 © 2010 Adobe Systems Incorporated. All Rights Reserved. Adobe Con dential. 11
  • 12.
    AIR Packaging &Distribution Work ow .air .exe .air (swf, jpg, mp3) .dmg .apk © 2010 Adobe Systems Incorporated. All Rights Reserved. Adobe Con dential.
  • 13.
    AIR Showcase © 2010Adobe Systems Incorporated. All Rights Reserved. Adobe Con dential.
  • 14.
    Design ©2010 Adobe SystemsIncorporated. All Rights Reserved. Adobe Con dential. 14
  • 15.
    Context ©2010 Adobe SystemsIncorporated. All Rights Reserved. Adobe Con dential. 15
  • 16.
    ® Copyright 2009 AdobeSystems Incorporated. All rights reserved. Adobe con dential. #adobeAUG XL351
  • 17.
    ® Copyright 2009 AdobeSystems Incorporated. All rights reserved. Adobe con dential. #adobeAUG XL351
  • 18.
    FlashWrap by Ted Patrick ® Copyright 2009 Adobe Systems Incorporated. All rights reserved. #adobeAUG XL351
  • 19.
    Built with Xcode $12 99 TripLog/1040 ® Copyright 2009 Adobe Systems Incorporated. All rights reserved. #adobeAUG XL351
  • 20.
    Screens 800px 480px 800px 480px ©2010 Adobe Systems Incorporated. All Rights Reserved. Adobe Con dential. 20
  • 21.
    Finger 7mm 44px ≠ ©2010 Adobe Systems Incorporated. All Rights Reserved. Adobe Con dential. 21
  • 22.
    Usually, a ngercomes with a hand ©2010 Adobe Systems Incorporated. All Rights Reserved. Adobe Con dential. 22 Copyright 2009 Adobe Systems Incorporated. All rights reserved. Adobe con dential.
  • 23.
    Native keyboard ©2010 AdobeSystems Incorporated. All Rights Reserved. Adobe Con dential. 23
  • 24.
    Optimize your code! http://adobe.com/go/optimize ©2010 Adobe Systems Incorporated. All Rights Reserved. Adobe Con dential. 24
  • 25.
    New APIs ©2010 AdobeSystems Incorporated. All Rights Reserved. Adobe Con dential. 25
  • 26.
    Multi-touch ® Copyright 2010 Adobe Systems Incorporated. All rights reserved. #adobeAUG XL351
  • 27.
    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) ® Copyright 2010 Adobe Systems Incorporated. All rights reserved. #adobeAUG XL351
  • 28.
    Multi-touch / Gestures public 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; } ® Copyright 2010 Adobe Systems Incorporated. All rights reserved. #adobeAUG XL351
  • 29.
    Screen orientation ® Copyright 2010 Adobe Systems Incorporated. All rights reserved. #adobeAUG XL351
  • 30.
    Screen orientation • Tells you if your app is viewed in landscape or portrait mode • Reformat your application based on the orientation ® Copyright 2010 Adobe Systems Incorporated. All rights reserved. #adobeAUG XL351
  • 31.
    Screen orientation import flash.events.StageOrientationEvent; stage.addEventListener("orientationChange", orientationChangedHandler); function orientationChangedHandler(event:StageOrientationEvent) { dummy.width = stage.stageWidth - 20; dummy.height = stage.stageHeight - 20; } ® Copyright 2010 Adobe Systems Incorporated. All rights reserved. #adobeAUG XL351
  • 32.
    Accelerometer ® Copyright 2010 Adobe Systems Incorporated. All rights reserved. #adobeAUG XL351
  • 33.
    Accelerometer • Different from screen rotation • Converts movement in to three dimensional coordinates • X, Y and Z acceleration ® Copyright 2010 Adobe Systems Incorporated. All rights reserved. #adobeAUG XL351
  • 34.
    Accelerometer var 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; } ® Copyright 2010 Adobe Systems Incorporated. All rights reserved. #adobeAUG XL351
  • 35.
    Geo location ® Copyright 2010 Adobe Systems Incorporated. All rights reserved. #adobeAUG XL351
  • 36.
    Geo location • Get the device location coordinates • Latitude, longitude, altitude, speed and heading • Build your own Tom Tom ;-) ® Copyright 2010 Adobe Systems Incorporated. All rights reserved. #adobeAUG XL351
  • 37.
    Geo location import 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(); } ® Copyright 2010 Adobe Systems Incorporated. All rights reserved. #adobeAUG XL351
  • 38.
    Tools ©2010 Adobe SystemsIncorporated. All Rights Reserved. Adobe Con dential. 38
  • 39.
    Flash Builder &Flash Professional CS5 © 2010 Adobe Systems Incorporated. All Rights Reserved. Adobe Con dential.
  • 40.
    Adobe Device CentralCS5 © 2010 Adobe Systems Incorporated. All Rights Reserved. Adobe Con dential.
  • 41.
    Adobe Device CentralCS5 •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 © 2010 Adobe Systems Incorporated. All Rights Reserved. Adobe Con dential.
  • 42.
    Questions? ©2010 Adobe SystemsIncorporated. All Rights Reserved. Adobe Con dential. 42
  • 43.
    Thank you! serge@adobe.com http://www.webkitchen.be http://twitter.com/sjespers © 2010 Adobe Systems Incorporated. All Rights Reserved. Adobe Con dential.