breger
Visitor
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-28-2013
01:43 PM
Custom ro*** Objects
Can you create custom ro*** objects? I'd like to create roMyObject with its own properties and methods. Makes me miss OOP.
3 REPLIES 3


Roku Employee
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-28-2013
02:13 PM
Re: Custom ro*** Objects
Yes and no. You can't build your own native components, but you can build your own reusable classes/components in BrightScript.
breger
Visitor
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-29-2013
02:13 PM
Re: Custom ro*** Objects
"RokuChris" wrote:
Yes and no. You can't build your own native components, but you can build your own reusable classes/components in BrightScript.
Is there documentation on this?
malloys
Visitor
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-30-2013
09:21 AM
Re: Custom ro*** Objects
I believe RokuChris is referring to using roAssociativeArray http://sdkdocs.roku.com/display/sdkdoc/roAssociativeArray for this purpose - member variables can be object instances, including function references - either defined as an inline anonomous function or a named reference to an function/sub defined elsewhere. Member function references can be invoked. The SDK sample code contains many examples of this.