SlideShare a Scribd company logo
1 of 15
Flex Mobile Tuning




www.flashr.org Flex Mobile Tuning   1
Flex for Mobile – što nas muči


    Filozofija
    Tehnika




www.flashr.org Flex Mobile Tuning   2
Filozofija - ekran

  veličina

  različite                 dimenzije
  <autoOrients>

  <autoOrients>                    i tipkovnica
  StageWebView




www.flashr.org Flex Mobile Tuning        3
Filozofija - input

  TextInput

  TouchEvent

  GestureEvent
     Multitouch.inputMode =
     MultitouchInputMode.GESTURE
     MultitouchInputMode.TOUCH_POINT
    GPS
    Akcelerometar



www.flashr.org Flex Mobile Tuning   4
Filozofija – foto / video input

  Camera                   class
  CameraUI                         and CameraRoll klase
  MediaEvent                        i MediaPromise




www.flashr.org Flex Mobile Tuning            5
Filozofija – životni put aplikacije

  Rad            u pozadini i izlaz
  “Manual”                         početak i kraj
  Battery                 low
  Android                   background behavior
  iOS           background behaviour




www.flashr.org Flex Mobile Tuning             6
Filozofija – performanse

  Startup                 zadaci
  Rendering                        – BitmapData.draw()
  Memorija

        Background                    memory management
       X       = null




www.flashr.org Flex Mobile Tuning           7
Tehnikalije – itemRendereri

  LabelItemRenderer

  IconItemRenderer

       createChildren
       measure
       drawBackground
       layoutContents
       data setter
www.flashr.org Flex Mobile Tuning   8
Tehnikalije – slikice

  BitmapImage                      ispred Image
  Images                  – ContentCache
  Multiresolution                   images
  PNG             ispred JPG
  Styling

  FXG             + ActionScript skinning


www.flashr.org Flex Mobile Tuning         9
Tehnikalije – Layouts

  Out:

        HorizontalLayout

        VerticalLayout

  In:

        BasicLayout

        ConstraintLayout



www.flashr.org Flex Mobile Tuning   10
Tehnikalije – BasicLayout

 <s:BitmapImage id="icon" top="10" left="5" width="32"
   height="32" />
 <s:Label id="nameLabel" left="40" right="5" top="15"
   bottom="15" fontSize="12"/>
 <s:Label id="phoneNumberLabel" left="40" right="5"
   top="30" bottom="15" fontSize="10"/>




www.flashr.org Flex Mobile Tuning   11
Tehnikalije – ConstraintLayout
 <s:layout>
   <s:ConstraintLayout>
    <s:constraintColumns>
     <s:ConstraintColumn id="leftPaddingColumn" width="5"/>
     <s:ConstraintColumn id="iconColumn" width="32"/>
   ....
    </s:constraintColumns>
    <s:constraintRows>
      <s:ConstraintRow id="topPaddingRow" height="10"/>
      <s:ConstraintRow id="firstRow" height="16"/>
    </s:constraintRows>
   </s:ConstraintLayout>
 </s:layout>
 <s:BitmapImage id="icon" left="iconColumn:0" top="firstRow:0" width="32"
   height="32"/>
 <s:Label id="nameLabel" left="textColumn:0" right="textColumn:0"
   top="firstRow:5" fontSize="12"/>
 <s:Label id="phoneNumberLabel" left="textColumn:0" right="textColumn:0"
   bottom="secondRow:2" fontSize="10"/>




www.flashr.org Flex Mobile Tuning      12
Tehnikalije – Groups

  Out:

        BorderContainer

  In:

        Group

        FXG             grafika




www.flashr.org Flex Mobile Tuning   13
Tehnikalije – Views

  set         data umjesto creationComplete
        Broj           procesiranja
        Manje               bindinga
  viewActivate                     server-side calls
  includeIn

  excludeFrom



www.flashr.org Flex Mobile Tuning          14
Tehnikalije – informacije



        http://www.adobe.com/devnet/air/articles/considerations-air-apps-mobile.html


     http://www.adobe.com/devnet/flex/articles/flex-mobile-performance-checklist.html


      http://www.adobe.com/devnet/flash/articles/optimizing-mobile-performance.html




www.flashr.org Flex Mobile Tuning            15

More Related Content

Similar to Flex Mobile Tuning Tips and Techniques

Making your site mobile-friendly - DevCSI Reading 21.07.2010
Making your site mobile-friendly - DevCSI Reading 21.07.2010Making your site mobile-friendly - DevCSI Reading 21.07.2010
Making your site mobile-friendly - DevCSI Reading 21.07.2010Patrick Lauke
 
The awesome world of mobile front end engineering
The awesome world of mobile front end engineeringThe awesome world of mobile front end engineering
The awesome world of mobile front end engineeringDinis Carvalho
 
Desenvolvendo uma aplicação híbrida para Android e IOs utilizando Ionic, aces...
Desenvolvendo uma aplicação híbrida para Android e IOs utilizando Ionic, aces...Desenvolvendo uma aplicação híbrida para Android e IOs utilizando Ionic, aces...
Desenvolvendo uma aplicação híbrida para Android e IOs utilizando Ionic, aces...Juliano Martins
 
Cloud Computing in Mobile
Cloud Computing in MobileCloud Computing in Mobile
Cloud Computing in MobileSVWB
 
Lesson learned from 3 years with hybrid apps
Lesson learned from 3 years with hybrid appsLesson learned from 3 years with hybrid apps
Lesson learned from 3 years with hybrid appsPatrik Malmquist
 
Building iPad apps with Flex - 360Flex
Building iPad apps with Flex - 360FlexBuilding iPad apps with Flex - 360Flex
Building iPad apps with Flex - 360Flexdanielwanja
 
Building a Single Page Application using Ember.js ... for fun and profit
Building a Single Page Application using Ember.js ... for fun and profitBuilding a Single Page Application using Ember.js ... for fun and profit
Building a Single Page Application using Ember.js ... for fun and profitBen Limmer
 
Building Multi-Tenant and SaaS products in PHP - CloudConf 2015
Building Multi-Tenant and SaaS products in PHP - CloudConf 2015Building Multi-Tenant and SaaS products in PHP - CloudConf 2015
Building Multi-Tenant and SaaS products in PHP - CloudConf 2015Innomatic Platform
 
Lecture 4 display_principles
Lecture 4 display_principlesLecture 4 display_principles
Lecture 4 display_principlesmoduledesign
 
Material design basics
Material design basicsMaterial design basics
Material design basicsJorge Barroso
 
4.preference management
4.preference management 4.preference management
4.preference management maamir farooq
 
Firefox OS and the Internet of Things - NDC London 2014
Firefox OS and the Internet of Things - NDC London 2014Firefox OS and the Internet of Things - NDC London 2014
Firefox OS and the Internet of Things - NDC London 2014Jan Jongboom
 
Developing Applications for Windows Phone 7 - Chris Ismael
Developing Applications for Windows Phone 7 - Chris IsmaelDeveloping Applications for Windows Phone 7 - Chris Ismael
Developing Applications for Windows Phone 7 - Chris IsmaelSpiffy
 
Optimizing Apps for Better Performance
Optimizing Apps for Better PerformanceOptimizing Apps for Better Performance
Optimizing Apps for Better PerformanceElif Boncuk
 
FAESA CONENCO 2013: Sencha Touch 2 + PhoneGap
FAESA CONENCO 2013: Sencha Touch 2 + PhoneGapFAESA CONENCO 2013: Sencha Touch 2 + PhoneGap
FAESA CONENCO 2013: Sencha Touch 2 + PhoneGapLoiane Groner
 
Android 3.0 Portland Java User Group 2011-03-15
Android 3.0 Portland Java User Group 2011-03-15Android 3.0 Portland Java User Group 2011-03-15
Android 3.0 Portland Java User Group 2011-03-15sullis
 
Fixing the mobile web - Internet World Romania
Fixing the mobile web - Internet World RomaniaFixing the mobile web - Internet World Romania
Fixing the mobile web - Internet World RomaniaChristian Heilmann
 

Similar to Flex Mobile Tuning Tips and Techniques (20)

Making your site mobile-friendly - DevCSI Reading 21.07.2010
Making your site mobile-friendly - DevCSI Reading 21.07.2010Making your site mobile-friendly - DevCSI Reading 21.07.2010
Making your site mobile-friendly - DevCSI Reading 21.07.2010
 
The awesome world of mobile front end engineering
The awesome world of mobile front end engineeringThe awesome world of mobile front end engineering
The awesome world of mobile front end engineering
 
Desenvolvendo uma aplicação híbrida para Android e IOs utilizando Ionic, aces...
Desenvolvendo uma aplicação híbrida para Android e IOs utilizando Ionic, aces...Desenvolvendo uma aplicação híbrida para Android e IOs utilizando Ionic, aces...
Desenvolvendo uma aplicação híbrida para Android e IOs utilizando Ionic, aces...
 
Cloud Computing in Mobile
Cloud Computing in MobileCloud Computing in Mobile
Cloud Computing in Mobile
 
Lesson learned from 3 years with hybrid apps
Lesson learned from 3 years with hybrid appsLesson learned from 3 years with hybrid apps
Lesson learned from 3 years with hybrid apps
 
Building iPad apps with Flex - 360Flex
Building iPad apps with Flex - 360FlexBuilding iPad apps with Flex - 360Flex
Building iPad apps with Flex - 360Flex
 
Android Starter Kit
Android Starter KitAndroid Starter Kit
Android Starter Kit
 
Building a Single Page Application using Ember.js ... for fun and profit
Building a Single Page Application using Ember.js ... for fun and profitBuilding a Single Page Application using Ember.js ... for fun and profit
Building a Single Page Application using Ember.js ... for fun and profit
 
Building Multi-Tenant and SaaS products in PHP - CloudConf 2015
Building Multi-Tenant and SaaS products in PHP - CloudConf 2015Building Multi-Tenant and SaaS products in PHP - CloudConf 2015
Building Multi-Tenant and SaaS products in PHP - CloudConf 2015
 
Lecture 4 display_principles
Lecture 4 display_principlesLecture 4 display_principles
Lecture 4 display_principles
 
Material design basics
Material design basicsMaterial design basics
Material design basics
 
Web app
Web appWeb app
Web app
 
4.preference management
4.preference management 4.preference management
4.preference management
 
Web app
Web appWeb app
Web app
 
Firefox OS and the Internet of Things - NDC London 2014
Firefox OS and the Internet of Things - NDC London 2014Firefox OS and the Internet of Things - NDC London 2014
Firefox OS and the Internet of Things - NDC London 2014
 
Developing Applications for Windows Phone 7 - Chris Ismael
Developing Applications for Windows Phone 7 - Chris IsmaelDeveloping Applications for Windows Phone 7 - Chris Ismael
Developing Applications for Windows Phone 7 - Chris Ismael
 
Optimizing Apps for Better Performance
Optimizing Apps for Better PerformanceOptimizing Apps for Better Performance
Optimizing Apps for Better Performance
 
FAESA CONENCO 2013: Sencha Touch 2 + PhoneGap
FAESA CONENCO 2013: Sencha Touch 2 + PhoneGapFAESA CONENCO 2013: Sencha Touch 2 + PhoneGap
FAESA CONENCO 2013: Sencha Touch 2 + PhoneGap
 
Android 3.0 Portland Java User Group 2011-03-15
Android 3.0 Portland Java User Group 2011-03-15Android 3.0 Portland Java User Group 2011-03-15
Android 3.0 Portland Java User Group 2011-03-15
 
Fixing the mobile web - Internet World Romania
Fixing the mobile web - Internet World RomaniaFixing the mobile web - Internet World Romania
Fixing the mobile web - Internet World Romania
 

More from Ivan Ilijasic

2012 02 html mobile development
2012 02 html mobile development2012 02 html mobile development
2012 02 html mobile developmentIvan Ilijasic
 
FlasHR 12/2011 - Stage3D igre
FlasHR 12/2011 - Stage3D igreFlasHR 12/2011 - Stage3D igre
FlasHR 12/2011 - Stage3D igreIvan Ilijasic
 
FlasHR meeting 12/2011 - novosti
FlasHR meeting 12/2011 - novostiFlasHR meeting 12/2011 - novosti
FlasHR meeting 12/2011 - novostiIvan Ilijasic
 
2011 12 flex_i_php_-_zasto
2011 12 flex_i_php_-_zasto2011 12 flex_i_php_-_zasto
2011 12 flex_i_php_-_zastoIvan Ilijasic
 
Razvoj Air Mobilnih Aplikacija
Razvoj Air Mobilnih AplikacijaRazvoj Air Mobilnih Aplikacija
Razvoj Air Mobilnih AplikacijaIvan Ilijasic
 
Ljubav Flexa I PHP-a
Ljubav Flexa I PHP-aLjubav Flexa I PHP-a
Ljubav Flexa I PHP-aIvan Ilijasic
 
Osvrt Na Adobe Max 2009
Osvrt Na Adobe Max 2009Osvrt Na Adobe Max 2009
Osvrt Na Adobe Max 2009Ivan Ilijasic
 
Adobe Flash Collaboration Service
Adobe Flash Collaboration ServiceAdobe Flash Collaboration Service
Adobe Flash Collaboration ServiceIvan Ilijasic
 

More from Ivan Ilijasic (13)

Sencha Touch
Sencha TouchSencha Touch
Sencha Touch
 
Apache flex
Apache flexApache flex
Apache flex
 
2012 02 html mobile development
2012 02 html mobile development2012 02 html mobile development
2012 02 html mobile development
 
FlasHR 12/2011 - Stage3D igre
FlasHR 12/2011 - Stage3D igreFlasHR 12/2011 - Stage3D igre
FlasHR 12/2011 - Stage3D igre
 
FlasHR meeting 12/2011 - novosti
FlasHR meeting 12/2011 - novostiFlasHR meeting 12/2011 - novosti
FlasHR meeting 12/2011 - novosti
 
2011 12 flex_i_php_-_zasto
2011 12 flex_i_php_-_zasto2011 12 flex_i_php_-_zasto
2011 12 flex_i_php_-_zasto
 
Adobe MAX 2011
Adobe MAX 2011Adobe MAX 2011
Adobe MAX 2011
 
Razvoj Air Mobilnih Aplikacija
Razvoj Air Mobilnih AplikacijaRazvoj Air Mobilnih Aplikacija
Razvoj Air Mobilnih Aplikacija
 
Adobe Max 2010
Adobe Max 2010Adobe Max 2010
Adobe Max 2010
 
Ljubav Flexa I PHP-a
Ljubav Flexa I PHP-aLjubav Flexa I PHP-a
Ljubav Flexa I PHP-a
 
Osvrt Na Adobe Max 2009
Osvrt Na Adobe Max 2009Osvrt Na Adobe Max 2009
Osvrt Na Adobe Max 2009
 
Adobe Flash Collaboration Service
Adobe Flash Collaboration ServiceAdobe Flash Collaboration Service
Adobe Flash Collaboration Service
 
Zasto Flex
Zasto FlexZasto Flex
Zasto Flex
 

Recently uploaded

microwave assisted reaction. General introduction
microwave assisted reaction. General introductionmicrowave assisted reaction. General introduction
microwave assisted reaction. General introductionMaksud Ahmed
 
The basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptxThe basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptxheathfieldcps1
 
social pharmacy d-pharm 1st year by Pragati K. Mahajan
social pharmacy d-pharm 1st year by Pragati K. Mahajansocial pharmacy d-pharm 1st year by Pragati K. Mahajan
social pharmacy d-pharm 1st year by Pragati K. Mahajanpragatimahajan3
 
Software Engineering Methodologies (overview)
Software Engineering Methodologies (overview)Software Engineering Methodologies (overview)
Software Engineering Methodologies (overview)eniolaolutunde
 
Accessible design: Minimum effort, maximum impact
Accessible design: Minimum effort, maximum impactAccessible design: Minimum effort, maximum impact
Accessible design: Minimum effort, maximum impactdawncurless
 
A Critique of the Proposed National Education Policy Reform
A Critique of the Proposed National Education Policy ReformA Critique of the Proposed National Education Policy Reform
A Critique of the Proposed National Education Policy ReformChameera Dedduwage
 
Sanyam Choudhary Chemistry practical.pdf
Sanyam Choudhary Chemistry practical.pdfSanyam Choudhary Chemistry practical.pdf
Sanyam Choudhary Chemistry practical.pdfsanyamsingh5019
 
mini mental status format.docx
mini    mental       status     format.docxmini    mental       status     format.docx
mini mental status format.docxPoojaSen20
 
Call Girls in Dwarka Mor Delhi Contact Us 9654467111
Call Girls in Dwarka Mor Delhi Contact Us 9654467111Call Girls in Dwarka Mor Delhi Contact Us 9654467111
Call Girls in Dwarka Mor Delhi Contact Us 9654467111Sapana Sha
 
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptx
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptxPOINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptx
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptxSayali Powar
 
Interactive Powerpoint_How to Master effective communication
Interactive Powerpoint_How to Master effective communicationInteractive Powerpoint_How to Master effective communication
Interactive Powerpoint_How to Master effective communicationnomboosow
 
Russian Call Girls in Andheri Airport Mumbai WhatsApp 9167673311 💞 Full Nigh...
Russian Call Girls in Andheri Airport Mumbai WhatsApp  9167673311 💞 Full Nigh...Russian Call Girls in Andheri Airport Mumbai WhatsApp  9167673311 💞 Full Nigh...
Russian Call Girls in Andheri Airport Mumbai WhatsApp 9167673311 💞 Full Nigh...Pooja Nehwal
 
1029-Danh muc Sach Giao Khoa khoi 6.pdf
1029-Danh muc Sach Giao Khoa khoi  6.pdf1029-Danh muc Sach Giao Khoa khoi  6.pdf
1029-Danh muc Sach Giao Khoa khoi 6.pdfQucHHunhnh
 
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...EduSkills OECD
 
Measures of Dispersion and Variability: Range, QD, AD and SD
Measures of Dispersion and Variability: Range, QD, AD and SDMeasures of Dispersion and Variability: Range, QD, AD and SD
Measures of Dispersion and Variability: Range, QD, AD and SDThiyagu K
 
BAG TECHNIQUE Bag technique-a tool making use of public health bag through wh...
BAG TECHNIQUE Bag technique-a tool making use of public health bag through wh...BAG TECHNIQUE Bag technique-a tool making use of public health bag through wh...
BAG TECHNIQUE Bag technique-a tool making use of public health bag through wh...Sapna Thakur
 
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...Krashi Coaching
 

Recently uploaded (20)

microwave assisted reaction. General introduction
microwave assisted reaction. General introductionmicrowave assisted reaction. General introduction
microwave assisted reaction. General introduction
 
The basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptxThe basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptx
 
social pharmacy d-pharm 1st year by Pragati K. Mahajan
social pharmacy d-pharm 1st year by Pragati K. Mahajansocial pharmacy d-pharm 1st year by Pragati K. Mahajan
social pharmacy d-pharm 1st year by Pragati K. Mahajan
 
Software Engineering Methodologies (overview)
Software Engineering Methodologies (overview)Software Engineering Methodologies (overview)
Software Engineering Methodologies (overview)
 
Accessible design: Minimum effort, maximum impact
Accessible design: Minimum effort, maximum impactAccessible design: Minimum effort, maximum impact
Accessible design: Minimum effort, maximum impact
 
A Critique of the Proposed National Education Policy Reform
A Critique of the Proposed National Education Policy ReformA Critique of the Proposed National Education Policy Reform
A Critique of the Proposed National Education Policy Reform
 
Mattingly "AI & Prompt Design: The Basics of Prompt Design"
Mattingly "AI & Prompt Design: The Basics of Prompt Design"Mattingly "AI & Prompt Design: The Basics of Prompt Design"
Mattingly "AI & Prompt Design: The Basics of Prompt Design"
 
Sanyam Choudhary Chemistry practical.pdf
Sanyam Choudhary Chemistry practical.pdfSanyam Choudhary Chemistry practical.pdf
Sanyam Choudhary Chemistry practical.pdf
 
mini mental status format.docx
mini    mental       status     format.docxmini    mental       status     format.docx
mini mental status format.docx
 
Call Girls in Dwarka Mor Delhi Contact Us 9654467111
Call Girls in Dwarka Mor Delhi Contact Us 9654467111Call Girls in Dwarka Mor Delhi Contact Us 9654467111
Call Girls in Dwarka Mor Delhi Contact Us 9654467111
 
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptx
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptxPOINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptx
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptx
 
INDIA QUIZ 2024 RLAC DELHI UNIVERSITY.pptx
INDIA QUIZ 2024 RLAC DELHI UNIVERSITY.pptxINDIA QUIZ 2024 RLAC DELHI UNIVERSITY.pptx
INDIA QUIZ 2024 RLAC DELHI UNIVERSITY.pptx
 
Interactive Powerpoint_How to Master effective communication
Interactive Powerpoint_How to Master effective communicationInteractive Powerpoint_How to Master effective communication
Interactive Powerpoint_How to Master effective communication
 
Russian Call Girls in Andheri Airport Mumbai WhatsApp 9167673311 💞 Full Nigh...
Russian Call Girls in Andheri Airport Mumbai WhatsApp  9167673311 💞 Full Nigh...Russian Call Girls in Andheri Airport Mumbai WhatsApp  9167673311 💞 Full Nigh...
Russian Call Girls in Andheri Airport Mumbai WhatsApp 9167673311 💞 Full Nigh...
 
1029-Danh muc Sach Giao Khoa khoi 6.pdf
1029-Danh muc Sach Giao Khoa khoi  6.pdf1029-Danh muc Sach Giao Khoa khoi  6.pdf
1029-Danh muc Sach Giao Khoa khoi 6.pdf
 
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
 
Measures of Dispersion and Variability: Range, QD, AD and SD
Measures of Dispersion and Variability: Range, QD, AD and SDMeasures of Dispersion and Variability: Range, QD, AD and SD
Measures of Dispersion and Variability: Range, QD, AD and SD
 
Advance Mobile Application Development class 07
Advance Mobile Application Development class 07Advance Mobile Application Development class 07
Advance Mobile Application Development class 07
 
BAG TECHNIQUE Bag technique-a tool making use of public health bag through wh...
BAG TECHNIQUE Bag technique-a tool making use of public health bag through wh...BAG TECHNIQUE Bag technique-a tool making use of public health bag through wh...
BAG TECHNIQUE Bag technique-a tool making use of public health bag through wh...
 
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
 

Flex Mobile Tuning Tips and Techniques

  • 1. Flex Mobile Tuning www.flashr.org Flex Mobile Tuning 1
  • 2. Flex for Mobile – što nas muči  Filozofija  Tehnika www.flashr.org Flex Mobile Tuning 2
  • 3. Filozofija - ekran  veličina  različite dimenzije  <autoOrients>  <autoOrients> i tipkovnica  StageWebView www.flashr.org Flex Mobile Tuning 3
  • 4. Filozofija - input  TextInput  TouchEvent  GestureEvent Multitouch.inputMode = MultitouchInputMode.GESTURE MultitouchInputMode.TOUCH_POINT  GPS  Akcelerometar www.flashr.org Flex Mobile Tuning 4
  • 5. Filozofija – foto / video input  Camera class  CameraUI and CameraRoll klase  MediaEvent i MediaPromise www.flashr.org Flex Mobile Tuning 5
  • 6. Filozofija – životni put aplikacije  Rad u pozadini i izlaz  “Manual” početak i kraj  Battery low  Android background behavior  iOS background behaviour www.flashr.org Flex Mobile Tuning 6
  • 7. Filozofija – performanse  Startup zadaci  Rendering – BitmapData.draw()  Memorija  Background memory management X = null www.flashr.org Flex Mobile Tuning 7
  • 8. Tehnikalije – itemRendereri  LabelItemRenderer  IconItemRenderer createChildren measure drawBackground layoutContents data setter www.flashr.org Flex Mobile Tuning 8
  • 9. Tehnikalije – slikice  BitmapImage ispred Image  Images – ContentCache  Multiresolution images  PNG ispred JPG  Styling  FXG + ActionScript skinning www.flashr.org Flex Mobile Tuning 9
  • 10. Tehnikalije – Layouts  Out:  HorizontalLayout  VerticalLayout  In:  BasicLayout  ConstraintLayout www.flashr.org Flex Mobile Tuning 10
  • 11. Tehnikalije – BasicLayout <s:BitmapImage id="icon" top="10" left="5" width="32" height="32" /> <s:Label id="nameLabel" left="40" right="5" top="15" bottom="15" fontSize="12"/> <s:Label id="phoneNumberLabel" left="40" right="5" top="30" bottom="15" fontSize="10"/> www.flashr.org Flex Mobile Tuning 11
  • 12. Tehnikalije – ConstraintLayout <s:layout> <s:ConstraintLayout> <s:constraintColumns> <s:ConstraintColumn id="leftPaddingColumn" width="5"/> <s:ConstraintColumn id="iconColumn" width="32"/> .... </s:constraintColumns> <s:constraintRows> <s:ConstraintRow id="topPaddingRow" height="10"/> <s:ConstraintRow id="firstRow" height="16"/> </s:constraintRows> </s:ConstraintLayout> </s:layout> <s:BitmapImage id="icon" left="iconColumn:0" top="firstRow:0" width="32" height="32"/> <s:Label id="nameLabel" left="textColumn:0" right="textColumn:0" top="firstRow:5" fontSize="12"/> <s:Label id="phoneNumberLabel" left="textColumn:0" right="textColumn:0" bottom="secondRow:2" fontSize="10"/> www.flashr.org Flex Mobile Tuning 12
  • 13. Tehnikalije – Groups  Out:  BorderContainer  In:  Group  FXG grafika www.flashr.org Flex Mobile Tuning 13
  • 14. Tehnikalije – Views  set data umjesto creationComplete  Broj procesiranja  Manje bindinga  viewActivate server-side calls  includeIn  excludeFrom www.flashr.org Flex Mobile Tuning 14
  • 15. Tehnikalije – informacije http://www.adobe.com/devnet/air/articles/considerations-air-apps-mobile.html http://www.adobe.com/devnet/flex/articles/flex-mobile-performance-checklist.html http://www.adobe.com/devnet/flash/articles/optimizing-mobile-performance.html www.flashr.org Flex Mobile Tuning 15