Top Banner
A litl sdk for flash and flex
89

a litl SDK for flash and flex

Jan 28, 2015

Download

Technology

Kathryn Rotondo

how to get a developer account, and get started with our sdk. includes detail about the events and requests available in our AS3 API.
Welcome message from author
This document is posted to help you gain knowledge. Please leave a comment to let me know what you think about it! Share it to your friends and learn new things together.
Transcript
Page 1: a litl SDK for flash and flex

© 2010, litl LLC. CONFIDENTIAL

A litl sdk for flash and flex

Page 2: a litl SDK for flash and flex

© 2010, litl LLC. CONFIDENTIAL

kathryn rotondo channel developer

flashionista.org

@krotondo

Page 3: a litl SDK for flash and flex

© 2010, litl LLC. CONFIDENTIAL

10 steps to get you started

Page 4: a litl SDK for flash and flex

© 2010, litl LLC. CONFIDENTIAL

1. Get a developer account

http://developer.litl.com

Page 5: a litl SDK for flash and flex

© 2010, litl LLC. CONFIDENTIAL

Page 6: a litl SDK for flash and flex

© 2010, litl LLC. CONFIDENTIAL

2. Download the SDK

http://devcenter.litl.com/developer/download_sdk/

Page 7: a litl SDK for flash and flex

© 2010, litl LLC. CONFIDENTIAL

Page 8: a litl SDK for flash and flex

© 2010, litl LLC. CONFIDENTIAL

Developer bundle contains: •  AS3 SDK •  source•  swc•  asdoc

•  Simulator

•  Control Set •  Sample Channels

Page 9: a litl SDK for flash and flex

© 2010, litl LLC. CONFIDENTIAL

Developer bundle contains: •  AS3 SDK •  source•  swc•  asdoc

•  Simulator

•  Control Set •  Sample Channels

Page 10: a litl SDK for flash and flex

© 2010, litl LLC. CONFIDENTIAL

3. Install the Simulator

Page 11: a litl SDK for flash and flex

© 2010, litl LLC. CONFIDENTIAL

AIR 2 RC 1 runtime

http://labs.adobe.com/downloads/air2.html

Page 12: a litl SDK for flash and flex

© 2010, litl LLC. CONFIDENTIAL

Page 13: a litl SDK for flash and flex

© 2010, litl LLC. CONFIDENTIAL

Page 14: a litl SDK for flash and flex

© 2010, litl LLC. CONFIDENTIAL

Page 15: a litl SDK for flash and flex

© 2010, litl LLC. CONFIDENTIAL

4. Create a Project

Page 16: a litl SDK for flash and flex

© 2010, litl LLC. CONFIDENTIAL

Page 17: a litl SDK for flash and flex

© 2010, litl LLC. CONFIDENTIAL

5. Import the SDK

Page 18: a litl SDK for flash and flex

© 2010, litl LLC. CONFIDENTIAL

Page 19: a litl SDK for flash and flex

© 2010, litl LLC. CONFIDENTIAL

Page 20: a litl SDK for flash and flex

© 2010, litl LLC. CONFIDENTIAL

6. Instantiate LitlService

Page 21: a litl SDK for flash and flex

© 2010, litl LLC. CONFIDENTIAL

varservice:LitlService=newLitlService(this);

Page 22: a litl SDK for flash and flex

© 2010, litl LLC. CONFIDENTIAL

7. Connect LitlService

Page 23: a litl SDK for flash and flex

© 2010, litl LLC. CONFIDENTIAL

service.connect("litl_countdown","CountdownChannel","0.1",true);

•  channelIdString •  channelTitle String

•  channelVersion String •  hasOptions Boolean

Page 24: a litl SDK for flash and flex

© 2010, litl LLC. CONFIDENTIAL

8. Listen for events

Page 25: a litl SDK for flash and flex

© 2010, litl LLC. CONFIDENTIAL

service.addEventListener(InitializeMessage.INITIALIZED,onInit);

privatefunctiononInit(e:InitializeMessage):void{//yourcodehere}

Page 26: a litl SDK for flash and flex

© 2010, litl LLC. CONFIDENTIAL

Initialize

Page 27: a litl SDK for flash and flex

© 2010, litl LLC. CONFIDENTIAL

InitializeMessage.INITIALIZE

•  channel calls connect() method

•  litlOS transmits initial state (network connectivity, view, properties)

•  litlOS transmits initialized event

Page 28: a litl SDK for flash and flex

© 2010, litl LLC. CONFIDENTIAL

View Changes

Page 29: a litl SDK for flash and flex

© 2010, litl LLC. CONFIDENTIAL

Page 30: a litl SDK for flash and flex

© 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)

Page 31: a litl SDK for flash and flex

© 2010, litl LLC. CONFIDENTIAL

CARD Move Next

Move Previous

Page 32: a litl SDK for flash and flex

© 2010, litl LLC. CONFIDENTIAL

Page 33: a litl SDK for flash and flex

© 2010, litl LLC. CONFIDENTIAL

UserInputMessage.MOVE_NEXT_ITEMUserInputMessage.MOVE_PREVIOUS_ITEM

•  Sent by clickable navigation arrows •  Next is also sent on a timer •  To enable, set service.channelItemCount > 1

Page 34: a litl SDK for flash and flex

© 2010, litl LLC. CONFIDENTIAL

FOCUS Options

Page 35: a litl SDK for flash and flex

© 2010, litl LLC. CONFIDENTIAL

Page 36: a litl SDK for flash and flex

© 2010, litl LLC. CONFIDENTIAL

OptionsStatusMessage.OPTIONS_STATUS

•  Boolean optionsOpenproperty

Page 37: a litl SDK for flash and flex

© 2010, litl LLC. CONFIDENTIAL

CHANNEL Go Button

Page 38: a litl SDK for flash and flex

© 2010, litl LLC. CONFIDENTIAL

Page 39: a litl SDK for flash and flex

© 2010, litl LLC. CONFIDENTIAL

UserInputMessage.GO_BUTTON_HELDUserInputMessage.GO_BUTTON_PRESSEDUserInputMessage.GO_BUTTON_RELEASED

Page 40: a litl SDK for flash and flex

© 2010, litl LLC. CONFIDENTIAL

CHANNEL Wheel

Page 41: a litl SDK for flash and flex

© 2010, litl LLC. CONFIDENTIAL

Page 42: a litl SDK for flash and flex

© 2010, litl LLC. CONFIDENTIAL

UserInputMessage.WHEEL_NEXT_ITEMUserInputMessage.WHEEL_PREVIOUS_ITEM

Page 43: a litl SDK for flash and flex

© 2010, litl LLC. CONFIDENTIAL

ALL VIEWS Network Status

Page 44: a litl SDK for flash and flex

© 2010, litl LLC. CONFIDENTIAL

NetworkStatusMessage.NETWORK_STATUS

•  Booleanconnectedproperty

Page 45: a litl SDK for flash and flex

© 2010, litl LLC. CONFIDENTIAL

ALL VIEWS Property Changes

Page 46: a litl SDK for flash and flex

© 2010, litl LLC. CONFIDENTIAL

PropertyMessage.PROPERTY_CHANGED

•  propertyScopeproperty: GLOBAL, ACCOUNT, SHARED, DEVICE

•  Parameters array of NameValuePair objects

Page 47: a litl SDK for flash and flex

© 2010, litl LLC. CONFIDENTIAL

9. Make requests

Page 48: a litl SDK for flash and flex

© 2010, litl LLC. CONFIDENTIAL

Set Title service.channelItemCount=3;

Page 49: a litl SDK for flash and flex

© 2010, litl LLC. CONFIDENTIAL

Set Favicon service.channelIcon=“foo.jpg”;

Page 50: a litl SDK for flash and flex

© 2010, litl LLC. CONFIDENTIAL

Enable Move Events service.channelItemCount=3;

Page 51: a litl SDK for flash and flex

© 2010, litl LLC. CONFIDENTIAL

Close Options service.closeOptions();

Page 52: a litl SDK for flash and flex

© 2010, litl LLC. CONFIDENTIAL

Enable/Disable Wheel

service.enableWheel();service.disableWheel();

Page 53: a litl SDK for flash and flex

© 2010, litl LLC. CONFIDENTIAL

Enable/Disable Screensaver

service.screensaverEnabled=true;

Page 54: a litl SDK for flash and flex

© 2010, litl LLC. CONFIDENTIAL

Open URL in web browser

service.openURL(url:String);

Page 55: a litl SDK for flash and flex

© 2010, litl LLC. CONFIDENTIAL

Set Properties service.sharedProperties.prop=val;service.accountProperties.prop=val;service.deviceProperties.prop=val;

Page 56: a litl SDK for flash and flex

© 2010, litl LLC. CONFIDENTIAL

10. Test in Simulator

Page 57: a litl SDK for flash and flex

© 2010, litl LLC. CONFIDENTIAL

With simulator running:

•  Test Movie (Flash) •  Run/Debug (Flash Builder)

•  Drag swf into browser •  Double-click on swf

Page 58: a litl SDK for flash and flex

© 2010, litl LLC. CONFIDENTIAL

Page 59: a litl SDK for flash and flex

© 2010, litl LLC. CONFIDENTIAL

instance list

Page 60: a litl SDK for flash and flex

© 2010, litl LLC. CONFIDENTIAL

Page 61: a litl SDK for flash and flex

© 2010, litl LLC. CONFIDENTIAL

instance info

Page 62: a litl SDK for flash and flex

© 2010, litl LLC. CONFIDENTIAL

Page 63: a litl SDK for flash and flex

© 2010, litl LLC. CONFIDENTIAL

controls

Page 64: a litl SDK for flash and flex

© 2010, litl LLC. CONFIDENTIAL

Page 65: a litl SDK for flash and flex

© 2010, litl LLC. CONFIDENTIAL

log

Page 66: a litl SDK for flash and flex

© 2010, litl LLC. CONFIDENTIAL

Page 67: a litl SDK for flash and flex

© 2010, litl LLC. CONFIDENTIAL

RequestCompleted RequestError

Page 68: a litl SDK for flash and flex

© 2010, litl LLC. CONFIDENTIAL

global properties

Page 69: a litl SDK for flash and flex

© 2010, litl LLC. CONFIDENTIAL

Page 70: a litl SDK for flash and flex

© 2010, litl LLC. CONFIDENTIAL

catalog info

Page 71: a litl SDK for flash and flex

© 2010, litl LLC. CONFIDENTIAL

Page 72: a litl SDK for flash and flex

© 2010, litl LLC. CONFIDENTIAL

11. controls

Page 73: a litl SDK for flash and flex

© 2010, litl LLC. CONFIDENTIAL

Buttons & List

Page 74: a litl SDK for flash and flex

© 2010, litl LLC. CONFIDENTIAL

Page 75: a litl SDK for flash and flex

© 2010, litl LLC. CONFIDENTIAL

Video Player & Filmstrip

Page 76: a litl SDK for flash and flex

© 2010, litl LLC. CONFIDENTIAL

Page 77: a litl SDK for flash and flex

© 2010, litl LLC. CONFIDENTIAL

Modal menu

Page 78: a litl SDK for flash and flex

© 2010, litl LLC. CONFIDENTIAL

Page 79: a litl SDK for flash and flex

© 2010, litl LLC. CONFIDENTIAL

Appendix A: Documentation

Page 80: a litl SDK for flash and flex

© 2010, litl LLC. CONFIDENTIAL

Building Channels in

Flash Professional http://developer.litl.com/documentation/

10stepchannelinflashprofessional.htm

Page 81: a litl SDK for flash and flex

© 2010, litl LLC. CONFIDENTIAL

Building Channels in

Flash Builder http://developer.litl.com/documentation/

10stepchannelinflashbuilder.htm

Page 82: a litl SDK for flash and flex

© 2010, litl LLC. CONFIDENTIAL

Simulator Testing

http://developer.litl.com/documentation/simulator.htm

Page 83: a litl SDK for flash and flex

© 2010, litl LLC. CONFIDENTIAL

USB Stick Testing http://developer.litl.com/

documentation/usb-testing.htm

Page 84: a litl SDK for flash and flex

© 2010, litl LLC. CONFIDENTIAL

Meet our controls developer.litl.com/

documentation/meetourcontrols.htm

Page 85: a litl SDK for flash and flex

© 2010, litl LLC. CONFIDENTIAL

Appendix B: Resources

Page 86: a litl SDK for flash and flex

© 2010, litl LLC. CONFIDENTIAL

Developer Forum devcenter.litl.com/

forum

Page 87: a litl SDK for flash and flex

© 2010, litl LLC. CONFIDENTIAL

Developer Blog devblog.litl.com

Page 88: a litl SDK for flash and flex

© 2010, litl LLC. CONFIDENTIAL

Email [email protected]

Page 89: a litl SDK for flash and flex

© 2010, litl LLC. CONFIDENTIAL

Questions?