retrotom
Visitor
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-13-2016
12:34 PM
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:
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?
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?
2 REPLIES 2
brybott
Visitor
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-13-2016
01:46 PM
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:
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
Visitor
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-13-2016
02:35 PM
Re: Scene Graph Component Library Script Resolution
Thanks, man. Totally missed that.