SlideShare a Scribd company logo
1 of 13
imFlash4.0 Introductions

        2012.2.20
        Rex Chen
Outlines
•   What is imFlash SDK
•   Basic knowledge about imFlash4.0
•   Important classes
•   Examples : Lily and her Australia trip
What is imFlash SDK
• imFlash SDK helps developers to design
  applications on imTop, which is the multi-
  resolution interactive display system from
  ivlab.
• Enhances the rendering performance by utilizing
  GPU
• Allow designers to design animation easier
Basic knowledge about imFlash4.0
• Base on Flex, AIR and Away3D SDK
• Use Flash Builder IDE
• Run on Adobe AIR runtimes
Important classes
iFlashScene


iHorizontalObj

iHorizontalBitmap iTeraPixel

iVerticalObj
iVerticalBitmap iVerticalMovie
iFlashScene
• The basic display scene
• AddObjectVertical method
  – Add objects to vertical display
• AddObjectHorizontal method
  – Add objects to horizontal display
iHorizontalBitmap
• The basic horizontal display bitmap
• iHorizontalBitmap constructor
  – Construct an iHorizontalBitmap
• addEventListener
  – Listen to events you want
iVerticalBitmap
• The basic vertical display bitmap
• iVerticalBitmap constructor
  – Construct an iVerticalBitmap
Examples : Lily and Her Australia trip
Ex1:ApoTag and Horizontal Display
• Add Tai.png Aus.png Airplane.png to vertical display
var Tai:iVerticalBitmap = new
iVerticalBitmap("assets/image/taiwan.png",200,300);
var Aus:iVerticalBitmap = new
iVerticalBitmap("assets/image/Aus.png",400,400);
AirPlane = new
 iVerticalBitmap("assets/image/247228-air-australia.png",200,100);

scene.addObjectVertical(Tai,30,30);
scene.addObjectVertical(Aus,700,200);
scene.addObjectVertical(AirPlane,0,0);
• Listen to Tag event
private function onTag(e:iEvent):void {
    var te:TagEvent = TagEvent(e._data);
    var rad:Number = te.angle;
    switch(te.state){
         case Tags.BIRTH:
           AirPlane.visible = true;
           AirPlane.x = te.xpos * 1280;
           AirPlane.y = te.ypos * 720;
           AirPlane._rotate(rad);
         break;
         case Tags.MOVE:
           AirPlane.x = te.xpos * 1280;
           AirPlane.y = te.ypos * 720;
           AirPlane._rotate(rad-AirPlane.rotation / 360 * (2 * Math.PI));
         break;
         case Tags.DEATH:
           AirPlane.visible = false;
    }
}
Ex2:Seeing Koala
• Add Koala.jpg to horizontal display
var image:iHorizontalBitmap = new
iHorizontalBitmap("../assets/image/koala.jpg",1280,720);

scene.addObjectHorizontal(image,0,0);
image.addEventListener(iEvent.DRAG_EVENT, onDragHandler);
image.addEventListener(iEvent.ZOOM_EVENT, onZoomHandler);
image.addEventListener(iEvent.ROTATE_EVENT,onRotateHandler);
Ex2:Seeing Koala
• Listen to drag, zoom and rotate events
private function onDragHandler(e:iEvent):void{
     iHorizontalBitmap(e.currentTarget)._translate(Location(e._d
       ata));
}
private function onZoomHandler(e:iEvent):void{
   var ze:ZoomEvent = ZoomEvent(e._data);
    iHorizontalBitmap(e.currentTarget)._scale(ze.getScale());
}
private function onRotateHandler(e:iEvent):void{
   iHorizontalBitmap(e.currentTarget)._rotate(Number(e._data));
}

More Related Content

Viewers also liked

Carving the Perfect Design Engineer
Carving the Perfect Design EngineerCarving the Perfect Design Engineer
Carving the Perfect Design EngineerIan Phillips
 
Carving the Perfect Engineer (EWME'16, 11may16)
Carving the Perfect Engineer (EWME'16, 11may16)Carving the Perfect Engineer (EWME'16, 11may16)
Carving the Perfect Engineer (EWME'16, 11may16)Ian Phillips
 
Taken By The Horns @ARM
Taken By The Horns @ARMTaken By The Horns @ARM
Taken By The Horns @ARMIan Phillips
 
Being a Design Engineer
Being a Design EngineerBeing a Design Engineer
Being a Design EngineerIan Phillips
 
Combing 3 d gesture with touch interface on mobile devices
Combing 3 d gesture with touch interface on mobile devicesCombing 3 d gesture with touch interface on mobile devices
Combing 3 d gesture with touch interface on mobile deviceshuanwu
 
Technology of mohenjo daro
Technology of mohenjo daroTechnology of mohenjo daro
Technology of mohenjo daroLena Goren
 
Landscape Architect CV - Ada Maciejak
Landscape Architect CV - Ada MaciejakLandscape Architect CV - Ada Maciejak
Landscape Architect CV - Ada MaciejakAda Maciejak
 

Viewers also liked (8)

Carving the Perfect Design Engineer
Carving the Perfect Design EngineerCarving the Perfect Design Engineer
Carving the Perfect Design Engineer
 
Carving the Perfect Engineer (EWME'16, 11may16)
Carving the Perfect Engineer (EWME'16, 11may16)Carving the Perfect Engineer (EWME'16, 11may16)
Carving the Perfect Engineer (EWME'16, 11may16)
 
Taken By The Horns @ARM
Taken By The Horns @ARMTaken By The Horns @ARM
Taken By The Horns @ARM
 
Being a Design Engineer
Being a Design EngineerBeing a Design Engineer
Being a Design Engineer
 
Combing 3 d gesture with touch interface on mobile devices
Combing 3 d gesture with touch interface on mobile devicesCombing 3 d gesture with touch interface on mobile devices
Combing 3 d gesture with touch interface on mobile devices
 
Spinal trauma
Spinal traumaSpinal trauma
Spinal trauma
 
Technology of mohenjo daro
Technology of mohenjo daroTechnology of mohenjo daro
Technology of mohenjo daro
 
Landscape Architect CV - Ada Maciejak
Landscape Architect CV - Ada MaciejakLandscape Architect CV - Ada Maciejak
Landscape Architect CV - Ada Maciejak
 

Similar to Im flash

Firefox OS, fixing the mobile web - FITC Toronto - 2014-04-28
Firefox OS, fixing the mobile web - FITC Toronto - 2014-04-28Firefox OS, fixing the mobile web - FITC Toronto - 2014-04-28
Firefox OS, fixing the mobile web - FITC Toronto - 2014-04-28Frédéric Harper
 
Developing iOS REST Applications
Developing iOS REST ApplicationsDeveloping iOS REST Applications
Developing iOS REST Applicationslmrei
 
I phone勉強会 (2011.11.23)
I phone勉強会 (2011.11.23)I phone勉強会 (2011.11.23)
I phone勉強会 (2011.11.23)Katsumi Kishikawa
 
Artdm170 Week6 Scripting Motion
Artdm170 Week6 Scripting MotionArtdm170 Week6 Scripting Motion
Artdm170 Week6 Scripting MotionGilbert Guerrero
 
Artdm170 Week6 Scripting Motion
Artdm170 Week6 Scripting MotionArtdm170 Week6 Scripting Motion
Artdm170 Week6 Scripting MotionGilbert Guerrero
 
Artdm170 week6 scripting_motion
Artdm170 week6 scripting_motionArtdm170 week6 scripting_motion
Artdm170 week6 scripting_motionGilbert Guerrero
 
Artdm170 Week6 Scripting Motion
Artdm170 Week6 Scripting MotionArtdm170 Week6 Scripting Motion
Artdm170 Week6 Scripting MotionGilbert Guerrero
 
Artdm170 Week6 Scripting Motion
Artdm170 Week6 Scripting MotionArtdm170 Week6 Scripting Motion
Artdm170 Week6 Scripting MotionGilbert Guerrero
 
HTML for the Mobile Web, Firefox OS - All Things Open - 2014-10-22
HTML for the Mobile Web, Firefox OS - All Things Open - 2014-10-22HTML for the Mobile Web, Firefox OS - All Things Open - 2014-10-22
HTML for the Mobile Web, Firefox OS - All Things Open - 2014-10-22Frédéric Harper
 
Intro to computer vision in .net
Intro to computer vision in .netIntro to computer vision in .net
Intro to computer vision in .netStephen Lorello
 
Desenvolvimento iOS - Aula 4
Desenvolvimento iOS - Aula 4Desenvolvimento iOS - Aula 4
Desenvolvimento iOS - Aula 4Saulo Arruda
 
Get started with YUI
Get started with YUIGet started with YUI
Get started with YUIAdam Lu
 
Javascript essential-pattern
Javascript essential-patternJavascript essential-pattern
Javascript essential-pattern偉格 高
 
JavaScript APIs - The Web is the Platform - .toster conference, Moscow
JavaScript APIs - The Web is the Platform - .toster conference, MoscowJavaScript APIs - The Web is the Platform - .toster conference, Moscow
JavaScript APIs - The Web is the Platform - .toster conference, MoscowRobert Nyman
 
Firefox OS, une plateforme à découvrir - IO Saglac - 2014-09-09
Firefox OS, une plateforme à découvrir - IO Saglac - 2014-09-09Firefox OS, une plateforme à découvrir - IO Saglac - 2014-09-09
Firefox OS, une plateforme à découvrir - IO Saglac - 2014-09-09Frédéric Harper
 
Creating Hybrid mobile apps with YUI
Creating Hybrid mobile apps with YUICreating Hybrid mobile apps with YUI
Creating Hybrid mobile apps with YUIGonzalo Cordero
 
HTML, not just for desktops: Firefox OS - Congreso Universitario Móvil - 201...
HTML, not just for desktops: Firefox OS - Congreso Universitario Móvil - 201...HTML, not just for desktops: Firefox OS - Congreso Universitario Móvil - 201...
HTML, not just for desktops: Firefox OS - Congreso Universitario Móvil - 201...Frédéric Harper
 
HTML pour le web mobile, Firefox OS - Devfest Nantes - 2014-11-07
HTML pour le web mobile, Firefox OS - Devfest Nantes - 2014-11-07HTML pour le web mobile, Firefox OS - Devfest Nantes - 2014-11-07
HTML pour le web mobile, Firefox OS - Devfest Nantes - 2014-11-07Frédéric Harper
 
Developing AIR for Android with Flash Professional
Developing AIR for Android with Flash ProfessionalDeveloping AIR for Android with Flash Professional
Developing AIR for Android with Flash ProfessionalChris Griffith
 

Similar to Im flash (20)

Firefox OS, fixing the mobile web - FITC Toronto - 2014-04-28
Firefox OS, fixing the mobile web - FITC Toronto - 2014-04-28Firefox OS, fixing the mobile web - FITC Toronto - 2014-04-28
Firefox OS, fixing the mobile web - FITC Toronto - 2014-04-28
 
Developing iOS REST Applications
Developing iOS REST ApplicationsDeveloping iOS REST Applications
Developing iOS REST Applications
 
I phone勉強会 (2011.11.23)
I phone勉強会 (2011.11.23)I phone勉強会 (2011.11.23)
I phone勉強会 (2011.11.23)
 
Artdm170 Week6 Scripting Motion
Artdm170 Week6 Scripting MotionArtdm170 Week6 Scripting Motion
Artdm170 Week6 Scripting Motion
 
Artdm170 Week6 Scripting Motion
Artdm170 Week6 Scripting MotionArtdm170 Week6 Scripting Motion
Artdm170 Week6 Scripting Motion
 
Artdm170 week6 scripting_motion
Artdm170 week6 scripting_motionArtdm170 week6 scripting_motion
Artdm170 week6 scripting_motion
 
Artdm170 Week6 Scripting Motion
Artdm170 Week6 Scripting MotionArtdm170 Week6 Scripting Motion
Artdm170 Week6 Scripting Motion
 
Artdm170 Week6 Scripting Motion
Artdm170 Week6 Scripting MotionArtdm170 Week6 Scripting Motion
Artdm170 Week6 Scripting Motion
 
Intro to HTML5
Intro to HTML5Intro to HTML5
Intro to HTML5
 
HTML for the Mobile Web, Firefox OS - All Things Open - 2014-10-22
HTML for the Mobile Web, Firefox OS - All Things Open - 2014-10-22HTML for the Mobile Web, Firefox OS - All Things Open - 2014-10-22
HTML for the Mobile Web, Firefox OS - All Things Open - 2014-10-22
 
Intro to computer vision in .net
Intro to computer vision in .netIntro to computer vision in .net
Intro to computer vision in .net
 
Desenvolvimento iOS - Aula 4
Desenvolvimento iOS - Aula 4Desenvolvimento iOS - Aula 4
Desenvolvimento iOS - Aula 4
 
Get started with YUI
Get started with YUIGet started with YUI
Get started with YUI
 
Javascript essential-pattern
Javascript essential-patternJavascript essential-pattern
Javascript essential-pattern
 
JavaScript APIs - The Web is the Platform - .toster conference, Moscow
JavaScript APIs - The Web is the Platform - .toster conference, MoscowJavaScript APIs - The Web is the Platform - .toster conference, Moscow
JavaScript APIs - The Web is the Platform - .toster conference, Moscow
 
Firefox OS, une plateforme à découvrir - IO Saglac - 2014-09-09
Firefox OS, une plateforme à découvrir - IO Saglac - 2014-09-09Firefox OS, une plateforme à découvrir - IO Saglac - 2014-09-09
Firefox OS, une plateforme à découvrir - IO Saglac - 2014-09-09
 
Creating Hybrid mobile apps with YUI
Creating Hybrid mobile apps with YUICreating Hybrid mobile apps with YUI
Creating Hybrid mobile apps with YUI
 
HTML, not just for desktops: Firefox OS - Congreso Universitario Móvil - 201...
HTML, not just for desktops: Firefox OS - Congreso Universitario Móvil - 201...HTML, not just for desktops: Firefox OS - Congreso Universitario Móvil - 201...
HTML, not just for desktops: Firefox OS - Congreso Universitario Móvil - 201...
 
HTML pour le web mobile, Firefox OS - Devfest Nantes - 2014-11-07
HTML pour le web mobile, Firefox OS - Devfest Nantes - 2014-11-07HTML pour le web mobile, Firefox OS - Devfest Nantes - 2014-11-07
HTML pour le web mobile, Firefox OS - Devfest Nantes - 2014-11-07
 
Developing AIR for Android with Flash Professional
Developing AIR for Android with Flash ProfessionalDeveloping AIR for Android with Flash Professional
Developing AIR for Android with Flash Professional
 

Recently uploaded

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
 
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.pdfsudhanshuwaghmare1
 
Automating Google Workspace (GWS) & more with Apps Script
Automating Google Workspace (GWS) & more with Apps ScriptAutomating Google Workspace (GWS) & more with Apps Script
Automating Google Workspace (GWS) & more with Apps Scriptwesley chun
 
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers:  A Deep Dive into Serverless Spatial Data and FMECloud Frontiers:  A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FMESafe Software
 
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, ...apidays
 
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
 
Strategies for Landing an Oracle DBA Job as a Fresher
Strategies for Landing an Oracle DBA Job as a FresherStrategies for Landing an Oracle DBA Job as a Fresher
Strategies for Landing an Oracle DBA Job as a FresherRemote DBA Services
 
Real Time Object Detection Using Open CV
Real Time Object Detection Using Open CVReal Time Object Detection Using Open CV
Real Time Object Detection Using Open CVKhem
 
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...Jeffrey Haguewood
 
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...apidays
 
Powerful Google developer tools for immediate impact! (2023-24 C)
Powerful Google developer tools for immediate impact! (2023-24 C)Powerful Google developer tools for immediate impact! (2023-24 C)
Powerful Google developer tools for immediate impact! (2023-24 C)wesley chun
 
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
 
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...Miguel Araújo
 
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 MilvusZilliz
 
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
 
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
 
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 connectorsNanddeep Nachan
 
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
 
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
 
Architecting Cloud Native Applications
Architecting Cloud Native ApplicationsArchitecting Cloud Native Applications
Architecting Cloud Native ApplicationsWSO2
 

Recently uploaded (20)

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
 
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
 
Automating Google Workspace (GWS) & more with Apps Script
Automating Google Workspace (GWS) & more with Apps ScriptAutomating Google Workspace (GWS) & more with Apps Script
Automating Google Workspace (GWS) & more with Apps Script
 
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers:  A Deep Dive into Serverless Spatial Data and FMECloud Frontiers:  A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
 
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, ...
 
FWD Group - Insurer Innovation Award 2024
FWD Group - Insurer Innovation Award 2024FWD Group - Insurer Innovation Award 2024
FWD Group - Insurer Innovation Award 2024
 
Strategies for Landing an Oracle DBA Job as a Fresher
Strategies for Landing an Oracle DBA Job as a FresherStrategies for Landing an Oracle DBA Job as a Fresher
Strategies for Landing an Oracle DBA Job as a Fresher
 
Real Time Object Detection Using Open CV
Real Time Object Detection Using Open CVReal Time Object Detection Using Open CV
Real Time Object Detection Using Open CV
 
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...
 
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...
 
Powerful Google developer tools for immediate impact! (2023-24 C)
Powerful Google developer tools for immediate impact! (2023-24 C)Powerful Google developer tools for immediate impact! (2023-24 C)
Powerful Google developer tools for immediate impact! (2023-24 C)
 
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...
 
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
 
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
 
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
 
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...
 
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
 
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
 
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
 
Architecting Cloud Native Applications
Architecting Cloud Native ApplicationsArchitecting Cloud Native Applications
Architecting Cloud Native Applications
 

Im flash

  • 1. imFlash4.0 Introductions 2012.2.20 Rex Chen
  • 2. Outlines • What is imFlash SDK • Basic knowledge about imFlash4.0 • Important classes • Examples : Lily and her Australia trip
  • 3. What is imFlash SDK • imFlash SDK helps developers to design applications on imTop, which is the multi- resolution interactive display system from ivlab. • Enhances the rendering performance by utilizing GPU • Allow designers to design animation easier
  • 4. Basic knowledge about imFlash4.0 • Base on Flex, AIR and Away3D SDK • Use Flash Builder IDE • Run on Adobe AIR runtimes
  • 6. iFlashScene • The basic display scene • AddObjectVertical method – Add objects to vertical display • AddObjectHorizontal method – Add objects to horizontal display
  • 7. iHorizontalBitmap • The basic horizontal display bitmap • iHorizontalBitmap constructor – Construct an iHorizontalBitmap • addEventListener – Listen to events you want
  • 8. iVerticalBitmap • The basic vertical display bitmap • iVerticalBitmap constructor – Construct an iVerticalBitmap
  • 9. Examples : Lily and Her Australia trip
  • 10. Ex1:ApoTag and Horizontal Display • Add Tai.png Aus.png Airplane.png to vertical display var Tai:iVerticalBitmap = new iVerticalBitmap("assets/image/taiwan.png",200,300); var Aus:iVerticalBitmap = new iVerticalBitmap("assets/image/Aus.png",400,400); AirPlane = new iVerticalBitmap("assets/image/247228-air-australia.png",200,100); scene.addObjectVertical(Tai,30,30); scene.addObjectVertical(Aus,700,200); scene.addObjectVertical(AirPlane,0,0);
  • 11. • Listen to Tag event private function onTag(e:iEvent):void { var te:TagEvent = TagEvent(e._data); var rad:Number = te.angle; switch(te.state){ case Tags.BIRTH: AirPlane.visible = true; AirPlane.x = te.xpos * 1280; AirPlane.y = te.ypos * 720; AirPlane._rotate(rad); break; case Tags.MOVE: AirPlane.x = te.xpos * 1280; AirPlane.y = te.ypos * 720; AirPlane._rotate(rad-AirPlane.rotation / 360 * (2 * Math.PI)); break; case Tags.DEATH: AirPlane.visible = false; } }
  • 12. Ex2:Seeing Koala • Add Koala.jpg to horizontal display var image:iHorizontalBitmap = new iHorizontalBitmap("../assets/image/koala.jpg",1280,720); scene.addObjectHorizontal(image,0,0); image.addEventListener(iEvent.DRAG_EVENT, onDragHandler); image.addEventListener(iEvent.ZOOM_EVENT, onZoomHandler); image.addEventListener(iEvent.ROTATE_EVENT,onRotateHandler);
  • 13. Ex2:Seeing Koala • Listen to drag, zoom and rotate events private function onDragHandler(e:iEvent):void{ iHorizontalBitmap(e.currentTarget)._translate(Location(e._d ata)); } private function onZoomHandler(e:iEvent):void{ var ze:ZoomEvent = ZoomEvent(e._data); iHorizontalBitmap(e.currentTarget)._scale(ze.getScale()); } private function onRotateHandler(e:iEvent):void{ iHorizontalBitmap(e.currentTarget)._rotate(Number(e._data)); }