Roku Developer Program

Developers and content creators—a complete solution for growing an audience directly.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
retrotom
Level 7

Scene Graph Component Library Script Resolution

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?
0 Kudos
2 REPLIES 2
brybott
Level 8

Re: Scene Graph Component Library Script Resolution

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" />
0 Kudos
retrotom
Level 7

Re: Scene Graph Component Library Script Resolution

Thanks, man. Totally missed that.
0 Kudos