a litl SDK for flash and flex

1,761 views

Published on

how to get a developer account, and get started with our sdk. includes detail about the events and requests available in our AS3 API.

Published in: Technology, Business
0 Comments
1 Like
Statistics
Notes
  • Be the first to comment

No Downloads
Views
Total views
1,761
On SlideShare
0
From Embeds
0
Number of Embeds
497
Actions
Shares
0
Downloads
10
Comments
0
Likes
1
Embeds 0
No embeds

No notes for slide
  • First channel developer at litlPrototyped the first channelWork with the operating system team on the communication protocol between channels and the OSLead developer on simulator AIR appWrote an early version of SDK for flash lite, which teammate Ash brought into the present for AS3
  • @TODO Approval process
  • Includes:AS3 apiControl set of common componentsSimulatorDocumentationExamples
  • simulator/litlsimulator.air
  • Install the simulatorAIR file, so it runs on PC, Mac and LinuxAllows developers to test locally.Just get is started and leave it running in the background while we develop
  • Click checkbox to agree to license agreementScroll down to runtime, then download installer for pc, mac or linuxWhen installer finishes downloading, double-click and installNOTE: uninstall previous versions, including prerelease versions. Betas are not compatible with prereleases
  • You can work in whatever tool you want – Flash Pro, Flash Builder, FDT, command line compile, etc.
  • OtherIDEs ok of course: FDT and Flash Builder, Eclipse,Or open source flex sdk, with command line compiler
  • Include the swc in your library build path. Drag into the libs folder in Flash Builder, or Flash Preferences/Actionscript/Actionscript 3.0 Settings
  • Merged into code rather than runtime shared libraries.
  • You can work in whatever tool you want – Flash Pro, Flash Builder, FDT, command line compile, etc.
  • You can work in whatever tool you want – Flash Pro, Flash Builder, FDT, command line compile, etc.
  • You can work in whatever tool you want – Flash Pro, Flash Builder, FDT, command line compile, etc.
  • You can work in whatever tool you want – Flash Pro, Flash Builder, FDT, command line compile, etc.
  • You can work in whatever tool you want – Flash Pro, Flash Builder, FDT, command line compile, etc.
  • You can work in whatever tool you want – Flash Pro, Flash Builder, FDT, command line compile, etc.
  • You can work in whatever tool you want – Flash Pro, Flash Builder, FDT, command line compile, etc.
  • You can work in whatever tool you want – Flash Pro, Flash Builder, FDT, command line compile, etc.
  • You can work in whatever tool you want – Flash Pro, Flash Builder, FDT, command line compile, etc.
  • You can work in whatever tool you want – Flash Pro, Flash Builder, FDT, command line compile, etc.
  • You can work in whatever tool you want – Flash Pro, Flash Builder, FDT, command line compile, etc.
  • Global, shared, account, and device dictionariesString valuesGlobal is read-only
  • You can work in whatever tool you want – Flash Pro, Flash Builder, FDT, command line compile, etc.
  • You can work in whatever tool you want – Flash Pro, Flash Builder, FDT, command line compile, etc.
  • You can work in whatever tool you want – Flash Pro, Flash Builder, FDT, command line compile, etc.
  • You can work in whatever tool you want – Flash Pro, Flash Builder, FDT, command line compile, etc.
  • The simulator will indicate whether your requests are well-formed by replying with either RequestCompleted or RequestErrorRequestError can occur if capabilities weren’t requested, or unexpected values were receivedThe requestId property references the request
  • You can work in whatever tool you want – Flash Pro, Flash Builder, FDT, command line compile, etc.
  • Buttons and listList you can swap out item rendererEasy to hook up navigation to litl events
  • List and video player
  • Video player and filmstrip
  • Modal menu
  • A place to ask questions about The AS3 sdkThe operating systemThe hardware (webbook or new device)And have questions answered by our sdk support specialist ryan or another team member
  • Aggregates blog posts fromlitl team membersAnswers frequently asked questions from the forumsKeep you up-to-date about additions to the sdk, including new features and sample applications.We will highlight community channels and developers here also
  • a litl SDK for flash and flex

    1. 1. A litl sdk for flash and flex © 2010, litl LLC. CONFIDENTIAL
    2. 2. kathryn rotondo channel developer flashionista.org @krotondo © 2010, litl LLC. CONFIDENTIAL
    3. 3. 10 steps to get you started © 2010, litl LLC. CONFIDENTIAL
    4. 4. 1. Get a developer account http://developer.litl.com © 2010, litl LLC. CONFIDENTIAL
    5. 5. © 2010, litl LLC. CONFIDENTIAL
    6. 6. 2. Download the SDK http://devcenter.litl.com/ developer/download_sdk/ © 2010, litl LLC. CONFIDENTIAL
    7. 7. © 2010, litl LLC. CONFIDENTIAL
    8. 8. Developer bundle contains: •  AS3 SDK •  source
 •  swc
 •  asdoc
 •  Simulator •  Control Set •  Sample Channels © 2010, litl LLC. CONFIDENTIAL
    9. 9. Developer bundle contains: •  AS3 SDK •  source
 •  swc
 •  asdoc
 •  Simulator •  Control Set •  Sample Channels © 2010, litl LLC. CONFIDENTIAL
    10. 10. 3. Install the Simulator © 2010, litl LLC. CONFIDENTIAL
    11. 11. AIR 2 RC 1 runtime http://labs.adobe.com/ downloads/air2.html © 2010, litl LLC. CONFIDENTIAL
    12. 12. © 2010, litl LLC. CONFIDENTIAL
    13. 13. © 2010, litl LLC. CONFIDENTIAL
    14. 14. © 2010, litl LLC. CONFIDENTIAL
    15. 15. 4. Create a Project © 2010, litl LLC. CONFIDENTIAL
    16. 16. © 2010, litl LLC. CONFIDENTIAL
    17. 17. 5. Import the SDK © 2010, litl LLC. CONFIDENTIAL
    18. 18. © 2010, litl LLC. CONFIDENTIAL
    19. 19. © 2010, litl LLC. CONFIDENTIAL
    20. 20. 6. Instantiate LitlService © 2010, litl LLC. CONFIDENTIAL
    21. 21. var
service:LitlService
=
 new
LitlService(this);
 © 2010, litl LLC. CONFIDENTIAL
    22. 22. 7. Connect LitlService © 2010, litl LLC. CONFIDENTIAL
    23. 23. service.connect("litl_countdown",
 "Countdown
Channel",
"0.1",
true);
 •  channelId
String •  channelTitle String •  channelVersion String •  hasOptions Boolean © 2010, litl LLC. CONFIDENTIAL
    24. 24. 8. Listen for events © 2010, litl LLC. CONFIDENTIAL
    25. 25. service.addEventListener(
 
InitializeMessage.INITIALIZED,
 onInit);
 private
function
 onInit(e:InitializeMessage):void
{
 
//
your
code
here
 }
 © 2010, litl LLC. CONFIDENTIAL
    26. 26. Initialize © 2010, litl LLC. CONFIDENTIAL
    27. 27. InitializeMessage.INITIALIZE •  channel calls connect() method •  litlOS transmits initial state (network connectivity, view, properties) •  litlOS transmits initialized event © 2010, litl LLC. CONFIDENTIAL
    28. 28. View Changes © 2010, litl LLC. CONFIDENTIAL
    29. 29. © 2010, litl LLC. CONFIDENTIAL
    30. 30. ViewChangeMessage.VIEW_CHANGE
 •  e.view: CARD, FOCUS or CHANNEL •  e.details: NORMAL, OFFSCREEN, SELECTOR, or SCREENSAVER •  e.width: •  e.height: ex. CHANNEL_HEIGHT (800px) or CHANNEL_HEIGHT_HDMI (720px) © 2010, litl LLC. CONFIDENTIAL
    31. 31. CARD Move Next Move Previous © 2010, litl LLC. CONFIDENTIAL
    32. 32. © 2010, litl LLC. CONFIDENTIAL
    33. 33. UserInputMessage.MOVE_NEXT_ITEM
 UserInputMessage.MOVE_PREVIOUS_ITEM
 •  Sent by clickable navigation arrows •  Next is also sent on a timer •  To enable, set service.channelItemCount > 1 © 2010, litl LLC. CONFIDENTIAL
    34. 34. FOCUS Options © 2010, litl LLC. CONFIDENTIAL
    35. 35. © 2010, litl LLC. CONFIDENTIAL
    36. 36. OptionsStatusMessage.OPTIONS_STATUS
 •  Boolean optionsOpen
property © 2010, litl LLC. CONFIDENTIAL
    37. 37. CHANNEL Go Button © 2010, litl LLC. CONFIDENTIAL
    38. 38. © 2010, litl LLC. CONFIDENTIAL
    39. 39. UserInputMessage.GO_BUTTON_HELD
 UserInputMessage.GO_BUTTON_PRESSED
 UserInputMessage.GO_BUTTON_RELEASED
 © 2010, litl LLC. CONFIDENTIAL
    40. 40. CHANNEL Wheel © 2010, litl LLC. CONFIDENTIAL
    41. 41. © 2010, litl LLC. CONFIDENTIAL
    42. 42. UserInputMessage.WHEEL_NEXT_ITEM
 UserInputMessage.WHEEL_PREVIOUS_ITEM
 © 2010, litl LLC. CONFIDENTIAL
    43. 43. ALL VIEWS Network Status © 2010, litl LLC. CONFIDENTIAL
    44. 44. NetworkStatusMessage.NETWORK_STATUS
 •  Boolean
connected
property © 2010, litl LLC. CONFIDENTIAL
    45. 45. ALL VIEWS Property Changes © 2010, litl LLC. CONFIDENTIAL
    46. 46. PropertyMessage.PROPERTY_CHANGED •  propertyScope
property: GLOBAL, ACCOUNT, SHARED, DEVICE •  Parameters array of NameValuePair objects © 2010, litl LLC. CONFIDENTIAL
    47. 47. 9. Make requests © 2010, litl LLC. CONFIDENTIAL
    48. 48. Set Title service.channelItemCount
=
3;
 © 2010, litl LLC. CONFIDENTIAL
    49. 49. Set Favicon service.channelIcon
=
“foo.jpg”;
 © 2010, litl LLC. CONFIDENTIAL
    50. 50. Enable Move Events service.channelItemCount
=
3;
 © 2010, litl LLC. CONFIDENTIAL
    51. 51. Close Options service.closeOptions(); © 2010, litl LLC. CONFIDENTIAL
    52. 52. Enable/Disable Wheel service.enableWheel();
 service.disableWheel();
 © 2010, litl LLC. CONFIDENTIAL
    53. 53. Enable/Disable Screensaver service.screensaverEnabled
=
true;
 © 2010, litl LLC. CONFIDENTIAL
    54. 54. Open URL in web browser service.openURL(url:String);
 © 2010, litl LLC. CONFIDENTIAL
    55. 55. Set Properties service.sharedProperties.prop
=
val;

 service.accountProperties.prop
=
val;
 service.deviceProperties.prop
=
val;
 © 2010, litl LLC. CONFIDENTIAL
    56. 56. 10. Test in Simulator © 2010, litl LLC. CONFIDENTIAL
    57. 57. With simulator running: •  Test Movie (Flash) •  Run/Debug (Flash Builder) •  Drag swf into browser •  Double-click on swf © 2010, litl LLC. CONFIDENTIAL
    58. 58. © 2010, litl LLC. CONFIDENTIAL
    59. 59. instance list © 2010, litl LLC. CONFIDENTIAL
    60. 60. © 2010, litl LLC. CONFIDENTIAL
    61. 61. instance info © 2010, litl LLC. CONFIDENTIAL
    62. 62. © 2010, litl LLC. CONFIDENTIAL
    63. 63. controls © 2010, litl LLC. CONFIDENTIAL
    64. 64. © 2010, litl LLC. CONFIDENTIAL
    65. 65. log © 2010, litl LLC. CONFIDENTIAL
    66. 66. © 2010, litl LLC. CONFIDENTIAL
    67. 67. RequestCompleted RequestError © 2010, litl LLC. CONFIDENTIAL
    68. 68. global properties © 2010, litl LLC. CONFIDENTIAL
    69. 69. © 2010, litl LLC. CONFIDENTIAL
    70. 70. catalog info © 2010, litl LLC. CONFIDENTIAL
    71. 71. © 2010, litl LLC. CONFIDENTIAL
    72. 72. 11. controls © 2010, litl LLC. CONFIDENTIAL
    73. 73. Buttons & List © 2010, litl LLC. CONFIDENTIAL
    74. 74. © 2010, litl LLC. CONFIDENTIAL
    75. 75. Video Player & Filmstrip © 2010, litl LLC. CONFIDENTIAL
    76. 76. © 2010, litl LLC. CONFIDENTIAL
    77. 77. Modal menu © 2010, litl LLC. CONFIDENTIAL
    78. 78. © 2010, litl LLC. CONFIDENTIAL
    79. 79. Appendix A: Documentation © 2010, litl LLC. CONFIDENTIAL
    80. 80. Building Channels in Flash Professional http://developer.litl.com/documentation/ 10stepchannelinflashprofessional.htm © 2010, litl LLC. CONFIDENTIAL
    81. 81. Building Channels in Flash Builder http://developer.litl.com/documentation/ 10stepchannelinflashbuilder.htm © 2010, litl LLC. CONFIDENTIAL
    82. 82. Simulator Testing http://developer.litl.com/ documentation/simulator.htm © 2010, litl LLC. CONFIDENTIAL
    83. 83. USB Stick Testing http://developer.litl.com/ documentation/usb-testing.htm © 2010, litl LLC. CONFIDENTIAL
    84. 84. Meet our controls developer.litl.com/ documentation/ meetourcontrols.htm © 2010, litl LLC. CONFIDENTIAL
    85. 85. Appendix B: Resources © 2010, litl LLC. CONFIDENTIAL
    86. 86. Developer Forum devcenter.litl.com/ forum © 2010, litl LLC. CONFIDENTIAL
    87. 87. Developer Blog devblog.litl.com © 2010, litl LLC. CONFIDENTIAL
    88. 88. Email devsupport@litl.com © 2010, litl LLC. CONFIDENTIAL
    89. 89. Questions? © 2010, litl LLC. CONFIDENTIAL

    ×