SlideShare una empresa de Scribd logo
1 de 39
Descargar para leer sin conexión
Best practices for mobile development with the Flash Platform
      Mark Doherty | Flash Platform Evangelist




©2010 Adobe Systems Incorporated. All Rights Reserved. Adobe Con dential.
Before starting...




                                                                   3 questions


©2010 Adobe Systems Incorporated. All Rights Reserved. Adobe Con dential.   2
Why Mark looks so French today?




©2010 Adobe Systems Incorporated. All Rights Reserved. Adobe Con dential.   3
Ok then... who are you ?




                                                                                Michaël Chaize
                                                                                Flash Platform Evangelist


                                                                                My blog: www.RIAgora.com



                                                                                      @mchaize




©2010 Adobe Systems Incorporated. All Rights Reserved. Adobe Con dential.   4
Best-practices for mobile development ?




                                                                            “Hopefully everyone understands
                                                                            that Michael Chaize commenting
                                                                               on mobile development is
                                                                               equivalent to Tiger Woods
                                                                            commenting on PaperVision 3D”

                                                                                                  Lee Brimelow




©2010 Adobe Systems Incorporated. All Rights Reserved. Adobe Con dential.          5
Menu du jour



                                                                                Flash and screens

                                                                                Design considerations

                                                                                Flash best practices

                                                                                Flex on mobile ?

                                                                                AIR on mobile devices

                                                                                Resources


©2010 Adobe Systems Incorporated. All Rights Reserved. Adobe Con dential.   6
Flash and screens

©2010 Adobe Systems Incorporated. All Rights Reserved. Adobe Con dential.   7
Applications are beginning adapt to context




                                                                        >           >

                            RIA                                             Cloud       Devices




©2010 Adobe Systems Incorporated. All Rights Reserved. Adobe Con dential.
                                                                                          Adobe Systems Inc.| FOTB2009
Digital Explosion Across Multiple Screens




                                                                                         Consumer
                                                                                         Electronics
                                                                            Mobile
                                                                            Phones


                                                                                          Personal
                                                                                         Computers




©2010 Adobe Systems Incorporated. All Rights Reserved. Adobe Con dential.
                                                                                     9
Flash Platform - A complete system for web innovation




©2010 Adobe Systems Incorporated. All Rights Reserved. Adobe Con dential.
Flash Player 10.1

           e only consistent browser-based runtime for connected devices
    Targeting desktops, mobile phones, netbooks, tablets, and the Digital Home
    On track for delivery to consumers in rst half of 2010
    Runtimes will be available over-the-air through marketplaces and Adobe.com




© 2010 Adobe Systems Incorporated. All Rights Reserved. Adobe Con dential.
Flash Player 10.1

    Brings full Flash Player feature set to devices
    New Features:
        Multi-touch & gestures
        Accelerometer
        Screen orientation
        Mobile text input
        Device capabilities discovery
        Globalization support (GSLib)
        Mobile se ings manager
        Global error handling




© 2010 Adobe Systems Incorporated. All Rights Reserved. Adobe Con dential.
Flash Player 10.1 API and testing




©2010 Adobe Systems Incorporated. All Rights Reserved. Adobe Con dential.   13
Design considerations
©2010 Adobe Systems Incorporated. All Rights Reserved. Adobe Con dential.   14
Context




©2010 Adobe Systems Incorporated. All Rights Reserved. Adobe Con dential.   15
Screens




                                                                                 800px
                                 480px




                                                                                         480px
                                                         320px




©2010 Adobe Systems Incorporated. All Rights Reserved. Adobe Con dential.   16
Finger




                                              7mm

                                      44px
                                                                            ≠



©2010 Adobe Systems Incorporated. All Rights Reserved. Adobe Con dential.       17
Usually, a nger comes with a hand




©2010 Adobe Systems Incorporated. All Rights Reserved. Adobe Con dential.               18
   Copyright 2009 Adobe Systems Incorporated. All rights reserved. Adobe con dential.
Native keyboard




©2010 Adobe Systems Incorporated. All Rights Reserved. Adobe Con dential.   19
Flash best practices
©2010 Adobe Systems Incorporated. All Rights Reserved. Adobe Con dential.
Graphical optimizations




                                                                                    10%




                                                                                          90%




                                                                            rendering     pure algorithm




©2010 Adobe Systems Incorporated. All Rights Reserved. Adobe Con dential.
Understand its behavior




                                                                            Avoid high-rate timers

                                                                            Keep FPS as low as possible

                                                                            Set dynamic FPS
                            FPS and
                           enterFrame
                             events


©2010 Adobe Systems Incorporated. All Rights Reserved. Adobe Con dential.
Memory optimizations and the getSize() method


                      Display Objects                                             Primitive types

    trace(getSize(new Shape()));                                            var a:Number;
    // output: 236                                                          trace(getSize(a));
                                                                            // output: 8

    trace(getSize(new Sprite()));                                           var b:int;
    // output: 412                                                          trace(getSize(b));
                                                                            // output: 4

    trace(getSize(new MovieClip()));                                        var name:String;
    // output: 440                                                          trace(getSize(name));
                                                                            // output: 4

                                                                            name = "";
                                                                            trace(getSize(name));
                                                                            // output: 24


©2010 Adobe Systems Incorporated. All Rights Reserved. Adobe Con dential.
Reusing objects




©2010 Adobe Systems Incorporated. All Rights Reserved. Adobe Con dential.
Freeing memory


 var mySprite:Sprite = new Sprite();

 mySprite = null;

 Remember that when an object is set to null, it is
 not necessarily removed from memory.
 Sometimes the garbage collector does not run, if
 available memory is not considered low enough.
 Garbage collection is not predictable.




                                     Object pooling




©2010 Adobe Systems Incorporated. All Rights Reserved. Adobe Con dential.
Freeing MovieClips



    Text
 Rectangle ? Alpha ? RemoveChild ? Visible ?


runningBoy.addEventListener(Event.ADDED_TO_STAGE,activate);
runningBoy.addEventListener(Event.REMOVED_FROM_STAGE,deactivate);

function activate(e:Event):void
{
  e.currentTarget.addEventListener(Event.ENTER_FRAME,handleMovement);
}

function deactivate(e:Event):void
{
  e.currentTarget.removeEventListener(Event.ENTER_FRAME,handleMovement);
  e.currentTarget.stop();
}



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



                Consider bitmaps vs. vectors.

                Avoid filters and blend modes.

                Transparency is very expensive.

                Keep bitmaps as small as possible.

                cacheAsBitmap is not that easy



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




                    Feel the transparency > opaqueBackground

                    Avoid TLF

                    Test different anti-aliasing technics (lisibility, animation...)

                    Test your animations with different qualities of Stage




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




                                                H264
©2010 Adobe Systems Incorporated. All Rights Reserved. Adobe Con dential.
Flex on mobile ?
©2010 Adobe Systems Incorporated. All Rights Reserved. Adobe Con dential.
Slider : Flex Mobile Framework



        Flex applications run on Flash Player 10.1, but...
        Challenges: Performance of the SDK, Different screen sizes and densities.
        Based on the Flex 4 codebase, Slider will include signi cant changes to optimize both the
         performance and user experience on more constrained device environments.
        Slider will include new capabilities speci cally designed for mobile development, such as a new
         construct for managing application “screens”. Resolution-independent layout.
        A new set of user interface components will be added which are designed for mobile form
         factors and input methods.




 © 2010 Adobe Systems Incorporated. All Rights Reserved. Adobe Con dential.
31
AIR on mobile devices

©2010 Adobe Systems Incorporated. All Rights Reserved. Adobe Con dential.
Adobe AIR for smartphones (and tablets)


        Adobe AIR allows developers to build standalone applications using Flash technology
        Public support from RIM and Motorola
        First mobile operating system to be supported is Android
        Provides Flash developers access to app stores
        AIR applications can be repackaged for the iPhone




 © 2010 Adobe Systems Incorporated. All Rights Reserved. Adobe Con dential.
33
AIR Packaging & Distribution Work ow



                                                                             .air



                                                                             .exe
                                                      .air
                                              (swf, jpg, mp3)
                                                                             .dmg


                                                                             .ipa


                                                                             .apk

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

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

                                             ■   Slides and samples on my blog: h p://www.RIAgora.com

                                             ■   Adobe TV

                                             ■   Optimization guides:
                                                 ■   Flash Player optimization for mobile devices
                                                 ■   Optimization for the iPhone
                                                 ■   AIR best practices for mobile devices
                                                 ■   Ads optimization

                                             ■   Technical articles:
                                                 ■   h p://www.adobe.com/devnet/ ashplayer/articles/
                                                     fplayer10.1_hardware_acceleration.html

                                             ■   h p://www. ashmobileblog.com/




©2010 Adobe Systems Incorporated. All Rights Reserved. Adobe Con dential.          36
Fight !

©2010 Adobe Systems Incorporated. All Rights Reserved. Adobe Con dential.
?
                                                                            Questions

©2010 Adobe Systems Incorporated. All Rights Reserved. Adobe Con dential.
Remember... slide ve...




                                                                            “Hopefully everyone understands
                                                                            that Michael Chaize commenting
                                                                               on mobile development is
                                                                               equivalent to Tiger Woods
                                                                            commenting on PaperVision 3D”

                                                                                                  Lee Brimelow




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

Más contenido relacionado

La actualidad más candente

Oop2012 mobile workshops
Oop2012 mobile workshopsOop2012 mobile workshops
Oop2012 mobile workshopsMichael Chaize
 
Flex and the city in London - Keynote
Flex and the city in London - KeynoteFlex and the city in London - Keynote
Flex and the city in London - KeynoteMichael Chaize
 
Flash camp portugal - Let's talk about Flex baby
Flash camp portugal - Let's talk about Flex babyFlash camp portugal - Let's talk about Flex baby
Flash camp portugal - Let's talk about Flex babyMichael Chaize
 
Back From MAX in London for CQ5 users
Back From MAX in London for CQ5 usersBack From MAX in London for CQ5 users
Back From MAX in London for CQ5 usersMichael Chaize
 
Ria2010 workshop dev mobile
Ria2010 workshop dev mobileRia2010 workshop dev mobile
Ria2010 workshop dev mobileMichael Chaize
 
Flex presentation for Paris Android User group PAUG
Flex presentation for Paris Android User group PAUGFlex presentation for Paris Android User group PAUG
Flex presentation for Paris Android User group PAUGMichael Chaize
 
JAX2010 Flex Java technical session: interactive dashboard
JAX2010 Flex Java technical session: interactive dashboardJAX2010 Flex Java technical session: interactive dashboard
JAX2010 Flex Java technical session: interactive dashboardMichael Chaize
 
Adobe et la stratégie multi-écrans
Adobe et la stratégie multi-écransAdobe et la stratégie multi-écrans
Adobe et la stratégie multi-écransMichael Chaize
 
Adobe flash platform java
Adobe flash platform javaAdobe flash platform java
Adobe flash platform javaMichael Chaize
 
Oop2012 keynote Design Driven Development
Oop2012 keynote Design Driven DevelopmentOop2012 keynote Design Driven Development
Oop2012 keynote Design Driven DevelopmentMichael Chaize
 
Using design pattern for mobile
Using design pattern for mobileUsing design pattern for mobile
Using design pattern for mobileluca mezzalira
 
Breizh camp adobe flex et les mobiles
Breizh camp   adobe flex et les mobilesBreizh camp   adobe flex et les mobiles
Breizh camp adobe flex et les mobilesMichael Chaize
 
Flex 4.5 and mobile development
Flex 4.5 and mobile developmentFlex 4.5 and mobile development
Flex 4.5 and mobile developmentMichael Chaize
 
Eva flex java_1_slides
Eva flex java_1_slidesEva flex java_1_slides
Eva flex java_1_slidesMichael Chaize
 
Fm Mc Presentation Ria2008
Fm Mc   Presentation Ria2008Fm Mc   Presentation Ria2008
Fm Mc Presentation Ria2008Michael Chaize
 
Enterprise Flex applications on tablet devices
Enterprise Flex applications on tablet devicesEnterprise Flex applications on tablet devices
Enterprise Flex applications on tablet devicesMichael Chaize
 
Creating Flash Content for Mobile Devices
Creating Flash Content for Mobile DevicesCreating Flash Content for Mobile Devices
Creating Flash Content for Mobile Devicespaultrani
 
One backend multiple Screens
One backend multiple ScreensOne backend multiple Screens
One backend multiple ScreensMichael Chaize
 

La actualidad más candente (20)

Oop2012 mobile workshops
Oop2012 mobile workshopsOop2012 mobile workshops
Oop2012 mobile workshops
 
Flex and the city in London - Keynote
Flex and the city in London - KeynoteFlex and the city in London - Keynote
Flex and the city in London - Keynote
 
Flash camp portugal - Let's talk about Flex baby
Flash camp portugal - Let's talk about Flex babyFlash camp portugal - Let's talk about Flex baby
Flash camp portugal - Let's talk about Flex baby
 
Back From MAX in London for CQ5 users
Back From MAX in London for CQ5 usersBack From MAX in London for CQ5 users
Back From MAX in London for CQ5 users
 
Ria2010 workshop dev mobile
Ria2010 workshop dev mobileRia2010 workshop dev mobile
Ria2010 workshop dev mobile
 
Flex presentation for Paris Android User group PAUG
Flex presentation for Paris Android User group PAUGFlex presentation for Paris Android User group PAUG
Flex presentation for Paris Android User group PAUG
 
JAX2010 Flex Java technical session: interactive dashboard
JAX2010 Flex Java technical session: interactive dashboardJAX2010 Flex Java technical session: interactive dashboard
JAX2010 Flex Java technical session: interactive dashboard
 
Adobe et la stratégie multi-écrans
Adobe et la stratégie multi-écransAdobe et la stratégie multi-écrans
Adobe et la stratégie multi-écrans
 
Adobe flash platform java
Adobe flash platform javaAdobe flash platform java
Adobe flash platform java
 
Oop2012 keynote Design Driven Development
Oop2012 keynote Design Driven DevelopmentOop2012 keynote Design Driven Development
Oop2012 keynote Design Driven Development
 
Jax2010 adobe lcds
Jax2010 adobe lcdsJax2010 adobe lcds
Jax2010 adobe lcds
 
Using design pattern for mobile
Using design pattern for mobileUsing design pattern for mobile
Using design pattern for mobile
 
Breizh camp adobe flex et les mobiles
Breizh camp   adobe flex et les mobilesBreizh camp   adobe flex et les mobiles
Breizh camp adobe flex et les mobiles
 
Flex 4.5 and mobile development
Flex 4.5 and mobile developmentFlex 4.5 and mobile development
Flex 4.5 and mobile development
 
Jax 2011 keynote
Jax 2011 keynoteJax 2011 keynote
Jax 2011 keynote
 
Eva flex java_1_slides
Eva flex java_1_slidesEva flex java_1_slides
Eva flex java_1_slides
 
Fm Mc Presentation Ria2008
Fm Mc   Presentation Ria2008Fm Mc   Presentation Ria2008
Fm Mc Presentation Ria2008
 
Enterprise Flex applications on tablet devices
Enterprise Flex applications on tablet devicesEnterprise Flex applications on tablet devices
Enterprise Flex applications on tablet devices
 
Creating Flash Content for Mobile Devices
Creating Flash Content for Mobile DevicesCreating Flash Content for Mobile Devices
Creating Flash Content for Mobile Devices
 
One backend multiple Screens
One backend multiple ScreensOne backend multiple Screens
One backend multiple Screens
 

Destacado

Kõnepuue
KõnepuueKõnepuue
Kõnepuuekiq
 
Metodika MV ČR PRINCeGON
Metodika MV ČR PRINCeGONMetodika MV ČR PRINCeGON
Metodika MV ČR PRINCeGONEquica
 
The Preoccupation of All Things
The Preoccupation of All ThingsThe Preoccupation of All Things
The Preoccupation of All ThingsAlvin Reyes
 
FITC Amsterdam 2015 - keynote-adobe - We are mutants
FITC Amsterdam 2015 -  keynote-adobe - We are mutantsFITC Amsterdam 2015 -  keynote-adobe - We are mutants
FITC Amsterdam 2015 - keynote-adobe - We are mutantsMichael Chaize
 
Larsine
LarsineLarsine
Larsineeka
 
Afghanistan Powerpoint Country
Afghanistan Powerpoint CountryAfghanistan Powerpoint Country
Afghanistan Powerpoint CountryAndrew Schwartz
 
Pocket agile challenge adobe mobile v1.0.pptx
Pocket agile   challenge adobe mobile v1.0.pptxPocket agile   challenge adobe mobile v1.0.pptx
Pocket agile challenge adobe mobile v1.0.pptxMichael Chaize
 
クロスブラウザ拡張ライブラリExtension.js
クロスブラウザ拡張ライブラリExtension.js クロスブラウザ拡張ライブラリExtension.js
クロスブラウザ拡張ライブラリExtension.js swdyh
 
«Зачем», «что» и «как» в исследовании коллокаций.
«Зачем», «что» и «как» в исследовании коллокаций. «Зачем», «что» и «как» в исследовании коллокаций.
«Зачем», «что» и «как» в исследовании коллокаций. Lidia Pivovarova
 
放下
放下放下
放下nonnon
 
Publicitas Töggeliabend 2008
Publicitas Töggeliabend 2008Publicitas Töggeliabend 2008
Publicitas Töggeliabend 2008mobileconnect
 
M1. sem web & ontology introd
M1. sem web & ontology introdM1. sem web & ontology introd
M1. sem web & ontology introdMichele Missikoff
 
Youtube, come promuovere la propria azienda!
Youtube, come promuovere la propria azienda!Youtube, come promuovere la propria azienda!
Youtube, come promuovere la propria azienda!Marco Zambon
 
Alcohol and Drugs in the Workplace
Alcohol and Drugs in the WorkplaceAlcohol and Drugs in the Workplace
Alcohol and Drugs in the WorkplaceAndrew Schwartz
 
Time Management and Technology
Time Management and TechnologyTime Management and Technology
Time Management and TechnologyAndrew Schwartz
 

Destacado (17)

Kõnepuue
KõnepuueKõnepuue
Kõnepuue
 
Metodika MV ČR PRINCeGON
Metodika MV ČR PRINCeGONMetodika MV ČR PRINCeGON
Metodika MV ČR PRINCeGON
 
The Preoccupation of All Things
The Preoccupation of All ThingsThe Preoccupation of All Things
The Preoccupation of All Things
 
FITC Amsterdam 2015 - keynote-adobe - We are mutants
FITC Amsterdam 2015 -  keynote-adobe - We are mutantsFITC Amsterdam 2015 -  keynote-adobe - We are mutants
FITC Amsterdam 2015 - keynote-adobe - We are mutants
 
Larsine
LarsineLarsine
Larsine
 
Afghanistan Powerpoint Country
Afghanistan Powerpoint CountryAfghanistan Powerpoint Country
Afghanistan Powerpoint Country
 
Pocket agile challenge adobe mobile v1.0.pptx
Pocket agile   challenge adobe mobile v1.0.pptxPocket agile   challenge adobe mobile v1.0.pptx
Pocket agile challenge adobe mobile v1.0.pptx
 
クロスブラウザ拡張ライブラリExtension.js
クロスブラウザ拡張ライブラリExtension.js クロスブラウザ拡張ライブラリExtension.js
クロスブラウザ拡張ライブラリExtension.js
 
大家行03
大家行03大家行03
大家行03
 
«Зачем», «что» и «как» в исследовании коллокаций.
«Зачем», «что» и «как» в исследовании коллокаций. «Зачем», «что» и «как» в исследовании коллокаций.
«Зачем», «что» и «как» в исследовании коллокаций.
 
放下
放下放下
放下
 
Publicitas Töggeliabend 2008
Publicitas Töggeliabend 2008Publicitas Töggeliabend 2008
Publicitas Töggeliabend 2008
 
M1. sem web & ontology introd
M1. sem web & ontology introdM1. sem web & ontology introd
M1. sem web & ontology introd
 
Youtube, come promuovere la propria azienda!
Youtube, come promuovere la propria azienda!Youtube, come promuovere la propria azienda!
Youtube, come promuovere la propria azienda!
 
Alcohol and Drugs in the Workplace
Alcohol and Drugs in the WorkplaceAlcohol and Drugs in the Workplace
Alcohol and Drugs in the Workplace
 
INFORED RURAL
INFORED RURALINFORED RURAL
INFORED RURAL
 
Time Management and Technology
Time Management and TechnologyTime Management and Technology
Time Management and Technology
 

Similar a Best practices for Flash applications on mobile devices

Creating Mobile Content Using Flash
Creating Mobile Content Using FlashCreating Mobile Content Using Flash
Creating Mobile Content Using Flashpaultrani
 
Adobe flash platform java
Adobe flash platform javaAdobe flash platform java
Adobe flash platform javaCh'ti JUG
 
Flash Applications For Mobile
Flash Applications For MobileFlash Applications For Mobile
Flash Applications For MobileSerge Jespers
 
Adobe Flash platform の法人利用
Adobe Flash platform の法人利用Adobe Flash platform の法人利用
Adobe Flash platform の法人利用Keisuke Todoroki
 
Adobe Shadow - Amsterdam Adobe Camp
Adobe Shadow - Amsterdam Adobe CampAdobe Shadow - Amsterdam Adobe Camp
Adobe Shadow - Amsterdam Adobe CampMihai Corlan
 
Innovation and the Adobe Flash Platform
Innovation and the Adobe Flash PlatformInnovation and the Adobe Flash Platform
Innovation and the Adobe Flash PlatformMichael Chaize
 
From Desktop to Mobile: Application Functionality for Small Screens
From Desktop to Mobile: Application Functionality for Small ScreensFrom Desktop to Mobile: Application Functionality for Small Screens
From Desktop to Mobile: Application Functionality for Small ScreensJoseph Labrecque
 
Xebia adobe flash mobile applications
Xebia adobe flash mobile applicationsXebia adobe flash mobile applications
Xebia adobe flash mobile applicationsMichael Chaize
 
iQ FutureNow: Ensuring the success of your mobile strategy
iQ FutureNow: Ensuring the success of your mobile strategyiQ FutureNow: Ensuring the success of your mobile strategy
iQ FutureNow: Ensuring the success of your mobile strategyiQcontent
 
UX Concerns across Mobile Platforms
UX Concerns across Mobile PlatformsUX Concerns across Mobile Platforms
UX Concerns across Mobile PlatformsJoseph Labrecque
 
Creating Compelling Mobile User Experiences
Creating Compelling Mobile User ExperiencesCreating Compelling Mobile User Experiences
Creating Compelling Mobile User ExperiencesChris Griffith
 
Development mobile app cross device
Development mobile app cross deviceDevelopment mobile app cross device
Development mobile app cross devicePhuong Nguyen
 
Develop mobile applications with Flex
Develop mobile applications with FlexDevelop mobile applications with Flex
Develop mobile applications with FlexConFoo
 
The future of the Adobe Flash platform
The future of the Adobe Flash platformThe future of the Adobe Flash platform
The future of the Adobe Flash platformMichael Chaize
 
Deloitte Cem Ams 25 May2011
Deloitte Cem Ams 25 May2011Deloitte Cem Ams 25 May2011
Deloitte Cem Ams 25 May2011Theo Slaats
 

Similar a Best practices for Flash applications on mobile devices (20)

Creating Mobile Content Using Flash
Creating Mobile Content Using FlashCreating Mobile Content Using Flash
Creating Mobile Content Using Flash
 
Adobe flash platform java
Adobe flash platform javaAdobe flash platform java
Adobe flash platform java
 
Flash Applications For Mobile
Flash Applications For MobileFlash Applications For Mobile
Flash Applications For Mobile
 
Adobe Flash platform の法人利用
Adobe Flash platform の法人利用Adobe Flash platform の法人利用
Adobe Flash platform の法人利用
 
Adobe Shadow - Amsterdam Adobe Camp
Adobe Shadow - Amsterdam Adobe CampAdobe Shadow - Amsterdam Adobe Camp
Adobe Shadow - Amsterdam Adobe Camp
 
Innovation and the Adobe Flash Platform
Innovation and the Adobe Flash PlatformInnovation and the Adobe Flash Platform
Innovation and the Adobe Flash Platform
 
From Desktop to Mobile: Application Functionality for Small Screens
From Desktop to Mobile: Application Functionality for Small ScreensFrom Desktop to Mobile: Application Functionality for Small Screens
From Desktop to Mobile: Application Functionality for Small Screens
 
Xebia adobe flash mobile applications
Xebia adobe flash mobile applicationsXebia adobe flash mobile applications
Xebia adobe flash mobile applications
 
MMT 28: Adobe »Edge to the Flash«
MMT 28: Adobe »Edge to the Flash«MMT 28: Adobe »Edge to the Flash«
MMT 28: Adobe »Edge to the Flash«
 
iQ FutureNow: Ensuring the success of your mobile strategy
iQ FutureNow: Ensuring the success of your mobile strategyiQ FutureNow: Ensuring the success of your mobile strategy
iQ FutureNow: Ensuring the success of your mobile strategy
 
UX Concerns across Mobile Platforms
UX Concerns across Mobile PlatformsUX Concerns across Mobile Platforms
UX Concerns across Mobile Platforms
 
Mobile revolution
Mobile revolutionMobile revolution
Mobile revolution
 
Creating Compelling Mobile User Experiences
Creating Compelling Mobile User ExperiencesCreating Compelling Mobile User Experiences
Creating Compelling Mobile User Experiences
 
Development mobile app cross device
Development mobile app cross deviceDevelopment mobile app cross device
Development mobile app cross device
 
Flexpaug 111207121300-phpapp01
Flexpaug 111207121300-phpapp01Flexpaug 111207121300-phpapp01
Flexpaug 111207121300-phpapp01
 
Develop mobile applications with Flex
Develop mobile applications with FlexDevelop mobile applications with Flex
Develop mobile applications with Flex
 
W-JAX Keynote 2010
W-JAX Keynote 2010W-JAX Keynote 2010
W-JAX Keynote 2010
 
The future of the Adobe Flash platform
The future of the Adobe Flash platformThe future of the Adobe Flash platform
The future of the Adobe Flash platform
 
Air for android with flex
Air for android with flexAir for android with flex
Air for android with flex
 
Deloitte Cem Ams 25 May2011
Deloitte Cem Ams 25 May2011Deloitte Cem Ams 25 May2011
Deloitte Cem Ams 25 May2011
 

Más de Michael Chaize

Typography on the Web - FITC Amsterdam 2015
Typography on the Web - FITC Amsterdam 2015Typography on the Web - FITC Amsterdam 2015
Typography on the Web - FITC Amsterdam 2015Michael Chaize
 
Multimania - Web Design Trends
Multimania - Web Design TrendsMultimania - Web Design Trends
Multimania - Web Design TrendsMichael Chaize
 
Feweb - Adobe et le Web Design
Feweb - Adobe et le Web DesignFeweb - Adobe et le Web Design
Feweb - Adobe et le Web DesignMichael Chaize
 
FITC 2014 Amsterdam - Adobe Apps for Web Designers in 2014
FITC 2014 Amsterdam - Adobe Apps for Web Designers in 2014FITC 2014 Amsterdam - Adobe Apps for Web Designers in 2014
FITC 2014 Amsterdam - Adobe Apps for Web Designers in 2014Michael Chaize
 
Adobe gaming flash gamm michael
Adobe gaming flash gamm michaelAdobe gaming flash gamm michael
Adobe gaming flash gamm michaelMichael Chaize
 
Max2013 rejected apps presentation
Max2013   rejected apps presentationMax2013   rejected apps presentation
Max2013 rejected apps presentationMichael Chaize
 
Ria2010 keynote développeurs
Ria2010 keynote développeursRia2010 keynote développeurs
Ria2010 keynote développeursMichael Chaize
 
Devoxx 2010: Develop mobile applications with Flex
Devoxx 2010: Develop mobile applications with FlexDevoxx 2010: Develop mobile applications with Flex
Devoxx 2010: Develop mobile applications with FlexMichael Chaize
 

Más de Michael Chaize (8)

Typography on the Web - FITC Amsterdam 2015
Typography on the Web - FITC Amsterdam 2015Typography on the Web - FITC Amsterdam 2015
Typography on the Web - FITC Amsterdam 2015
 
Multimania - Web Design Trends
Multimania - Web Design TrendsMultimania - Web Design Trends
Multimania - Web Design Trends
 
Feweb - Adobe et le Web Design
Feweb - Adobe et le Web DesignFeweb - Adobe et le Web Design
Feweb - Adobe et le Web Design
 
FITC 2014 Amsterdam - Adobe Apps for Web Designers in 2014
FITC 2014 Amsterdam - Adobe Apps for Web Designers in 2014FITC 2014 Amsterdam - Adobe Apps for Web Designers in 2014
FITC 2014 Amsterdam - Adobe Apps for Web Designers in 2014
 
Adobe gaming flash gamm michael
Adobe gaming flash gamm michaelAdobe gaming flash gamm michael
Adobe gaming flash gamm michael
 
Max2013 rejected apps presentation
Max2013   rejected apps presentationMax2013   rejected apps presentation
Max2013 rejected apps presentation
 
Ria2010 keynote développeurs
Ria2010 keynote développeursRia2010 keynote développeurs
Ria2010 keynote développeurs
 
Devoxx 2010: Develop mobile applications with Flex
Devoxx 2010: Develop mobile applications with FlexDevoxx 2010: Develop mobile applications with Flex
Devoxx 2010: Develop mobile applications with Flex
 

Último

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
 
Handwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed textsHandwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed textsMaria Levchenko
 
Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024The Digital Insurer
 
Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...
Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...
Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...Igalia
 
How to convert PDF to text with Nanonets
How to convert PDF to text with NanonetsHow to convert PDF to text with Nanonets
How to convert PDF to text with Nanonetsnaman860154
 
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 WorkerThousandEyes
 
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
 
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...Martijn de Jong
 
CNv6 Instructor Chapter 6 Quality of Service
CNv6 Instructor Chapter 6 Quality of ServiceCNv6 Instructor Chapter 6 Quality of Service
CNv6 Instructor Chapter 6 Quality of Servicegiselly40
 
08448380779 Call Girls In Greater Kailash - I Women Seeking Men
08448380779 Call Girls In Greater Kailash - I Women Seeking Men08448380779 Call Girls In Greater Kailash - I Women Seeking Men
08448380779 Call Girls In Greater Kailash - I Women Seeking MenDelhi Call girls
 
IAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI SolutionsIAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI SolutionsEnterprise Knowledge
 
Slack Application Development 101 Slides
Slack Application Development 101 SlidesSlack Application Development 101 Slides
Slack Application Development 101 Slidespraypatel2
 
From Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time AutomationFrom Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time AutomationSafe Software
 
Tata AIG General Insurance Company - Insurer Innovation Award 2024
Tata AIG General Insurance Company - Insurer Innovation Award 2024Tata AIG General Insurance Company - Insurer Innovation Award 2024
Tata AIG General Insurance Company - Insurer Innovation Award 2024The Digital Insurer
 
Scaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organizationScaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organizationRadu Cotescu
 
🐬 The future of MySQL is Postgres 🐘
🐬  The future of MySQL is Postgres   🐘🐬  The future of MySQL is Postgres   🐘
🐬 The future of MySQL is Postgres 🐘RTylerCroy
 
Artificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and MythsArtificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and MythsJoaquim Jorge
 
The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024Rafal Los
 
Driving Behavioral Change for Information Management through Data-Driven Gree...
Driving Behavioral Change for Information Management through Data-Driven Gree...Driving Behavioral Change for Information Management through Data-Driven Gree...
Driving Behavioral Change for Information Management through Data-Driven Gree...Enterprise Knowledge
 
Histor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slideHistor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slidevu2urc
 

Último (20)

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
 
Handwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed textsHandwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed texts
 
Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024
 
Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...
Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...
Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...
 
How to convert PDF to text with Nanonets
How to convert PDF to text with NanonetsHow to convert PDF to text with Nanonets
How to convert PDF to text with Nanonets
 
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
 
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...
 
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...
 
CNv6 Instructor Chapter 6 Quality of Service
CNv6 Instructor Chapter 6 Quality of ServiceCNv6 Instructor Chapter 6 Quality of Service
CNv6 Instructor Chapter 6 Quality of Service
 
08448380779 Call Girls In Greater Kailash - I Women Seeking Men
08448380779 Call Girls In Greater Kailash - I Women Seeking Men08448380779 Call Girls In Greater Kailash - I Women Seeking Men
08448380779 Call Girls In Greater Kailash - I Women Seeking Men
 
IAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI SolutionsIAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI Solutions
 
Slack Application Development 101 Slides
Slack Application Development 101 SlidesSlack Application Development 101 Slides
Slack Application Development 101 Slides
 
From Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time AutomationFrom Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time Automation
 
Tata AIG General Insurance Company - Insurer Innovation Award 2024
Tata AIG General Insurance Company - Insurer Innovation Award 2024Tata AIG General Insurance Company - Insurer Innovation Award 2024
Tata AIG General Insurance Company - Insurer Innovation Award 2024
 
Scaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organizationScaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organization
 
🐬 The future of MySQL is Postgres 🐘
🐬  The future of MySQL is Postgres   🐘🐬  The future of MySQL is Postgres   🐘
🐬 The future of MySQL is Postgres 🐘
 
Artificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and MythsArtificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and Myths
 
The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024
 
Driving Behavioral Change for Information Management through Data-Driven Gree...
Driving Behavioral Change for Information Management through Data-Driven Gree...Driving Behavioral Change for Information Management through Data-Driven Gree...
Driving Behavioral Change for Information Management through Data-Driven Gree...
 
Histor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slideHistor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slide
 

Best practices for Flash applications on mobile devices

  • 1. Best practices for mobile development with the Flash Platform Mark Doherty | Flash Platform Evangelist ©2010 Adobe Systems Incorporated. All Rights Reserved. Adobe Con dential.
  • 2. Before starting... 3 questions ©2010 Adobe Systems Incorporated. All Rights Reserved. Adobe Con dential. 2
  • 3. Why Mark looks so French today? ©2010 Adobe Systems Incorporated. All Rights Reserved. Adobe Con dential. 3
  • 4. Ok then... who are you ? Michaël Chaize Flash Platform Evangelist My blog: www.RIAgora.com @mchaize ©2010 Adobe Systems Incorporated. All Rights Reserved. Adobe Con dential. 4
  • 5. Best-practices for mobile development ? “Hopefully everyone understands that Michael Chaize commenting on mobile development is equivalent to Tiger Woods commenting on PaperVision 3D” Lee Brimelow ©2010 Adobe Systems Incorporated. All Rights Reserved. Adobe Con dential. 5
  • 6. Menu du jour Flash and screens Design considerations Flash best practices Flex on mobile ? AIR on mobile devices Resources ©2010 Adobe Systems Incorporated. All Rights Reserved. Adobe Con dential. 6
  • 7. Flash and screens ©2010 Adobe Systems Incorporated. All Rights Reserved. Adobe Con dential. 7
  • 8. Applications are beginning adapt to context > > RIA Cloud Devices ©2010 Adobe Systems Incorporated. All Rights Reserved. Adobe Con dential. Adobe Systems Inc.| FOTB2009
  • 9. Digital Explosion Across Multiple Screens Consumer Electronics Mobile Phones Personal Computers ©2010 Adobe Systems Incorporated. All Rights Reserved. Adobe Con dential. 9
  • 10. Flash Platform - A complete system for web innovation ©2010 Adobe Systems Incorporated. All Rights Reserved. Adobe Con dential.
  • 11. Flash Player 10.1  e only consistent browser-based runtime for connected devices  Targeting desktops, mobile phones, netbooks, tablets, and the Digital Home  On track for delivery to consumers in rst half of 2010  Runtimes will be available over-the-air through marketplaces and Adobe.com © 2010 Adobe Systems Incorporated. All Rights Reserved. Adobe Con dential.
  • 12. Flash Player 10.1  Brings full Flash Player feature set to devices  New Features:  Multi-touch & gestures  Accelerometer  Screen orientation  Mobile text input  Device capabilities discovery  Globalization support (GSLib)  Mobile se ings manager  Global error handling © 2010 Adobe Systems Incorporated. All Rights Reserved. Adobe Con dential.
  • 13. Flash Player 10.1 API and testing ©2010 Adobe Systems Incorporated. All Rights Reserved. Adobe Con dential. 13
  • 14. Design considerations ©2010 Adobe Systems Incorporated. All Rights Reserved. Adobe Con dential. 14
  • 15. Context ©2010 Adobe Systems Incorporated. All Rights Reserved. Adobe Con dential. 15
  • 16. Screens 800px 480px 480px 320px ©2010 Adobe Systems Incorporated. All Rights Reserved. Adobe Con dential. 16
  • 17. Finger 7mm 44px ≠ ©2010 Adobe Systems Incorporated. All Rights Reserved. Adobe Con dential. 17
  • 18. Usually, a nger comes with a hand ©2010 Adobe Systems Incorporated. All Rights Reserved. Adobe Con dential. 18 Copyright 2009 Adobe Systems Incorporated. All rights reserved. Adobe con dential.
  • 19. Native keyboard ©2010 Adobe Systems Incorporated. All Rights Reserved. Adobe Con dential. 19
  • 20. Flash best practices ©2010 Adobe Systems Incorporated. All Rights Reserved. Adobe Con dential.
  • 21. Graphical optimizations 10% 90% rendering pure algorithm ©2010 Adobe Systems Incorporated. All Rights Reserved. Adobe Con dential.
  • 22. Understand its behavior Avoid high-rate timers Keep FPS as low as possible Set dynamic FPS FPS and enterFrame events ©2010 Adobe Systems Incorporated. All Rights Reserved. Adobe Con dential.
  • 23. Memory optimizations and the getSize() method Display Objects Primitive types trace(getSize(new Shape())); var a:Number; // output: 236 trace(getSize(a)); // output: 8 trace(getSize(new Sprite())); var b:int; // output: 412 trace(getSize(b)); // output: 4 trace(getSize(new MovieClip())); var name:String; // output: 440 trace(getSize(name)); // output: 4 name = ""; trace(getSize(name)); // output: 24 ©2010 Adobe Systems Incorporated. All Rights Reserved. Adobe Con dential.
  • 24. Reusing objects ©2010 Adobe Systems Incorporated. All Rights Reserved. Adobe Con dential.
  • 25. Freeing memory var mySprite:Sprite = new Sprite(); mySprite = null; Remember that when an object is set to null, it is not necessarily removed from memory. Sometimes the garbage collector does not run, if available memory is not considered low enough. Garbage collection is not predictable. Object pooling ©2010 Adobe Systems Incorporated. All Rights Reserved. Adobe Con dential.
  • 26. Freeing MovieClips Text Rectangle ? Alpha ? RemoveChild ? Visible ? runningBoy.addEventListener(Event.ADDED_TO_STAGE,activate); runningBoy.addEventListener(Event.REMOVED_FROM_STAGE,deactivate); function activate(e:Event):void { e.currentTarget.addEventListener(Event.ENTER_FRAME,handleMovement); } function deactivate(e:Event):void { e.currentTarget.removeEventListener(Event.ENTER_FRAME,handleMovement); e.currentTarget.stop(); } ©2010 Adobe Systems Incorporated. All Rights Reserved. Adobe Con dential.
  • 27. Bitmaps Consider bitmaps vs. vectors. Avoid filters and blend modes. Transparency is very expensive. Keep bitmaps as small as possible. cacheAsBitmap is not that easy ©2010 Adobe Systems Incorporated. All Rights Reserved. Adobe Con dential.
  • 28. Text Feel the transparency > opaqueBackground Avoid TLF Test different anti-aliasing technics (lisibility, animation...) Test your animations with different qualities of Stage ©2010 Adobe Systems Incorporated. All Rights Reserved. Adobe Con dential.
  • 29. Video H264 ©2010 Adobe Systems Incorporated. All Rights Reserved. Adobe Con dential.
  • 30. Flex on mobile ? ©2010 Adobe Systems Incorporated. All Rights Reserved. Adobe Con dential.
  • 31. Slider : Flex Mobile Framework  Flex applications run on Flash Player 10.1, but...  Challenges: Performance of the SDK, Different screen sizes and densities.  Based on the Flex 4 codebase, Slider will include signi cant changes to optimize both the performance and user experience on more constrained device environments.  Slider will include new capabilities speci cally designed for mobile development, such as a new construct for managing application “screens”. Resolution-independent layout.  A new set of user interface components will be added which are designed for mobile form factors and input methods. © 2010 Adobe Systems Incorporated. All Rights Reserved. Adobe Con dential. 31
  • 32. AIR on mobile devices ©2010 Adobe Systems Incorporated. All Rights Reserved. Adobe Con dential.
  • 33. Adobe AIR for smartphones (and tablets)  Adobe AIR allows developers to build standalone applications using Flash technology  Public support from RIM and Motorola  First mobile operating system to be supported is Android  Provides Flash developers access to app stores  AIR applications can be repackaged for the iPhone © 2010 Adobe Systems Incorporated. All Rights Reserved. Adobe Con dential. 33
  • 34. AIR Packaging & Distribution Work ow .air .exe .air (swf, jpg, mp3) .dmg .ipa .apk © 2010 Adobe Systems Incorporated. All Rights Reserved. Adobe Con dential.
  • 35. Resources ©2010 Adobe Systems Incorporated. All Rights Reserved. Adobe Con dential.
  • 36. Resources ■ Slides and samples on my blog: h p://www.RIAgora.com ■ Adobe TV ■ Optimization guides: ■ Flash Player optimization for mobile devices ■ Optimization for the iPhone ■ AIR best practices for mobile devices ■ Ads optimization ■ Technical articles: ■ h p://www.adobe.com/devnet/ ashplayer/articles/ fplayer10.1_hardware_acceleration.html ■ h p://www. ashmobileblog.com/ ©2010 Adobe Systems Incorporated. All Rights Reserved. Adobe Con dential. 36
  • 37. Fight ! ©2010 Adobe Systems Incorporated. All Rights Reserved. Adobe Con dential.
  • 38. ? Questions ©2010 Adobe Systems Incorporated. All Rights Reserved. Adobe Con dential.
  • 39. Remember... slide ve... “Hopefully everyone understands that Michael Chaize commenting on mobile development is equivalent to Tiger Woods commenting on PaperVision 3D” Lee Brimelow ©2010 Adobe Systems Incorporated. All Rights Reserved. Adobe Con dential. 39