1. What’s new in Flash
Player 10.1 and AIR 2
SERGE JESPERS
EMEA PLATFORM EVANGELIST
serge@adobe.com
http://www.webkitchen.be
http://twitter.com/sjespers
®
Copyright 2010 Adobe Systems Incorporated. All rights reserved. #adobeAUG XL351
2. Content protection Accelerometer support
Storage volume detection
Server sockets Improved printing
Nested transactions Native process
Globalization API Accessibility
Multi-touch Peer assisted networking
Exit event on shutdownFile promises
UDP support Stream enhancements
Gestures NetworkInfo API
Encrypted sockets Lower CPU consumption
WebKit upgrades
OS download security dialog
IPv6 support Lower memory consumption
Open Files with default application
Screen orientation API Designed for mobile
Local audio encoding
Rendering engine improvements
Private browsing mode
Copyright 2010 Adobe Systems Incorporated. All rights reserved.
®
3. Content protection Accelerometer support
Storage volume detection
Server sockets Improved printing
Nested transactions Native process
Globalization API Accessibility
Multi-touch Peer assisted networking
Exit event on shutdownFile promises
UDP support Stream enhancements
Gestures NetworkInfo API
Encrypted sockets Lower CPU consumption
WebKit upgrades
OS download security dialog
A lot!
IPv6 support Lower memory consumption
Open Files with default application
Screen orientation API Designed for mobile
Local audio encoding
Rendering engine improvements
Private browsing mode
Copyright 2010 Adobe Systems Incorporated. All rights reserved.
®
4. Content protection Accelerometer support
Storage volume detection
Server sockets Improved printing
Nested transactions Native process
Globalization API Accessibility
Multi-touch Peer assisted networking
Impossible to
Exit event on shutdownFile promises
UDP support Stream enhancements
Gestures NetworkInfo API
WebKit upgradescover everything!
Encrypted sockets Lower CPU consumption
OS download security dialog
IPv6 support Lower memory consumption
Open Files with default application
Screen orientation API Designed for mobile
Local audio encoding
Rendering engine improvements
Private browsing mode
Copyright 2010 Adobe Systems Incorporated. All rights reserved.
®
5. Multi-touch
®
Copyright 2010 Adobe Systems Incorporated. All rights reserved. #adobeAUG XL351
6. Multi-touch
• Similar to multiple mouse events
• Both multi-touch events and gesture events
• Requires multi-touch hardware (Pre y obvious)
• Windows 7+
• OSX 10.6 + multi-touch trackpad (gestures only)
• Mobile
• 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
7. Multi-touch
• PROPERTIES
Multitouch.inputMode
GESTURE / TOUCH_POINT / NONE
Multitouch.supportsGestureEvents
Multitouch.supportsTouchEvents
Multitouch.maxTouchPoints
Multitouch.supportedGestures
®
Copyright 2010 Adobe Systems Incorporated. All rights reserved. #adobeAUG XL351
8. Multi-touch
• TouchEvent Events
TouchEvent.TOUCH_BEGIN
TouchEvent.TOUCH_END
TouchEvent.TOUCH_MOVE
TouchEvent.TOUCH_OUT
TouchEvent.TOUCH_OVER
TouchEvent.TOUCH_ROLL_OUT
TouchEvent.TOUCH_ROLL_OVER
TouchEvent.TOUCH_TAP
®
Copyright 2010 Adobe Systems Incorporated. All rights reserved. #adobeAUG XL351
9. Multi-touch
• TouchEvent Properties
TouchEvent.altKey / commandKey / controlKey /
ctrlKey / shiftKey
TouchEvent.isPrimaryTouchPoint
TouchEvent.pressure
TouchEvent.sizeX / sizeY
®
Copyright 2010 Adobe Systems Incorporated. All rights reserved. #adobeAUG XL351
10. Multi-touch
• TransformGestureEvent
TransformGestureEvent.GESTURE_PAN
TransformGestureEvent.GESTURE_ROTATE
TransformGestureEvent.GESTURE_SWIPE
TransformGestureEvent.GESTURE_ZOOM
• PressAndTapGestureEvent
PressAndTapGestureEvent.GESTURE_PRESS_AND_TAP
®
Copyright 2010 Adobe Systems Incorporated. All rights reserved. #adobeAUG XL351
11. Multi-touch
• GestureEvent Properties
GestureEvent.altKey / commandKey / controlKey /
ctrlKey / shiftKey
GestureEvent.phase
®
Copyright 2010 Adobe Systems Incorporated. All rights reserved. #adobeAUG XL351
12. Multi-touch
• Demos
fitc_multitouch
fitc_gestures
®
Copyright 2010 Adobe Systems Incorporated. All rights reserved. #adobeAUG XL351
13. Local audio
encoding
®
Copyright 2010 Adobe Systems Incorporated. All rights reserved. #adobeAUG XL351
14. Local audio encoding
• Access raw audio data from the microphone on the client
• Uses the sampleData event to capture audio data from a
microphone
®
Copyright 2010 Adobe Systems Incorporated. All rights reserved. #adobeAUG XL351
15. Local audio encoding
• DEMO
fitc_microphone
®
Copyright 2010 Adobe Systems Incorporated. All rights reserved. #adobeAUG XL351
16. Global error
handling
®
Copyright 2010 Adobe Systems Incorporated. All rights reserved. #adobeAUG XL351
17. Global error handling
• Most requested feature
• One error handler for all uncaught errors...
• Not an excuse to not write error handlers!
• Does not show error popup to user (if on non-debug version)
®
Copyright 2010 Adobe Systems Incorporated. All rights reserved. #adobeAUG XL351
18. Global error handling
• DEMO
fitc_globalerror
®
Copyright 2010 Adobe Systems Incorporated. All rights reserved. #adobeAUG XL351
19. Opening files
®
Copyright 2010 Adobe Systems Incorporated. All rights reserved. #adobeAUG XL351
20. Opening les
• Open les in their default application
• Don’t need to know which app to open
• Works cross platform
®
Copyright 2010 Adobe Systems Incorporated. All rights reserved. #adobeAUG XL351
21. Opening les
• DEMO
fitc_openwithnativeapp
®
Copyright 2010 Adobe Systems Incorporated. All rights reserved. #adobeAUG XL351
22. Native Process
®
Copyright 2010 Adobe Systems Incorporated. All rights reserved. #adobeAUG XL351
23. Native process
• Launch and communicate with native processes
• Bundle your AIR app with your executables
• Build native installers
• .DMG for Mac
• .EXE for Windows
• .DEB or .RPM for Linux
®
Copyright 2010 Adobe Systems Incorporated. All rights reserved. #adobeAUG XL351
24. Native process
• DEMO
air2_NativeProcess
command line packager
package assistant
®
Copyright 2010 Adobe Systems Incorporated. All rights reserved. #adobeAUG XL351
25. Storage detection
®
Copyright 2010 Adobe Systems Incorporated. All rights reserved. #adobeAUG XL351
26. Storage detection
• Listen for mounting and unmounting storage volumes
• List accessible volumes and its info (drive le er, type, writable, ...)
®
Copyright 2010 Adobe Systems Incorporated. All rights reserved. #adobeAUG XL351
27. Storage detection
• DEMO
fitc_storagedetection
®
Copyright 2010 Adobe Systems Incorporated. All rights reserved. #adobeAUG XL351
28. Quickies
®
Copyright 2010 Adobe Systems Incorporated. All rights reserved. #adobeAUG XL351
29. Quickies
• New print enhancements
• Vector printing on Mac
• Complete control over printjob
• Updated WebKit version (same version as Safari 4.0.3)
• JavaScript 50% faster (SquirrelFish engine)
• CSS3
• Canvas
®
Copyright 2010 Adobe Systems Incorporated. All rights reserved. #adobeAUG XL351
30. Quickies
• New networking support
• Sockets (UDP, server sockets)
• DNS lookup
• Network interface enumeration
• Screen reader support (on Windows)
• Maximum window size doubled (4095x4095)
• More...
®
Copyright 2010 Adobe Systems Incorporated. All rights reserved. #adobeAUG XL351
31. Where to go
from here?
®
Copyright 2010 Adobe Systems Incorporated. All rights reserved. #adobeAUG XL351
32. Where to go from here?
• h p://labs.adobe.com
• h p://adobe.com/devnet
• h p://tv.adobe.com
• h p:// ex.org/tour
• Lunch!
®
Copyright 2010 Adobe Systems Incorporated. All rights reserved. #adobeAUG XL351
33. Where to go from here?
• DEMO
Me packing up and getting a sandwich
®
Copyright 2010 Adobe Systems Incorporated. All rights reserved. #adobeAUG XL351