Programming Advanced
Nokia Features with
Flash Lite
Scott Janousek
October 10, 2008
Agenda
•   Intro
•   S60 and Flash Lite Overview (Quick)
•   Extending Flash Lite on S60 3rd Edition
•   Walkthrough/Demo
...
Goal

  At the end of this session, you will …




       Learn ways to tap advanced Nokia Features
       from Flash Lite...
Stuff about me …

INTRO


             © 2008 Nokia   Slide 4   Company Confidential
About Scott Janousek
 • Professional
    • Founder/Technical Director, Hooken Mobile
    • Creating Flash Experiences (gam...
Some Recent (Community) Flash Lite Content

 • Recent content outside of NDAs, etc




    Flash Lite Casual Game         ...
Upcoming Flash Book!

• “Solutions to Mobile & Device Development with Flash Lite”
• AdvancED Book: Friends of Ed
• Covers...
Stuff you may, or may not, already know …

S60 AND FLASH LITE OVERVIEW (QUICK)


             © 2008 Nokia              Sl...
Nokia Series 60 Platform (Quick Recap)


 • Series 60, or “S60”
     S60 Platform (formerly Series 60 User Interface)
    ...
Relevant Nokia S60 Stats

  • S60 Devices Shipped = +150 Million
  • S60 3rd Edition devices = +80 Million
  • All 3rd Edi...
Some of my Nokia S60 3rd Edition devices

 • Nokia N95, Nokia N95 8GB, Nokia E90
 • Favorites for Flash Lite development o...
What is Flash Lite (Quick overview)


 • “An optimized Adobe Flash run-time player for mobile
   and other non-pc devices”...
Flash Lite Architecture (Version 3.0)




            © 2008 Nokia      Slide 13   Company Confidential
Flash Lite – Strengths and Weaknesses

 • Strengths
    • Media Capabilities
       • Graphics, Sound, Video, Text
    • C...
The Fun Stuff …

EXTENDING FLASH LITE ON S60 3RD EDITION


             © 2008 Nokia   Slide 15   Company Confidential
Size =~ Addressable Market
S60 Platform Development
                     EXPERIENCE




                   Flash Lite

   ...
Size =~ Addressable Market
S60 Development Costs
                                                               Developmen...
Symbian/S60 Development Realities

 • Native Symbian Development Challenges
    • More $$$
    • More Time
    • More Prod...
How to “Extend” Flash Lite
 • By using 3rd party products ...



                                                      Jan...
Extending S60 Flash Lite: Pros vs Cons
 • Some Pros
    • Reach “outside the box” of current functionality
    • Tap reall...
Kuneri Lite – One Line Product Explanation

 • “Rapid Application Development Toolkit for Flash Lite”
                    ...
Kuneri Lite Platform “Stack”


                              Flash Lite
                           User Interface & Logic
...
Kuneri Lite Features

 • Fast
 • Powerful
 • Transparent to end-user
 • Small Footprint
 • 12 Plug-ins (growing)
 • Easy P...
Kuneri Lite – Plug-ins
  • Accelerometer                                  • Protect
     Read Sensor Values               ...
Kuneri Lite Products

 • 3 versions that offer same feature set
 • Developer → Professional → Commercial

  FREE Developer...
Kuneri-ized Apps – Path to Market

• Path to Market

  FREE Developer Version        Commercial/Professional   Nokia S60 D...
Kuneri Lite – Product Wizard Walkthrough




           © 2008 Nokia    Slide 27        Company Confidential
Kuneri Lite Architecture/Development

        Architecture                                    Development
      Flash Lite...
Kuneri Lite – Testing Work Flow

     Testing Work Flow
      Develop Flash Content
            CS3/CS4




           Kun...
Demo & Walkthrough
Two Simple examples using Kuneri Lite Plug-ins




           KISS 60 ScreenSaver Catalog   “Gravity” –...
Polling Methods for Kuneri Lite

Flash Lite 1.1              Flash Lite 2.x/3.x
•Off Stage MovieClip        •setInterval()...
Kuneri Lite Communication via ActionScript
 • Flash Lite 1.1
    • “Flash 4 syntax” - Create and off stage movieclip and
 ...
What’s new and upcoming with Flash Lite on Nokia devices?

S60 PLATFORM SERVICES


             © 2008 Nokia             S...
Programming Nokia S60 System Features

 • Features / APIs not accessible (by default) in Flash Lite
    • Camera
    • Mes...
S60 Platform Services




•   Language and runtime neutral interface to platform service APIs
•   Available with S60 5th E...
S60 Platform Services API Support

 • The first release of S60 Platform Services for Flash
   Lite supports these APIs
   ...
ActionScript Class Library

 • S60 Platform Services interfaces implemented as a
   new ActionScript class library
 • Bind...
Code Sample – Location API
 import com.nokia.lib.*;

 var locationUpdateParams = new Object();
 var locationUpdateCallback...
All (good) things must come to an end …

SUMMARY


             © 2008 Nokia                 Slide 39   Company Confidenti...
Summary
 • Flash Lite is very good at what it does ...
 • Use 3rd Party Extenders for S60 apps under 3rd Edition
 • Consid...
Call for Action



Build more POWERFUL Flash Lite content –
                                   visit:


                  ...
For More Information
 Adobe Flash Lite
    •   www.adobe.com/mobile
    •   www.adobe.com/go/4it

 3rd Party Products
    ...
Thank You!
 • Email Addresses:
    • scott@scottjanousek.com
    • scottjanousek@hookenmobile.com

 • URLs:
    • flashmob...
Questions?

Q&A


             © 2008 Nokia   Slide 44   Company Confidential
Upcoming SlideShare
Loading in...5
×

Programming Advanced Nokia Features with Flash Lite

7,702

Published on

Programming Advanced Nokia Features with Flash Lite
October 10, 2008
Forum Nokia Flash Lite Technology Day (Boston)

Published in: Technology
1 Comment
18 Likes
Statistics
Notes
No Downloads
Views
Total Views
7,702
On Slideshare
0
From Embeds
0
Number of Embeds
3
Actions
Shares
0
Downloads
7
Comments
1
Likes
18
Embeds 0
No embeds

No notes for slide

Programming Advanced Nokia Features with Flash Lite

  1. 1. Programming Advanced Nokia Features with Flash Lite Scott Janousek October 10, 2008
  2. 2. Agenda • Intro • S60 and Flash Lite Overview (Quick) • Extending Flash Lite on S60 3rd Edition • Walkthrough/Demo • S60 Platform Services • Summary • Q&A © 2008 Nokia Slide 2 Company Confidential
  3. 3. Goal At the end of this session, you will … Learn ways to tap advanced Nokia Features from Flash Lite on the Nokia S60 Platform. © 2008 Nokia Slide 3 Company Confidential
  4. 4. Stuff about me … INTRO © 2008 Nokia Slide 4 Company Confidential
  5. 5. About Scott Janousek • Professional • Founder/Technical Director, Hooken Mobile • Creating Flash Experiences (games, UI’s, applications, etc) on “Non-PC devices” (i.e. mobile, embedded) • Some of my Community Efforts • Forum Nokia Champion • Adobe Community Expert and Evangelist for Flash Mobile and Devices • Certified Flash Lite Instructor (1.1/2.x/3.x) • Co-Manager, Boston Adobe Mobile & Devices User Group • Author, Foundation Flash Apps for Mobile Devices: www.flashmobilebook.com • Frame27 – http://frame27.blogspot.com © 2008 Nokia Slide 5 Company Confidential
  6. 6. Some Recent (Community) Flash Lite Content • Recent content outside of NDAs, etc Flash Lite Casual Game Flash Lite Screen Saver Flash Lite Mobile Guide © 2008 Nokia Slide 6 Company Confidential
  7. 7. Upcoming Flash Book! • “Solutions to Mobile & Device Development with Flash Lite” • AdvancED Book: Friends of Ed • Covers advanced topics: • Flash Lite 2.x, 3.x features • Flash Mobile Application Development • Tools & Frameworks • Popular Mobile Platforms/Flash integration • Device APIs and Flash • … and more • Targets both existing Mobile and Flash (Lite) Developers © 2008 Nokia Slide 7 Company Confidential
  8. 8. Stuff you may, or may not, already know … S60 AND FLASH LITE OVERVIEW (QUICK) © 2008 Nokia Slide 8 Company Confidential
  9. 9. Nokia Series 60 Platform (Quick Recap) • Series 60, or “S60” S60 Platform (formerly Series 60 User Interface) is a software platform for mobile phones that runs on Symbian OS. S60 is currently amongst the leading smartphone platforms in the world. It is developed primarily by Nokia and licensed by them to other manufacturers. • Nokia 3rd Edition S60 devices support Flash Lite • S60 3rd Edition FP2, or “Feature Pack 2” is newest © 2008 Nokia Slide 9 Company Confidential
  10. 10. Relevant Nokia S60 Stats • S60 Devices Shipped = +150 Million • S60 3rd Edition devices = +80 Million • All 3rd Edition = Flash Lite support • Kuneri Lite runs under S60 3rd edition So, +80 million = target market Note: Nokia S60 statistics are from January 2008 © 2008 Nokia Slide 10 Company Confidential
  11. 11. Some of my Nokia S60 3rd Edition devices • Nokia N95, Nokia N95 8GB, Nokia E90 • Favorites for Flash Lite development on Nokia S60 © 2008 Nokia Slide 11 Company Confidential
  12. 12. What is Flash Lite (Quick overview) • “An optimized Adobe Flash run-time player for mobile and other non-pc devices” • Versions: 1.0→ 1.1→ 2.0→ 2.1→ 3.0→ 3.1 • +800,000,000 devices worldwide support Flash • Nokia S40 and S60 = Flash Lite support • +90 Nokia devices support Flash Lite! • Nokia supports Flash Lite content types: • S60 Web Browser, WRT, Standalone Apps, Wallpapers, Screensavers © 2008 Nokia Slide 12 Company Confidential
  13. 13. Flash Lite Architecture (Version 3.0) © 2008 Nokia Slide 13 Company Confidential
  14. 14. Flash Lite – Strengths and Weaknesses • Strengths • Media Capabilities • Graphics, Sound, Video, Text • Cross Platform/Portability across devices • Extensive Toolset (i.e. Adobe CS4, Adobe Device Central) • Weaknesses • Performance on low-end devices (given Memory & CPU) • Not immune to fragmentation issues • Low-level device integration can be perceived as limited © 2008 Nokia Slide 14 Company Confidential
  15. 15. The Fun Stuff … EXTENDING FLASH LITE ON S60 3RD EDITION © 2008 Nokia Slide 15 Company Confidential
  16. 16. Size =~ Addressable Market S60 Platform Development EXPERIENCE Flash Lite Kuneri Lite /3rd Party JAVA S60 ADVANCED © 2008 Nokia Slide 16 Company Confidential
  17. 17. Size =~ Addressable Market S60 Development Costs Development Cost Kuneri Lite/ 3rdParty Flash Lite Java S60 Attractive © 2008 Nokia Slide 17 Company Confidential
  18. 18. Symbian/S60 Development Realities • Native Symbian Development Challenges • More $$$ • More Time • More Product Management/Lifecycle • More Highly skilled Developers … ANSWER to these problems? Flash Lite + 3rd Party Software Extender © 2008 Nokia Slide 18 Company Confidential
  19. 19. How to “Extend” Flash Lite • By using 3rd party products ... Janus • All are supported under S60 platform • All are available TODAY • We will focus on Kuneri Lite in this presentation: • Was the 1st product to market • Plug-in architecture makes it easy to use and talk about • Minimal ActionScript = Maximum results with Kuneri Lite! © 2008 Nokia Slide 19 Company Confidential
  20. 20. Extending S60 Flash Lite: Pros vs Cons • Some Pros • Reach “outside the box” of current functionality • Tap really low-level, powerful device API capabilities • Create really cool and innovative applications • No need to learn Symbian S60 Programming , just use the products! • Saves Development Time! • Some Cons • Platform Fragmentation (outside of S60) • More Rigid Target Areas for Deployment • Company Support reliance • Symbian Signing (for some Device APIs) • Inflexible compared to custom S60 solutions © 2008 Nokia Slide 20 Company Confidential
  21. 21. Kuneri Lite – One Line Product Explanation • “Rapid Application Development Toolkit for Flash Lite” What? Why? KuneriLite is an innovative KuneriLite helps you to create Rapid Application Development great-looking S60 applications toolkit to extend Flash Lite faster, easier and cheaper. capabilities and create great- KuneriLite provides a common, looking S60 applications reusable and user friendly without any Symbian platform for you. knowledge. How much? For Whom? KuneriLite is created with You have rocking ideas? Need creativity, innovation and to develop advanced mobile diversity in mind. If your applications? Is S60 application is non-commercial, challenging and Flash Lite KuneriLite is completely free lacking some cool features? for you. © 2008 Nokia Slide 21 Company Confidential
  22. 22. Kuneri Lite Platform “Stack” Flash Lite User Interface & Logic Kuneri Lite Communication via Plugins Features and Device API © 2008 Nokia Slide 22 Company Confidential
  23. 23. Kuneri Lite Features • Fast • Powerful • Transparent to end-user • Small Footprint • 12 Plug-ins (growing) • Easy Packaging (.sis) • Time saving Device Emulator • Ease to use Step Wizard © 2008 Nokia Slide 23 Company Confidential
  24. 24. Kuneri Lite – Plug-ins • Accelerometer • Protect Read Sensor Values Very Simple SWF Security Protection • Camera • Ringtone Access the devices camera (if supported) Animated SWF ringtones • Connect • Rotate Send text/binary via Bluetooth Detect physical rotation of device • DTMF • System DTMF tone support (for checking vmail, etc) Launcher for applications • File • Timer Persistent data via file system Countdown to event • GPS • Upload/Download Location Based Services Upload content via HTTP © 2008 Nokia Slide 24 Company Confidential
  25. 25. Kuneri Lite Products • 3 versions that offer same feature set • Developer → Professional → Commercial FREE Developer Version Professional (Non Commercial) Commercial $99 per app package © 2008 Nokia Slide 25 Company Confidential
  26. 26. Kuneri-ized Apps – Path to Market • Path to Market FREE Developer Version Commercial/Professional Nokia S60 Device Markets TESTING & DEVELOPMENT DEPLOY (TO MARKET) © 2008 Nokia Slide 26 Company Confidential
  27. 27. Kuneri Lite – Product Wizard Walkthrough © 2008 Nokia Slide 27 Company Confidential
  28. 28. Kuneri Lite Architecture/Development Architecture Development Flash Lite (1.1/2.x/3.x) Adobe Flash 8/CS3/CS4 ActionScript (Commercial) Local HTTP calls Kuneri Lite Server Symbian C++ Kuneri Lite Wizard Native (FREE) Kuneri Lite Plug-ins (GPS, Camera, etc) .sis Native Nokia S60 SDK S60 on device (FREE) © 2008 Nokia Slide 28 Company Confidential
  29. 29. Kuneri Lite – Testing Work Flow Testing Work Flow Develop Flash Content CS3/CS4 Kuneri Lite Simulator/Emulator On-Device S60 Testing Kuneri Lite Emulator © 2008 Nokia Slide 29 Company Confidential
  30. 30. Demo & Walkthrough Two Simple examples using Kuneri Lite Plug-ins KISS 60 ScreenSaver Catalog “Gravity” – Accelerometer Example
  31. 31. Polling Methods for Kuneri Lite Flash Lite 1.1 Flash Lite 2.x/3.x •Off Stage MovieClip •setInterval() pID_num = setInterval( poll, 500 ); function poll():Void { //-- keep pinging KL plugin . . . . } //-- cleanup clearInterval( pID_num ); © 2008 Nokia Slide 31 Company Confidential
  32. 32. Kuneri Lite Communication via ActionScript • Flash Lite 1.1 • “Flash 4 syntax” - Create and off stage movieclip and target it with ActionScript loadVariables( quot;http://127.0.0.1:1001/Basic/accelerometer?klCommand=startsensorquot;, kl_mc ); • Flash Lite 2.x/3.x • ActionScript 2.0 and “polling” this.createEmptyMovieClip( “kl_mc”, this.getNextHighestDepth() ); loadVariables( quot;http://127.0.0.1:1001/Basic/accelerometer?klCommand=startsensorquot;, kl_mc ); © 2008 Nokia Slide 32 Company Confidential
  33. 33. What’s new and upcoming with Flash Lite on Nokia devices? S60 PLATFORM SERVICES © 2008 Nokia Slide 33 Company Confidential
  34. 34. Programming Nokia S60 System Features • Features / APIs not accessible (by default) in Flash Lite • Camera • Messaging • Landmarks • Location • Contacts • Calendar • Logging • Application Manager • System Info • Sensors • Etc. © 2008 Nokia Slide 34 Company Confidential
  35. 35. S60 Platform Services • Language and runtime neutral interface to platform service APIs • Available with S60 5th Edition devices • No plans for S60 3rd Edition Feature Pack 1 • Maybe S60 3rd Edition Feature Pack 2 © 2008 Nokia Slide 35 Company Confidential
  36. 36. S60 Platform Services API Support • The first release of S60 Platform Services for Flash Lite supports these APIs • ApplicationManager • Calendar • Contacts • Landmarks • Location • Logging • MediaManagement • Messaging • Sensor • SysInfo © 2008 Nokia Slide 36 Company Confidential
  37. 37. ActionScript Class Library • S60 Platform Services interfaces implemented as a new ActionScript class library • Bindings from Flash Lite to platform service APIs come in 2 flavors 1. Generic bindings var locationService = new Service(quot;Service.Locationquot;, quot;ILocationquot;); … 2. Concrete bindings var location = new LocationService(); … • Synchronous and asynchronous versions available © 2008 Nokia Slide 37 Company Confidential
  38. 38. Code Sample – Location API import com.nokia.lib.*; var locationUpdateParams = new Object(); var locationUpdateCallback = new Object(); //Create the location service provider (generic binding) var locationService = new Service(quot;Service.Locationquot;, quot;ILocationquot;); locationService.Trace(locationUpdateParams,locationUpdateCallback); locationUpdateCallback.onLoad = function(transactionID:String,eventID:String,locUpdateOutput){ var locationOutput = locUpdateOutput.ReturnValue; var lat = locationOutput.Latitude; var lon = locationOutput.Longitude; }; © 2008 Nokia Slide 38 Company Confidential
  39. 39. All (good) things must come to an end … SUMMARY © 2008 Nokia Slide 39 Company Confidential
  40. 40. Summary • Flash Lite is very good at what it does ... • Use 3rd Party Extenders for S60 apps under 3rd Edition • Consider S60 Platforms for newer S60 5TH Edition © 2008 Nokia Slide 40 Company Confidential
  41. 41. Call for Action Build more POWERFUL Flash Lite content – visit: www.kunerilite.net www.s60.com/life/thisiss60/s60indetail/softwareversions/5thedition © 2008 Nokia Slide 41 Company Confidential
  42. 42. For More Information Adobe Flash Lite • www.adobe.com/mobile • www.adobe.com/go/4it 3rd Party Products • Kuneri Lite: www.kunerilite.com • Janus: www.janus-flash.com • Flyer: code.google.com/p/flyer • SWF2GO: www.swf2go.com Forum Nokia resources • Flash Lite: www.forum.nokia.com/main/resources/technologies/flash • Forum Nokia developer information: www.forum.nokia.com • S60 Platform Services: http://www.forum.nokia.com/main/resources/technologies/technology_in_the_spotligh t.html © 2008 Nokia Slide 42 Company Confidential
  43. 43. Thank You! • Email Addresses: • scott@scottjanousek.com • scottjanousek@hookenmobile.com • URLs: • flashmobile.scottjanousek.com • www.hookenmobile.com • blogs.forum.nokia.com/blog/scott-janouseks-forum-nokia-blog • Other • Skype: scottajanousek • Twitter: scottjanousek • Facebook: scottjanousek © 2008 Nokia Slide 43 Company Confidential
  44. 44. Questions? Q&A © 2008 Nokia Slide 44 Company Confidential
  1. A particular slide catching your eye?

    Clipping is a handy way to collect important slides you want to go back to later.

×