a litl SDK for flash and flex
Upcoming SlideShare
Loading in...5
×
 

a litl SDK for flash and flex

on

  • 2,001 views

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

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

Statistics

Views

Total Views
2,001
Views on SlideShare
1,505
Embed Views
496

Actions

Likes
1
Downloads
8
Comments
0

7 Embeds 496

http://flashionista.org 229
http://www.flashionista.org 179
http://www.slideshare.net 69
http://devblog.litl.com 13
http://translate.googleusercontent.com 3
http://www.webtoolhub.com 2
http://www.slashdocs.com 1
More...

Accessibility

Categories

Upload Details

Uploaded via as Adobe PDF

Usage Rights

© All Rights Reserved

Report content

Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

Cancel
  • Full Name Full Name Comment goes here.
    Are you sure you want to
    Your message goes here
    Processing…
Post Comment
Edit your comment
  • 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 a litl SDK for flash and flex Presentation Transcript

  • A litl sdk for flash and flex © 2010, litl LLC. CONFIDENTIAL
  • kathryn rotondo channel developer flashionista.org @krotondo © 2010, litl LLC. CONFIDENTIAL
  • 10 steps to get you started © 2010, litl LLC. CONFIDENTIAL
  • 1. Get a developer account http://developer.litl.com © 2010, litl LLC. CONFIDENTIAL
  • © 2010, litl LLC. CONFIDENTIAL
  • 2. Download the SDK http://devcenter.litl.com/ developer/download_sdk/ © 2010, litl LLC. CONFIDENTIAL
  • © 2010, litl LLC. CONFIDENTIAL
  • Developer bundle contains: •  AS3 SDK •  source
 •  swc
 •  asdoc
 •  Simulator •  Control Set •  Sample Channels © 2010, litl LLC. CONFIDENTIAL
  • Developer bundle contains: •  AS3 SDK •  source
 •  swc
 •  asdoc
 •  Simulator •  Control Set •  Sample Channels © 2010, litl LLC. CONFIDENTIAL
  • 3. Install the Simulator © 2010, litl LLC. CONFIDENTIAL
  • AIR 2 RC 1 runtime http://labs.adobe.com/ downloads/air2.html © 2010, litl LLC. CONFIDENTIAL
  • © 2010, litl LLC. CONFIDENTIAL
  • © 2010, litl LLC. CONFIDENTIAL
  • © 2010, litl LLC. CONFIDENTIAL
  • 4. Create a Project © 2010, litl LLC. CONFIDENTIAL
  • © 2010, litl LLC. CONFIDENTIAL
  • 5. Import the SDK © 2010, litl LLC. CONFIDENTIAL
  • © 2010, litl LLC. CONFIDENTIAL
  • © 2010, litl LLC. CONFIDENTIAL
  • 6. Instantiate LitlService © 2010, litl LLC. CONFIDENTIAL
  • var
service:LitlService
=
 new
LitlService(this);
 © 2010, litl LLC. CONFIDENTIAL
  • 7. Connect LitlService © 2010, litl LLC. CONFIDENTIAL
  • service.connect("litl_countdown",
 "Countdown
Channel",
"0.1",
true);
 •  channelId
String •  channelTitle String •  channelVersion String •  hasOptions Boolean © 2010, litl LLC. CONFIDENTIAL
  • 8. Listen for events © 2010, litl LLC. CONFIDENTIAL
  • service.addEventListener(
 
InitializeMessage.INITIALIZED,
 onInit);
 private
function
 onInit(e:InitializeMessage):void
{
 
//
your
code
here
 }
 © 2010, litl LLC. CONFIDENTIAL
  • Initialize © 2010, litl LLC. CONFIDENTIAL
  • InitializeMessage.INITIALIZE •  channel calls connect() method •  litlOS transmits initial state (network connectivity, view, properties) •  litlOS transmits initialized event © 2010, litl LLC. CONFIDENTIAL
  • View Changes © 2010, litl LLC. CONFIDENTIAL
  • © 2010, litl LLC. CONFIDENTIAL
  • 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
  • CARD Move Next Move Previous © 2010, litl LLC. CONFIDENTIAL
  • © 2010, litl LLC. CONFIDENTIAL
  • 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
  • FOCUS Options © 2010, litl LLC. CONFIDENTIAL
  • © 2010, litl LLC. CONFIDENTIAL
  • OptionsStatusMessage.OPTIONS_STATUS
 •  Boolean optionsOpen
property © 2010, litl LLC. CONFIDENTIAL
  • CHANNEL Go Button © 2010, litl LLC. CONFIDENTIAL
  • © 2010, litl LLC. CONFIDENTIAL
  • UserInputMessage.GO_BUTTON_HELD
 UserInputMessage.GO_BUTTON_PRESSED
 UserInputMessage.GO_BUTTON_RELEASED
 © 2010, litl LLC. CONFIDENTIAL
  • CHANNEL Wheel © 2010, litl LLC. CONFIDENTIAL
  • © 2010, litl LLC. CONFIDENTIAL
  • UserInputMessage.WHEEL_NEXT_ITEM
 UserInputMessage.WHEEL_PREVIOUS_ITEM
 © 2010, litl LLC. CONFIDENTIAL
  • ALL VIEWS Network Status © 2010, litl LLC. CONFIDENTIAL
  • NetworkStatusMessage.NETWORK_STATUS
 •  Boolean
connected
property © 2010, litl LLC. CONFIDENTIAL
  • ALL VIEWS Property Changes © 2010, litl LLC. CONFIDENTIAL
  • PropertyMessage.PROPERTY_CHANGED •  propertyScope
property: GLOBAL, ACCOUNT, SHARED, DEVICE •  Parameters array of NameValuePair objects © 2010, litl LLC. CONFIDENTIAL
  • 9. Make requests © 2010, litl LLC. CONFIDENTIAL
  • Set Title service.channelItemCount
=
3;
 © 2010, litl LLC. CONFIDENTIAL
  • Set Favicon service.channelIcon
=
“foo.jpg”;
 © 2010, litl LLC. CONFIDENTIAL
  • Enable Move Events service.channelItemCount
=
3;
 © 2010, litl LLC. CONFIDENTIAL
  • Close Options service.closeOptions(); © 2010, litl LLC. CONFIDENTIAL
  • Enable/Disable Wheel service.enableWheel();
 service.disableWheel();
 © 2010, litl LLC. CONFIDENTIAL
  • Enable/Disable Screensaver service.screensaverEnabled
=
true;
 © 2010, litl LLC. CONFIDENTIAL
  • Open URL in web browser service.openURL(url:String);
 © 2010, litl LLC. CONFIDENTIAL
  • Set Properties service.sharedProperties.prop
=
val;

 service.accountProperties.prop
=
val;
 service.deviceProperties.prop
=
val;
 © 2010, litl LLC. CONFIDENTIAL
  • 10. Test in Simulator © 2010, litl LLC. CONFIDENTIAL
  • With simulator running: •  Test Movie (Flash) •  Run/Debug (Flash Builder) •  Drag swf into browser •  Double-click on swf © 2010, litl LLC. CONFIDENTIAL
  • © 2010, litl LLC. CONFIDENTIAL
  • instance list © 2010, litl LLC. CONFIDENTIAL
  • © 2010, litl LLC. CONFIDENTIAL
  • instance info © 2010, litl LLC. CONFIDENTIAL
  • © 2010, litl LLC. CONFIDENTIAL
  • controls © 2010, litl LLC. CONFIDENTIAL
  • © 2010, litl LLC. CONFIDENTIAL
  • log © 2010, litl LLC. CONFIDENTIAL
  • © 2010, litl LLC. CONFIDENTIAL
  • RequestCompleted RequestError © 2010, litl LLC. CONFIDENTIAL
  • global properties © 2010, litl LLC. CONFIDENTIAL
  • © 2010, litl LLC. CONFIDENTIAL
  • catalog info © 2010, litl LLC. CONFIDENTIAL
  • © 2010, litl LLC. CONFIDENTIAL
  • 11. controls © 2010, litl LLC. CONFIDENTIAL
  • Buttons & List © 2010, litl LLC. CONFIDENTIAL
  • © 2010, litl LLC. CONFIDENTIAL
  • Video Player & Filmstrip © 2010, litl LLC. CONFIDENTIAL
  • © 2010, litl LLC. CONFIDENTIAL
  • Modal menu © 2010, litl LLC. CONFIDENTIAL
  • © 2010, litl LLC. CONFIDENTIAL
  • Appendix A: Documentation © 2010, litl LLC. CONFIDENTIAL
  • Building Channels in Flash Professional http://developer.litl.com/documentation/ 10stepchannelinflashprofessional.htm © 2010, litl LLC. CONFIDENTIAL
  • Building Channels in Flash Builder http://developer.litl.com/documentation/ 10stepchannelinflashbuilder.htm © 2010, litl LLC. CONFIDENTIAL
  • Simulator Testing http://developer.litl.com/ documentation/simulator.htm © 2010, litl LLC. CONFIDENTIAL
  • USB Stick Testing http://developer.litl.com/ documentation/usb-testing.htm © 2010, litl LLC. CONFIDENTIAL
  • Meet our controls developer.litl.com/ documentation/ meetourcontrols.htm © 2010, litl LLC. CONFIDENTIAL
  • Appendix B: Resources © 2010, litl LLC. CONFIDENTIAL
  • Developer Forum devcenter.litl.com/ forum © 2010, litl LLC. CONFIDENTIAL
  • Developer Blog devblog.litl.com © 2010, litl LLC. CONFIDENTIAL
  • Email devsupport@litl.com © 2010, litl LLC. CONFIDENTIAL
  • Questions? © 2010, litl LLC. CONFIDENTIAL