Roku Developer Program

Join our online forum to talk to Roku developers and fellow channel creators. Ask questions, share tips with the community, and find helpful resources.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
jedashford
Channel Surfer

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 2
TheEndless
Channel Surfer

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
Channel Surfer

Re: Include brs files in Scene Graph files?

Thats gonna help alot:

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