SlideShare una empresa de Scribd logo
1 de 16
Descargar para leer sin conexión
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;
}

Más contenido relacionado

La actualidad más candente

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
 

La actualidad más candente (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
 

Destacado

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

Destacado (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
 

Similar 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
 

Similar 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
 

Más 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

Último (20)

Navi Mumbai Call Girls 🥰 8617370543 Service Offer VIP Hot Model
Navi Mumbai Call Girls 🥰 8617370543 Service Offer VIP Hot ModelNavi Mumbai Call Girls 🥰 8617370543 Service Offer VIP Hot Model
Navi Mumbai Call Girls 🥰 8617370543 Service Offer VIP Hot Model
 
Boost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdfBoost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdf
 
DBX First Quarter 2024 Investor Presentation
DBX First Quarter 2024 Investor PresentationDBX First Quarter 2024 Investor Presentation
DBX First Quarter 2024 Investor Presentation
 
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
 
A Beginners Guide to Building a RAG App Using Open Source Milvus
A Beginners Guide to Building a RAG App Using Open Source MilvusA Beginners Guide to Building a RAG App Using Open Source Milvus
A Beginners Guide to Building a RAG App Using Open Source Milvus
 
MINDCTI Revenue Release Quarter One 2024
MINDCTI Revenue Release Quarter One 2024MINDCTI Revenue Release Quarter One 2024
MINDCTI Revenue Release Quarter One 2024
 
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
 
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
 
FWD Group - Insurer Innovation Award 2024
FWD Group - Insurer Innovation Award 2024FWD Group - Insurer Innovation Award 2024
FWD Group - Insurer Innovation Award 2024
 
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 - Accelerating FinTech Innovation by Vasa Krishnan, Fin...
Apidays New York 2024 - Accelerating FinTech Innovation by Vasa Krishnan, Fin...Apidays New York 2024 - Accelerating FinTech Innovation by Vasa Krishnan, Fin...
Apidays New York 2024 - Accelerating FinTech Innovation by Vasa Krishnan, Fin...
 
Apidays Singapore 2024 - Scalable LLM APIs for AI and Generative AI Applicati...
Apidays Singapore 2024 - Scalable LLM APIs for AI and Generative AI Applicati...Apidays Singapore 2024 - Scalable LLM APIs for AI and Generative AI Applicati...
Apidays Singapore 2024 - Scalable LLM APIs for AI and Generative AI Applicati...
 
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
 
A Year of the Servo Reboot: Where Are We Now?
A Year of the Servo Reboot: Where Are We Now?A Year of the Servo Reboot: Where Are We Now?
A Year of the Servo Reboot: Where Are We Now?
 
Corporate and higher education May webinar.pptx
Corporate and higher education May webinar.pptxCorporate and higher education May webinar.pptx
Corporate and higher education May webinar.pptx
 
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
 
presentation ICT roal in 21st century education
presentation ICT roal in 21st century educationpresentation ICT roal in 21st century education
presentation ICT roal in 21st century education
 
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
 
Ransomware_Q4_2023. The report. [EN].pdf
Ransomware_Q4_2023. The report. [EN].pdfRansomware_Q4_2023. The report. [EN].pdf
Ransomware_Q4_2023. The report. [EN].pdf
 
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, ...
 

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