# Syntax error

**URL:** <https://forum.developer.roku.com/t/syntax-error/3140>\
**Category:** Archived\
**Tags:** roku-developer-program\
**Created:** [January 8, 2015, 8:01pm UTC](https://forum.developer.roku.com/t/syntax-error/3140 "2015-01-08T20:01:26Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![armagedon79](https://avatars.discourse-cdn.com/v4/letter/a/c89c15/32.png) [@armagedon79](https://forum.developer.roku.com/u/armagedon79)\
**Post date:** [January 8, 2015, 8:01pm UTC](https://forum.developer.roku.com/t/syntax-error/3140/1 "2015-01-08T20:01:26Z")

</div>

how to fix Syntax error ‘As’ in Brightscript

```auto
Sub Setup() As Object

```

```auto
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
}

```

---

<div class="post-metadata">

**Author:** ![RokuJoel](https://avatars.discourse-cdn.com/v4/letter/r/e95f7d/32.png) [@RokuJoel](https://forum.developer.roku.com/u/RokuJoel)\
**Post date:** [January 8, 2015, 8:32pm UTC](https://forum.developer.roku.com/t/syntax-error/3140/2 "2015-01-08T20:32:51Z")

</div>

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
