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

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
Roku Employee
Roku Employee

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