Roku Developer Program

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

Include brs files in Scene Graph files?

Any way we can include already written brightscript files in the scene graph files? I find myself copying in functions since they are out of scope when running a scene. I couldn't find an example of this since the examples I found were only one main brs file.
0 Kudos
2 Replies
TheEndless
Level 7

Re: Include brs files in Scene Graph files?

The <script> tag has a "uri" attribute that you can set to the path of your BRS file. You can have multiple script tags per component.
My Channels: http://roku.permanence.com - Twitter: @TheEndlessDev
Instant Watch Browser (NetflixIWB), Aquarium Screensaver (AQUARIUM), Clever Clocks Screensaver (CLEVERCLOCKS), iTunes Podcasts (ITPC), My Channels (MYCHANNELS)
0 Kudos
jedashford
Level 7

Re: Include brs files in Scene Graph files?

Thats gonna help alot:

<script type = "text/brightscript" uri = "pkg:/source/utils.brs" />
0 Kudos