SlideShare uma empresa Scribd logo
1 de 16
Baixar para ler offline
Multi-touch development in Flash and Flex
About Me


    Senthil kumar .S

           Senior RIA Engineer

            http://sensaran.wordpress.com
Agenda

 Flow of Input from user to Run Time
 Supported Platform and Hardware
 Touch Events vs gestures
 The API for handling user interaction
 New Flex Touch Events
 New Flex Gesture Events
 Code
Flow of Input from user to Run Time
              User



              Device


          Operating System



           Application



          Flash Run Time
Supported Platforms and hardware
Supported by Flash Player 10.1 and Air 2.0
 Touch
    Windows 7 and later.
    Mac OS X 10.5.3 and later
    iphone OS 3.0 and later.
    Android 2.2 , Windows 6.5
 Gesture
    Windows 7 and later.
    Mac OS X 10.5.3 and later
    iphone OS 3.0 and later.
    Android 2.2 , Windows 6.5
What is New For MultiTouch?
Touch events vs gestures


• Touch events       Input with a single point
                     device
• Gesture events     One or more touch
                   for eg,user rotates
                   the rectangle using
                   two fingers or zoom
Important concepts and terms In Touch

  Discovery API.
  Touch event .
  Touch point.
  Multi touch event.
  Gesture event.
  Phases.
  Stylus.
  Press-and-tap .
• Touch Events
TouchEvent class


 •   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
• Gesture Events
Gesture event types.

  • TransformGestureEvent.GESTURE_PAN



  • TransformGestureEvent.GESTURE_ROTATE



  • TransformGestureEvent.GESTURE_SWIPE



  • TransformGestureEvent.GESTURE_ZOOM
Multitouch and gesture support
•     Windows 7
TransformGestureEvent.GESTURE_PAN
TransformGestureEvent.GESTURE_ROTATE
TransformGestureEvent.GESTURE_ZOOM
PressAndTapGestureEvent.GESTURE_PRESS_AND_TAP


•     Mac OS X 10.5.3 and later + iPhone
TransformGestureEvent.GESTURE_PAN
TransformGestureEvent.GESTURE_ROTATE
TransformGestureEvent.GESTURE_SWIPE
TransformGestureEvent.GESTURE_ZOOM


•     Windows Mobile 6.5
    TransformGestureEvent.GESTURE_PAN
• DEM0 CODE
    import mx.core.UIComponent;
    import flash.ui.Multitouch;
    import flash.ui.MultitouchInputMode
    public function init( ) :void {
    // check the Status of the Touch Input....
    if(Capabilities.touchscreenType == TouchscreenType.NONE){
        Multitouch.inputMode = MultitouchInputMode.NONE;
    }
    if(Capabilities.touchscreenType ==     TouchscreenType.FINGER)
    {
     Multitouch.inputMode = MultitouchInputMode.TOUCH_POINT;
    }
    if(Capabilities.touchscreenType ==    TouchscreenType.STYLUS){
     Multitouch.inputMode = MultitouchInputMode.GESTURE;
    }
var mySprite:Sprite = new Sprite();
    var    uiCon:UIComponent = new UIComponent();
    addChild(uiCon);
    mySprite.graphics.beginFill(0x336699);
    mySprite.graphics.drawRect(50,50,100,100);
    uiCon.addChild(mySprite);
    mySprite.addEventListener(TouchEvent.TOUCH_BEGIN, onTouchBegin)
    mySprite.addEventListener(TouchEvent.TOUCH_MOVE, onTouchMove)
    mySprite.addEventListener(TouchEvent.TOUCH_END, onTouchEnd)
}
private function onTouchBegin( event :TouchEvent ) :void   {
    event.target.startTouchDrag(event.touchPointID);
    event.target.scaleX *= 0.5
    event.target.scaleY *= 0.5
}
// Function will trigger when function Move
private function onTouchMove( event :TouchEvent ) :void {
event.target.alpha = 0.5
}
// Here the Touch End
private function onTouchEnd( event :TouchEvent ) :void
{
event.target.stopTouchDrag(event.touchPointID);
event.target.width = 240;
event.target.height = 240;
event.target.alpha = 1;
}

Mais conteúdo relacionado

Mais procurados

Multi-Touch System
Multi-Touch SystemMulti-Touch System
Multi-Touch System
kerry14cn
 
Multi Touch Introduction
Multi Touch IntroductionMulti Touch Introduction
Multi Touch Introduction
Bram Vandeputte
 
Touch Less Touch Screen Technology
Touch Less Touch Screen TechnologyTouch Less Touch Screen Technology
Touch Less Touch Screen Technology
ijtsrd
 
Touchscreen technology
Touchscreen technologyTouchscreen technology
Touchscreen technology
Jita Mitra
 
Touch Technology....ppt
Touch Technology....pptTouch Technology....ppt
Touch Technology....ppt
hashgeneration
 

Mais procurados (20)

Multi-Touch System
Multi-Touch SystemMulti-Touch System
Multi-Touch System
 
Multi Touch And Gesture Event Interface And Types
Multi Touch And Gesture Event Interface And TypesMulti Touch And Gesture Event Interface And Types
Multi Touch And Gesture Event Interface And Types
 
Multi Touch Introduction
Multi Touch IntroductionMulti Touch Introduction
Multi Touch Introduction
 
multitouch screen
multitouch screenmultitouch screen
multitouch screen
 
Multi touch interaction
Multi touch interactionMulti touch interaction
Multi touch interaction
 
Multi touch
Multi touchMulti touch
Multi touch
 
Ppt on touch screen
Ppt on touch screenPpt on touch screen
Ppt on touch screen
 
Multi touch technology
Multi touch technologyMulti touch technology
Multi touch technology
 
zForce Touch Screen Technology
zForce Touch Screen TechnologyzForce Touch Screen Technology
zForce Touch Screen Technology
 
14 561
14 56114 561
14 561
 
Touch Less Touch Screen Technology
Touch Less Touch Screen TechnologyTouch Less Touch Screen Technology
Touch Less Touch Screen Technology
 
Touchscreen PPT
Touchscreen PPTTouchscreen PPT
Touchscreen PPT
 
Touchless Touchscreen
Touchless TouchscreenTouchless Touchscreen
Touchless Touchscreen
 
Touchscreen technology
Touchscreen technologyTouchscreen technology
Touchscreen technology
 
Touchscreen
TouchscreenTouchscreen
Touchscreen
 
Touchscreen technology
Touchscreen technologyTouchscreen technology
Touchscreen technology
 
Touchscreen-MOBILE TECHNOLOGY
Touchscreen-MOBILE TECHNOLOGYTouchscreen-MOBILE TECHNOLOGY
Touchscreen-MOBILE TECHNOLOGY
 
Touch Technology....ppt
Touch Technology....pptTouch Technology....ppt
Touch Technology....ppt
 
Touchless touchscreen
Touchless touchscreenTouchless touchscreen
Touchless touchscreen
 
Touch screen and Touchless technology
Touch screen and Touchless technologyTouch screen and Touchless technology
Touch screen and Touchless technology
 

Destaque

Ambient back scatter
Ambient back scatterAmbient back scatter
Ambient back scatter
Che Tna
 

Destaque (9)

Buck-Boost Converter
Buck-Boost ConverterBuck-Boost Converter
Buck-Boost Converter
 
Brain Finger Printing Technology
Brain Finger Printing TechnologyBrain Finger Printing Technology
Brain Finger Printing Technology
 
Ambient back scatter
Ambient back scatterAmbient back scatter
Ambient back scatter
 
Clinical information system
Clinical information systemClinical information system
Clinical information system
 
BIG DATA TO AVOID WEATHER RELATED FLIGHT DELAYS PPT
BIG DATA TO AVOID WEATHER RELATED FLIGHT DELAYS PPTBIG DATA TO AVOID WEATHER RELATED FLIGHT DELAYS PPT
BIG DATA TO AVOID WEATHER RELATED FLIGHT DELAYS PPT
 
Big Data For Flight Delay Report
Big Data For Flight Delay ReportBig Data For Flight Delay Report
Big Data For Flight Delay Report
 
Brain fingerprinting
Brain fingerprintingBrain fingerprinting
Brain fingerprinting
 
Airline flights delay prediction- 2014 Spring Data Mining Project
Airline flights delay prediction- 2014 Spring Data Mining ProjectAirline flights delay prediction- 2014 Spring Data Mining Project
Airline flights delay prediction- 2014 Spring Data Mining Project
 
Brain Fingerprinting PPT
Brain Fingerprinting PPTBrain Fingerprinting PPT
Brain Fingerprinting PPT
 

Semelhante a Multi Touch presentation

Flash Lite & Touch: build an iPhone-like dynamic list
Flash Lite & Touch: build an iPhone-like dynamic listFlash Lite & Touch: build an iPhone-like dynamic list
Flash Lite & Touch: build an iPhone-like dynamic list
Small Screen Design
 
Session 12 - Overview of taps, multitouch, and gestures
Session 12 - Overview of taps, multitouch, and gestures Session 12 - Overview of taps, multitouch, and gestures
Session 12 - Overview of taps, multitouch, and gestures
Vu Tran Lam
 
Air on Mobile (2011)
Air on Mobile (2011)Air on Mobile (2011)
Air on Mobile (2011)
Maso Lin
 
Ch10 - Programming for Touchscreens and Mobile Devices
Ch10 - Programming for Touchscreens and Mobile DevicesCh10 - Programming for Touchscreens and Mobile Devices
Ch10 - Programming for Touchscreens and Mobile Devices
dcomfort6819
 
Getting touchy - an introduction to touch events / Sainté Mobile Days / Saint...
Getting touchy - an introduction to touch events / Sainté Mobile Days / Saint...Getting touchy - an introduction to touch events / Sainté Mobile Days / Saint...
Getting touchy - an introduction to touch events / Sainté Mobile Days / Saint...
Patrick Lauke
 

Semelhante a Multi Touch presentation (20)

Developing Multi Touch Applications
Developing Multi Touch ApplicationsDeveloping Multi Touch Applications
Developing Multi Touch Applications
 
Pc03
Pc03Pc03
Pc03
 
Mobile Application Development class 005
Mobile Application Development class 005Mobile Application Development class 005
Mobile Application Development class 005
 
Win7 Multi Touch
Win7 Multi TouchWin7 Multi Touch
Win7 Multi Touch
 
Flash Lite & Touch: build an iPhone-like dynamic list
Flash Lite & Touch: build an iPhone-like dynamic listFlash Lite & Touch: build an iPhone-like dynamic list
Flash Lite & Touch: build an iPhone-like dynamic list
 
Tips for building fast multi touch enabled web sites
 Tips for building fast multi touch enabled web sites Tips for building fast multi touch enabled web sites
Tips for building fast multi touch enabled web sites
 
Fast multi touch enabled web sites
Fast multi touch enabled web sitesFast multi touch enabled web sites
Fast multi touch enabled web sites
 
Session 12 - Overview of taps, multitouch, and gestures
Session 12 - Overview of taps, multitouch, and gestures Session 12 - Overview of taps, multitouch, and gestures
Session 12 - Overview of taps, multitouch, and gestures
 
Getting touchy - an introduction to touch and pointer events / TPAC 2016 / Li...
Getting touchy - an introduction to touch and pointer events / TPAC 2016 / Li...Getting touchy - an introduction to touch and pointer events / TPAC 2016 / Li...
Getting touchy - an introduction to touch and pointer events / TPAC 2016 / Li...
 
Developing Series 40 Java Apps for Multiple UI Patterns
Developing Series 40 Java Apps for Multiple UI PatternsDeveloping Series 40 Java Apps for Multiple UI Patterns
Developing Series 40 Java Apps for Multiple UI Patterns
 
Air on Mobile (2011)
Air on Mobile (2011)Air on Mobile (2011)
Air on Mobile (2011)
 
Advance ui development and design
Advance ui  development and design Advance ui  development and design
Advance ui development and design
 
Ch10 - Programming for Touchscreens and Mobile Devices
Ch10 - Programming for Touchscreens and Mobile DevicesCh10 - Programming for Touchscreens and Mobile Devices
Ch10 - Programming for Touchscreens and Mobile Devices
 
Mobile Web on Touch Event and YUI
Mobile Web on Touch Event and YUIMobile Web on Touch Event and YUI
Mobile Web on Touch Event and YUI
 
Take a Ride on the Metro
Take a Ride on the MetroTake a Ride on the Metro
Take a Ride on the Metro
 
What is Event
What is EventWhat is Event
What is Event
 
Getting touchy - an introduction to touch events / Sainté Mobile Days / Saint...
Getting touchy - an introduction to touch events / Sainté Mobile Days / Saint...Getting touchy - an introduction to touch events / Sainté Mobile Days / Saint...
Getting touchy - an introduction to touch events / Sainté Mobile Days / Saint...
 
Virtual Network Computing Based Droid desktop
Virtual Network Computing Based Droid desktopVirtual Network Computing Based Droid desktop
Virtual Network Computing Based Droid desktop
 
Android Training - Pull to Refresh
Android Training - Pull to RefreshAndroid Training - Pull to Refresh
Android Training - Pull to Refresh
 
tL20 event handling
tL20 event handlingtL20 event handling
tL20 event handling
 

Mais de senthil0809 (9)

First look on python
First look on pythonFirst look on python
First look on python
 
Enterprise search with apache solr
Enterprise search with apache solrEnterprise search with apache solr
Enterprise search with apache solr
 
Get started with R lang
Get started with R langGet started with R lang
Get started with R lang
 
Big data with HDFS and Mapreduce
Big data  with HDFS and MapreduceBig data  with HDFS and Mapreduce
Big data with HDFS and Mapreduce
 
Big data - Apache Hadoop for Beginner's
Big data - Apache Hadoop for Beginner'sBig data - Apache Hadoop for Beginner's
Big data - Apache Hadoop for Beginner's
 
AIR - Framework ( Cairngorm and Parsley )
AIR - Framework ( Cairngorm and Parsley )AIR - Framework ( Cairngorm and Parsley )
AIR - Framework ( Cairngorm and Parsley )
 
Exploring Layouts and Providers
Exploring Layouts and ProvidersExploring Layouts and Providers
Exploring Layouts and Providers
 
Exploring Adobe Flex
Exploring Adobe Flex Exploring Adobe Flex
Exploring Adobe Flex
 
Flex Introduction
Flex Introduction Flex Introduction
Flex Introduction
 

Último

Finding Java's Hidden Performance Traps @ DevoxxUK 2024
Finding Java's Hidden Performance Traps @ DevoxxUK 2024Finding Java's Hidden Performance Traps @ DevoxxUK 2024
Finding Java's Hidden Performance Traps @ DevoxxUK 2024
Victor Rentea
 

Último (20)

MS Copilot expands with MS Graph connectors
MS Copilot expands with MS Graph connectorsMS Copilot expands with MS Graph connectors
MS Copilot expands with MS Graph connectors
 
Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...
Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...
Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...
 
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
 
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
 
Finding Java's Hidden Performance Traps @ DevoxxUK 2024
Finding Java's Hidden Performance Traps @ DevoxxUK 2024Finding Java's Hidden Performance Traps @ DevoxxUK 2024
Finding Java's Hidden Performance Traps @ DevoxxUK 2024
 
Navigating the Deluge_ Dubai Floods and the Resilience of Dubai International...
Navigating the Deluge_ Dubai Floods and the Resilience of Dubai International...Navigating the Deluge_ Dubai Floods and the Resilience of Dubai International...
Navigating the Deluge_ Dubai Floods and the Resilience of Dubai International...
 
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
 
Exploring Multimodal Embeddings with Milvus
Exploring Multimodal Embeddings with MilvusExploring Multimodal Embeddings with Milvus
Exploring Multimodal Embeddings with Milvus
 
2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...
 
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
 
Rising Above_ Dubai Floods and the Fortitude of Dubai International Airport.pdf
Rising Above_ Dubai Floods and the Fortitude of Dubai International Airport.pdfRising Above_ Dubai Floods and the Fortitude of Dubai International Airport.pdf
Rising Above_ Dubai Floods and the Fortitude of Dubai International Airport.pdf
 
DEV meet-up UiPath Document Understanding May 7 2024 Amsterdam
DEV meet-up UiPath Document Understanding May 7 2024 AmsterdamDEV meet-up UiPath Document Understanding May 7 2024 Amsterdam
DEV meet-up UiPath Document Understanding May 7 2024 Amsterdam
 
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
 
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
 
Apidays New York 2024 - The value of a flexible API Management solution for O...
Apidays New York 2024 - The value of a flexible API Management solution for O...Apidays New York 2024 - The value of a flexible API Management solution for O...
Apidays New York 2024 - The value of a flexible API Management solution for O...
 
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 New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...
Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...
Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...
 
How to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerHow to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected Worker
 
Cyberprint. Dark Pink Apt Group [EN].pdf
Cyberprint. Dark Pink Apt Group [EN].pdfCyberprint. Dark Pink Apt Group [EN].pdf
Cyberprint. Dark Pink Apt Group [EN].pdf
 
ICT role in 21st century education and its challenges
ICT role in 21st century education and its challengesICT role in 21st century education and its challenges
ICT role in 21st century education and its challenges
 

Multi Touch presentation

  • 1. Multi-touch development in Flash and Flex
  • 2. About Me Senthil kumar .S Senior RIA Engineer http://sensaran.wordpress.com
  • 3. Agenda Flow of Input from user to Run Time Supported Platform and Hardware Touch Events vs gestures The API for handling user interaction New Flex Touch Events New Flex Gesture Events Code
  • 4. Flow of Input from user to Run Time User Device Operating System Application Flash Run Time
  • 5. Supported Platforms and hardware Supported by Flash Player 10.1 and Air 2.0 Touch Windows 7 and later. Mac OS X 10.5.3 and later iphone OS 3.0 and later. Android 2.2 , Windows 6.5 Gesture Windows 7 and later. Mac OS X 10.5.3 and later iphone OS 3.0 and later. Android 2.2 , Windows 6.5
  • 6. What is New For MultiTouch?
  • 7. Touch events vs gestures • Touch events Input with a single point device • Gesture events One or more touch for eg,user rotates the rectangle using two fingers or zoom
  • 8. Important concepts and terms In Touch Discovery API. Touch event . Touch point. Multi touch event. Gesture event. Phases. Stylus. Press-and-tap .
  • 10. TouchEvent class • 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
  • 12. Gesture event types. • TransformGestureEvent.GESTURE_PAN • TransformGestureEvent.GESTURE_ROTATE • TransformGestureEvent.GESTURE_SWIPE • TransformGestureEvent.GESTURE_ZOOM
  • 13. Multitouch and gesture support • Windows 7 TransformGestureEvent.GESTURE_PAN TransformGestureEvent.GESTURE_ROTATE TransformGestureEvent.GESTURE_ZOOM PressAndTapGestureEvent.GESTURE_PRESS_AND_TAP • Mac OS X 10.5.3 and later + iPhone TransformGestureEvent.GESTURE_PAN TransformGestureEvent.GESTURE_ROTATE TransformGestureEvent.GESTURE_SWIPE TransformGestureEvent.GESTURE_ZOOM • Windows Mobile 6.5 TransformGestureEvent.GESTURE_PAN
  • 14. • DEM0 CODE import mx.core.UIComponent; import flash.ui.Multitouch; import flash.ui.MultitouchInputMode public function init( ) :void { // check the Status of the Touch Input.... if(Capabilities.touchscreenType == TouchscreenType.NONE){ Multitouch.inputMode = MultitouchInputMode.NONE; } if(Capabilities.touchscreenType == TouchscreenType.FINGER) { Multitouch.inputMode = MultitouchInputMode.TOUCH_POINT; } if(Capabilities.touchscreenType == TouchscreenType.STYLUS){ Multitouch.inputMode = MultitouchInputMode.GESTURE; }
  • 15. var mySprite:Sprite = new Sprite(); var uiCon:UIComponent = new UIComponent(); addChild(uiCon); mySprite.graphics.beginFill(0x336699); mySprite.graphics.drawRect(50,50,100,100); uiCon.addChild(mySprite); mySprite.addEventListener(TouchEvent.TOUCH_BEGIN, onTouchBegin) mySprite.addEventListener(TouchEvent.TOUCH_MOVE, onTouchMove) mySprite.addEventListener(TouchEvent.TOUCH_END, onTouchEnd) } private function onTouchBegin( event :TouchEvent ) :void { event.target.startTouchDrag(event.touchPointID); event.target.scaleX *= 0.5 event.target.scaleY *= 0.5 }
  • 16. // Function will trigger when function Move private function onTouchMove( event :TouchEvent ) :void { event.target.alpha = 0.5 } // Here the Touch End private function onTouchEnd( event :TouchEvent ) :void { event.target.stopTouchDrag(event.touchPointID); event.target.width = 240; event.target.height = 240; event.target.alpha = 1; }