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: 
armagedon79
Visitor

Syntax error

how to fix Syntax error 'As' in Brightscript
Sub Setup() As Object

Sub RunUserInterface()
o = Setup()
o.setup()
o.paint()
o.eventloop()
End Sub
Sub Setup() As Object
this = {
port: CreateObject("roMessagePort")
progress: 0 'buffering progress
position: 0 'playback position (in seconds)
paused: false 'is the video currently paused?
fonts: CreateObject("roFontRegistry") 'global font registry
canvas: CreateObject("roImageCanvas") 'user interface
player: CreateObject("roVideoPlayer")
setup: SetupFullscreenCanvas
paint: PaintFullscreenCanvas
eventloop: EventLoop
}
0 Kudos
1 REPLY 1
RokuJoel
Binge Watcher

Re: Syntax error

When you encounter an error, please post the telnet console output so we can get a better idea of where the error is actually occurring,

- Joel
0 Kudos