Roku Developer Program

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

Syntax error

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

Sub RunUserInterface()
o = Setup()
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