Your Digital Media Has Never Looked So Good

 
retrotom
Topic Author
Posts: 158
Joined: Mon Jul 05, 2010 7:21 pm

Scene Graph Component Library Script Resolution

Wed Apr 13, 2016 12:34 pm

How does script resolution work when loading a remote component library (scene graph)?

With a typical scene graph app, you specify script dependencies for a task like so:

<script type="text/brightscript" uri="pkg:/components/guide_content_reader.brs" />


How is this supposed to work with a component library? When I include tags like this, the component library fails to load. Is it a problem with the uri attribute?
 
brybott
Posts: 40
Joined: Wed Feb 04, 2015 5:17 pm

Re: Scene Graph Component Library Script Resolution

Wed Apr 13, 2016 1:46 pm

The example Component Library app shows how to do this. Find both relevant downloads on this page:
https://sdkdocs.roku.com/display/sdkdoc ... entLibrary

but basically, you include the .brs file in the components folder of your component library package and access it like:

<script type="text/brightscript" uri="libpkg:/components/guide_content_reader.brs" />
 
retrotom
Topic Author
Posts: 158
Joined: Mon Jul 05, 2010 7:21 pm

Re: Scene Graph Component Library Script Resolution

Wed Apr 13, 2016 2:35 pm

Thanks, man. Totally missed that.

Who is online

Users browsing this forum: No registered users and 7 guests