SlideShare a Scribd company logo
1 of 18
Download to read offline
Multi-touch development in Flash and Flex
      Piotr Walczyszyn | Platform Evangelist




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




                                                                    h p://riaspace.net

                                        h p://twi er.com/pwalczyszyn




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

       Touch events vs. gestures
       Supported platforms and hardware
       New Flash touch API’s
       New Flash gesture API’s
       Demo
       Q&A




© 2010 Adobe Systems Incorporated. All Rights Reserved. Adobe Con dential.   3
Touch events vs. gestures

       Touch events are raw inputs
       Gestures are combinations of multiple touch events




© 2010 Adobe Systems Incorporated. All Rights Reserved. Adobe Con dential.   4
Supported platforms and hardware

       Supported by Flash Player 10.1 and AIR 2.0
       Touch
            Windows 7 and later
            iPhone OS 3.0 and later


       Gestures
            Windows 7 and later
            Macs running Mac OS X 10.5.3 and later (with multi-touch trackpads)
                  At this time only AIR applications (not swf content in the browsers)

            iPhone OS 3.0 and later




© 2010 Adobe Systems Incorporated. All Rights Reserved. Adobe Con dential.   5
WHAT’S NEW?




© 2010 Adobe Systems Incorporated. All Rights Reserved. Adobe Con dential.   6
What do we get with FP10.1 and AIR 2.0?

       flash.ui.Multitouch	
       flash.ui.MultitouchInputMode	
       flash.events.TouchEvent	
       flash.events.GestureEvent	
       flash.events.GesturePhase	
       flash.events.TransformGestureEvent	
       flash.events.PressAndTapGestureEvent	




© 2010 Adobe Systems Incorporated. All Rights Reserved. Adobe Con dential.   7
Multitouch API

       Multitouch.inputMode	
            MultitouchInputMode.GESTURE: Use this mode if you want multi-touch
             events synthesized into gesture events.
            MultitouchInputMode.TOUCH_POINT: Use this mode if you are interested
             only in touch events and no mouse or gesture events.
            MultitouchInputMode.NONE: Use this mode if you want to handle all
             touches as mouse events.
       Multitouch.maxTouchPoints	
       Multitouch.supportedGestures	
            Returns Vector.<String>	
       Multitouch.supportsGestureEvents	
       Multitouch.supportsTouchEvents	


© 2010 Adobe Systems Incorporated. All Rights Reserved. Adobe Con dential.   8
TOUCH EVENTS




© 2010 Adobe Systems Incorporated. All Rights Reserved. Adobe Con dential.   9
New Flash touch API’s

       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	




© 2010 Adobe Systems Incorporated. All Rights Reserved. Adobe Con dential.   10
New Flash touch API’s

       Touch event properties
            touchPointID: A unique identi cation number assigned to the touch point.

            isPrimaryTouchPoint: Indicates whether the rst point of contact is mapped to
              mouse events.
            pressure: A value between 0.0 and 1.0 indicating force of the contact with the
              device.
            sizeX:                  e width of the contact area.
            sizeY:                  e height of the contact area.


       New touch functions on Sprite	
            startTouchDrag: Drags the speci ed sprite on a touch-enabled device.

            stopTouchDrag: Ends the startTouchDrag() method.



© 2010 Adobe Systems Incorporated. All Rights Reserved. Adobe Con dential.   11
GESTURE EVENTS




© 2010 Adobe Systems Incorporated. All Rights Reserved. Adobe Con dential.   12
New Flash gesture API’s

       GestureEvent.GESTURE_TWO_FINGER_TAP
       PressAndTapGestureEvent.GESTURE_PRESS_AND_TAP
       TransformGestureEvent.GESTURE_PAN
       TransformGestureEvent.GESTURE_ROTATE
       TransformGestureEvent.GESTURE_SWIPE
       TransformGestureEvent.GESTURE_ZOOM




© 2010 Adobe Systems Incorporated. All Rights Reserved. Adobe Con dential.   13
Gesture events properties

       TransformGestureEvent:
            offsetX and offsetY indicate the horizontal or vertical translation of the display
              object since the previous gesture event.
            scaleX and scaleY indicate the horizontal or vertical scale of the display object
              since the previous gesture event.
            rotation indicates the current rotation angle, in degrees, of the display object
              along the z-axis since the previous gesture event.



       PressAndTapGestureEvent:
            tapLocalX and tapLocalY indicating the horizontal or vertical coordinate at
              which the event occurred relative to the containing interactive object.
            tapStageX and tapStageY indicate the horizontal or vertical coordinate at which
              the tap touch occurred in global Stage coordinates.


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




© 2010 Adobe Systems Incorporated. All Rights Reserved. Adobe Con dential.   15
Credits and Links

       Credits to Ryan Lee for le ing me use icons from h p://gesturecons.com




       Christian Cantrell’s article on:
        h p://www.adobe.com/devnet/ ash/articles/multitouch_gestures.html
       ASDocs:
        h p://help.adobe.com/en_US/FlashPlatform/beta/reference/actionscript/3/
         ash/ui/Multitouch.html



© 2010 Adobe Systems Incorporated. All Rights Reserved. Adobe Con dential.   16
Q&A




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

More Related Content

Recently uploaded

TrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law DevelopmentsTrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law DevelopmentsTrustArc
 
EMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWER
EMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWEREMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWER
EMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWERMadyBayot
 
Repurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost Saving
Repurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost SavingRepurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost Saving
Repurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost SavingEdi Saputra
 
Manulife - Insurer Transformation Award 2024
Manulife - Insurer Transformation Award 2024Manulife - Insurer Transformation Award 2024
Manulife - Insurer Transformation Award 2024The Digital Insurer
 
Why Teams call analytics are critical to your entire business
Why Teams call analytics are critical to your entire businessWhy Teams call analytics are critical to your entire business
Why Teams call analytics are critical to your entire businesspanagenda
 
AXA XL - Insurer Innovation Award Americas 2024
AXA XL - Insurer Innovation Award Americas 2024AXA XL - Insurer Innovation Award Americas 2024
AXA XL - Insurer Innovation Award Americas 2024The Digital Insurer
 
Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
Strategize a Smooth Tenant-to-tenant Migration and Copilot TakeoffStrategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoffsammart93
 
Polkadot JAM Slides - Token2049 - By Dr. Gavin Wood
Polkadot JAM Slides - Token2049 - By Dr. Gavin WoodPolkadot JAM Slides - Token2049 - By Dr. Gavin Wood
Polkadot JAM Slides - Token2049 - By Dr. Gavin WoodJuan lago vázquez
 
Apidays Singapore 2024 - Modernizing Securities Finance by Madhu Subbu
Apidays Singapore 2024 - Modernizing Securities Finance by Madhu SubbuApidays Singapore 2024 - Modernizing Securities Finance by Madhu Subbu
Apidays Singapore 2024 - Modernizing Securities Finance by Madhu Subbuapidays
 
Emergent Methods: Multi-lingual narrative tracking in the news - real-time ex...
Emergent Methods: Multi-lingual narrative tracking in the news - real-time ex...Emergent Methods: Multi-lingual narrative tracking in the news - real-time ex...
Emergent Methods: Multi-lingual narrative tracking in the news - real-time ex...Zilliz
 
Data Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt RobisonData Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt RobisonAnna Loughnan Colquhoun
 
Artificial Intelligence Chap.5 : Uncertainty
Artificial Intelligence Chap.5 : UncertaintyArtificial Intelligence Chap.5 : Uncertainty
Artificial Intelligence Chap.5 : UncertaintyKhushali Kathiriya
 
AWS Community Day CPH - Three problems of Terraform
AWS Community Day CPH - Three problems of TerraformAWS Community Day CPH - Three problems of Terraform
AWS Community Day CPH - Three problems of TerraformAndrey Devyatkin
 
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...Drew Madelung
 
"I see eyes in my soup": How Delivery Hero implemented the safety system for ...
"I see eyes in my soup": How Delivery Hero implemented the safety system for ..."I see eyes in my soup": How Delivery Hero implemented the safety system for ...
"I see eyes in my soup": How Delivery Hero implemented the safety system for ...Zilliz
 
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, AdobeApidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobeapidays
 
Exploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone ProcessorsExploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone Processorsdebabhi2
 
FWD Group - Insurer Innovation Award 2024
FWD Group - Insurer Innovation Award 2024FWD Group - Insurer Innovation Award 2024
FWD Group - Insurer Innovation Award 2024The Digital Insurer
 
MINDCTI Revenue Release Quarter One 2024
MINDCTI Revenue Release Quarter One 2024MINDCTI Revenue Release Quarter One 2024
MINDCTI Revenue Release Quarter One 2024MIND CTI
 
TrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
TrustArc Webinar - Unlock the Power of AI-Driven Data DiscoveryTrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
TrustArc Webinar - Unlock the Power of AI-Driven Data DiscoveryTrustArc
 

Recently uploaded (20)

TrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law DevelopmentsTrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
 
EMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWER
EMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWEREMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWER
EMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWER
 
Repurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost Saving
Repurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost SavingRepurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost Saving
Repurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost Saving
 
Manulife - Insurer Transformation Award 2024
Manulife - Insurer Transformation Award 2024Manulife - Insurer Transformation Award 2024
Manulife - Insurer Transformation Award 2024
 
Why Teams call analytics are critical to your entire business
Why Teams call analytics are critical to your entire businessWhy Teams call analytics are critical to your entire business
Why Teams call analytics are critical to your entire business
 
AXA XL - Insurer Innovation Award Americas 2024
AXA XL - Insurer Innovation Award Americas 2024AXA XL - Insurer Innovation Award Americas 2024
AXA XL - Insurer Innovation Award Americas 2024
 
Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
Strategize a Smooth Tenant-to-tenant Migration and Copilot TakeoffStrategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
 
Polkadot JAM Slides - Token2049 - By Dr. Gavin Wood
Polkadot JAM Slides - Token2049 - By Dr. Gavin WoodPolkadot JAM Slides - Token2049 - By Dr. Gavin Wood
Polkadot JAM Slides - Token2049 - By Dr. Gavin Wood
 
Apidays Singapore 2024 - Modernizing Securities Finance by Madhu Subbu
Apidays Singapore 2024 - Modernizing Securities Finance by Madhu SubbuApidays Singapore 2024 - Modernizing Securities Finance by Madhu Subbu
Apidays Singapore 2024 - Modernizing Securities Finance by Madhu Subbu
 
Emergent Methods: Multi-lingual narrative tracking in the news - real-time ex...
Emergent Methods: Multi-lingual narrative tracking in the news - real-time ex...Emergent Methods: Multi-lingual narrative tracking in the news - real-time ex...
Emergent Methods: Multi-lingual narrative tracking in the news - real-time ex...
 
Data Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt RobisonData Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt Robison
 
Artificial Intelligence Chap.5 : Uncertainty
Artificial Intelligence Chap.5 : UncertaintyArtificial Intelligence Chap.5 : Uncertainty
Artificial Intelligence Chap.5 : Uncertainty
 
AWS Community Day CPH - Three problems of Terraform
AWS Community Day CPH - Three problems of TerraformAWS Community Day CPH - Three problems of Terraform
AWS Community Day CPH - Three problems of Terraform
 
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
 
"I see eyes in my soup": How Delivery Hero implemented the safety system for ...
"I see eyes in my soup": How Delivery Hero implemented the safety system for ..."I see eyes in my soup": How Delivery Hero implemented the safety system for ...
"I see eyes in my soup": How Delivery Hero implemented the safety system for ...
 
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, AdobeApidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
 
Exploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone ProcessorsExploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone Processors
 
FWD Group - Insurer Innovation Award 2024
FWD Group - Insurer Innovation Award 2024FWD Group - Insurer Innovation Award 2024
FWD Group - Insurer Innovation Award 2024
 
MINDCTI Revenue Release Quarter One 2024
MINDCTI Revenue Release Quarter One 2024MINDCTI Revenue Release Quarter One 2024
MINDCTI Revenue Release Quarter One 2024
 
TrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
TrustArc Webinar - Unlock the Power of AI-Driven Data DiscoveryTrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
TrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
 

Featured

2024 State of Marketing Report – by Hubspot
2024 State of Marketing Report – by Hubspot2024 State of Marketing Report – by Hubspot
2024 State of Marketing Report – by HubspotMarius Sescu
 
Everything You Need To Know About ChatGPT
Everything You Need To Know About ChatGPTEverything You Need To Know About ChatGPT
Everything You Need To Know About ChatGPTExpeed Software
 
Product Design Trends in 2024 | Teenage Engineerings
Product Design Trends in 2024 | Teenage EngineeringsProduct Design Trends in 2024 | Teenage Engineerings
Product Design Trends in 2024 | Teenage EngineeringsPixeldarts
 
How Race, Age and Gender Shape Attitudes Towards Mental Health
How Race, Age and Gender Shape Attitudes Towards Mental HealthHow Race, Age and Gender Shape Attitudes Towards Mental Health
How Race, Age and Gender Shape Attitudes Towards Mental HealthThinkNow
 
AI Trends in Creative Operations 2024 by Artwork Flow.pdf
AI Trends in Creative Operations 2024 by Artwork Flow.pdfAI Trends in Creative Operations 2024 by Artwork Flow.pdf
AI Trends in Creative Operations 2024 by Artwork Flow.pdfmarketingartwork
 
PEPSICO Presentation to CAGNY Conference Feb 2024
PEPSICO Presentation to CAGNY Conference Feb 2024PEPSICO Presentation to CAGNY Conference Feb 2024
PEPSICO Presentation to CAGNY Conference Feb 2024Neil Kimberley
 
Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)contently
 
How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024Albert Qian
 
Social Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie InsightsSocial Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie InsightsKurio // The Social Media Age(ncy)
 
Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024Search Engine Journal
 
5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summary5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summarySpeakerHub
 
ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd Clark Boyd
 
Getting into the tech field. what next
Getting into the tech field. what next Getting into the tech field. what next
Getting into the tech field. what next Tessa Mero
 
Google's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search IntentGoogle's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search IntentLily Ray
 
Time Management & Productivity - Best Practices
Time Management & Productivity -  Best PracticesTime Management & Productivity -  Best Practices
Time Management & Productivity - Best PracticesVit Horky
 
The six step guide to practical project management
The six step guide to practical project managementThe six step guide to practical project management
The six step guide to practical project managementMindGenius
 
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...RachelPearson36
 

Featured (20)

2024 State of Marketing Report – by Hubspot
2024 State of Marketing Report – by Hubspot2024 State of Marketing Report – by Hubspot
2024 State of Marketing Report – by Hubspot
 
Everything You Need To Know About ChatGPT
Everything You Need To Know About ChatGPTEverything You Need To Know About ChatGPT
Everything You Need To Know About ChatGPT
 
Product Design Trends in 2024 | Teenage Engineerings
Product Design Trends in 2024 | Teenage EngineeringsProduct Design Trends in 2024 | Teenage Engineerings
Product Design Trends in 2024 | Teenage Engineerings
 
How Race, Age and Gender Shape Attitudes Towards Mental Health
How Race, Age and Gender Shape Attitudes Towards Mental HealthHow Race, Age and Gender Shape Attitudes Towards Mental Health
How Race, Age and Gender Shape Attitudes Towards Mental Health
 
AI Trends in Creative Operations 2024 by Artwork Flow.pdf
AI Trends in Creative Operations 2024 by Artwork Flow.pdfAI Trends in Creative Operations 2024 by Artwork Flow.pdf
AI Trends in Creative Operations 2024 by Artwork Flow.pdf
 
Skeleton Culture Code
Skeleton Culture CodeSkeleton Culture Code
Skeleton Culture Code
 
PEPSICO Presentation to CAGNY Conference Feb 2024
PEPSICO Presentation to CAGNY Conference Feb 2024PEPSICO Presentation to CAGNY Conference Feb 2024
PEPSICO Presentation to CAGNY Conference Feb 2024
 
Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)
 
How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024
 
Social Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie InsightsSocial Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie Insights
 
Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024
 
5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summary5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summary
 
ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd
 
Getting into the tech field. what next
Getting into the tech field. what next Getting into the tech field. what next
Getting into the tech field. what next
 
Google's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search IntentGoogle's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search Intent
 
How to have difficult conversations
How to have difficult conversations How to have difficult conversations
How to have difficult conversations
 
Introduction to Data Science
Introduction to Data ScienceIntroduction to Data Science
Introduction to Data Science
 
Time Management & Productivity - Best Practices
Time Management & Productivity -  Best PracticesTime Management & Productivity -  Best Practices
Time Management & Productivity - Best Practices
 
The six step guide to practical project management
The six step guide to practical project managementThe six step guide to practical project management
The six step guide to practical project management
 
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
 

Multi-touch development with Flash and Flex

  • 1. Multi-touch development in Flash and Flex Piotr Walczyszyn | Platform Evangelist © 2010 Adobe Systems Incorporated. All Rights Reserved. Adobe Con dential.
  • 2. About Me h p://riaspace.net h p://twi er.com/pwalczyszyn © 2010 Adobe Systems Incorporated. All Rights Reserved. Adobe Con dential. 2
  • 3. Agenda   Touch events vs. gestures   Supported platforms and hardware   New Flash touch API’s   New Flash gesture API’s   Demo   Q&A © 2010 Adobe Systems Incorporated. All Rights Reserved. Adobe Con dential. 3
  • 4. Touch events vs. gestures   Touch events are raw inputs   Gestures are combinations of multiple touch events © 2010 Adobe Systems Incorporated. All Rights Reserved. Adobe Con dential. 4
  • 5. Supported platforms and hardware   Supported by Flash Player 10.1 and AIR 2.0   Touch   Windows 7 and later   iPhone OS 3.0 and later   Gestures   Windows 7 and later   Macs running Mac OS X 10.5.3 and later (with multi-touch trackpads)   At this time only AIR applications (not swf content in the browsers)   iPhone OS 3.0 and later © 2010 Adobe Systems Incorporated. All Rights Reserved. Adobe Con dential. 5
  • 6. WHAT’S NEW? © 2010 Adobe Systems Incorporated. All Rights Reserved. Adobe Con dential. 6
  • 7. What do we get with FP10.1 and AIR 2.0?   flash.ui.Multitouch   flash.ui.MultitouchInputMode   flash.events.TouchEvent   flash.events.GestureEvent   flash.events.GesturePhase   flash.events.TransformGestureEvent   flash.events.PressAndTapGestureEvent © 2010 Adobe Systems Incorporated. All Rights Reserved. Adobe Con dential. 7
  • 8. Multitouch API   Multitouch.inputMode   MultitouchInputMode.GESTURE: Use this mode if you want multi-touch events synthesized into gesture events.   MultitouchInputMode.TOUCH_POINT: Use this mode if you are interested only in touch events and no mouse or gesture events.   MultitouchInputMode.NONE: Use this mode if you want to handle all touches as mouse events.   Multitouch.maxTouchPoints   Multitouch.supportedGestures   Returns Vector.<String>   Multitouch.supportsGestureEvents   Multitouch.supportsTouchEvents © 2010 Adobe Systems Incorporated. All Rights Reserved. Adobe Con dential. 8
  • 9. TOUCH EVENTS © 2010 Adobe Systems Incorporated. All Rights Reserved. Adobe Con dential. 9
  • 10. New Flash touch API’s   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 © 2010 Adobe Systems Incorporated. All Rights Reserved. Adobe Con dential. 10
  • 11. New Flash touch API’s   Touch event properties   touchPointID: A unique identi cation number assigned to the touch point.   isPrimaryTouchPoint: Indicates whether the rst point of contact is mapped to mouse events.   pressure: A value between 0.0 and 1.0 indicating force of the contact with the device.   sizeX: e width of the contact area.   sizeY: e height of the contact area.   New touch functions on Sprite   startTouchDrag: Drags the speci ed sprite on a touch-enabled device.   stopTouchDrag: Ends the startTouchDrag() method. © 2010 Adobe Systems Incorporated. All Rights Reserved. Adobe Con dential. 11
  • 12. GESTURE EVENTS © 2010 Adobe Systems Incorporated. All Rights Reserved. Adobe Con dential. 12
  • 13. New Flash gesture API’s   GestureEvent.GESTURE_TWO_FINGER_TAP   PressAndTapGestureEvent.GESTURE_PRESS_AND_TAP   TransformGestureEvent.GESTURE_PAN   TransformGestureEvent.GESTURE_ROTATE   TransformGestureEvent.GESTURE_SWIPE   TransformGestureEvent.GESTURE_ZOOM © 2010 Adobe Systems Incorporated. All Rights Reserved. Adobe Con dential. 13
  • 14. Gesture events properties   TransformGestureEvent:   offsetX and offsetY indicate the horizontal or vertical translation of the display object since the previous gesture event.   scaleX and scaleY indicate the horizontal or vertical scale of the display object since the previous gesture event.   rotation indicates the current rotation angle, in degrees, of the display object along the z-axis since the previous gesture event.   PressAndTapGestureEvent:   tapLocalX and tapLocalY indicating the horizontal or vertical coordinate at which the event occurred relative to the containing interactive object.   tapStageX and tapStageY indicate the horizontal or vertical coordinate at which the tap touch occurred in global Stage coordinates. © 2010 Adobe Systems Incorporated. All Rights Reserved. Adobe Con dential. 14
  • 15. DEMO © 2010 Adobe Systems Incorporated. All Rights Reserved. Adobe Con dential. 15
  • 16. Credits and Links   Credits to Ryan Lee for le ing me use icons from h p://gesturecons.com   Christian Cantrell’s article on: h p://www.adobe.com/devnet/ ash/articles/multitouch_gestures.html   ASDocs: h p://help.adobe.com/en_US/FlashPlatform/beta/reference/actionscript/3/ ash/ui/Multitouch.html © 2010 Adobe Systems Incorporated. All Rights Reserved. Adobe Con dential. 16
  • 17. Q&A © 2010 Adobe Systems Incorporated. All Rights Reserved. Adobe Con dential. 17
  • 18. © 2010 Adobe Systems Incorporated. All Rights Reserved. Adobe Con dential.

Editor's Notes

  1. Touch events are similar to mouse events, except that you can receive and track more than one of them at once, and touch events do not support mouse-specific concepts such as hovering.Gestures are the synthesis of multiple touch events into a single event. Examples of gestures include &quot;pinching&quot; an image to scale it, or &quot;swiping&quot; to delete something from a list. Some platforms explicitly support the concept of gestures, reducing the amount of work that a developer needs to do in order to detect and react to them, and some platforms require developers to capture multiple touch events and synthesize them into gestures themselves. The Flash Platform automatically synthesizes the most common gestures across different platforms, but also provides developers with the APIs necessary to synthesize their own.