I had setup this code for the main screen
Function Main() as void
m.menuFunctions = [
CreateLiveFeed
]
port=CreateObject("roMessagePort")
screen = CreateObject("roPosterScreen")
screen.SetMessagePort(port)
InitTheme()
screen.SetListStyle("arced-landscape")
contentList = InitContentList()
screen.SetContent(contentList)
screen.show()
while (true)
msg = wait(0, port)
if (type(msg) = "roPosterScreenEvent")
if (msg.isListItemSelected())
m.menuFunctions[msg.GetIndex()]()
endif
endif
end while
End Function
Function InitTheme() as void
app = CreateObject("roAppManager")
theme = CreateObject("roAssociativeArray")
theme.OverhangOffsetSD_X = "72"
theme.OverhangOffsetSD_Y = "25"
theme.OverhangSliceSD = "pkg:/images/Overhang_BackgroundSlice_Blue_SD43.png"
theme.OverhangLogoSD = "pkg:/images/Logo_Overhang_Roku_SDK_SD43.png"
theme.OverhangOffsetHD_X = "123"
theme.OverhangOffsetHD_Y = "48"
theme.OverhangSliceHD = "pkg:/images/Overhang_BackgroundSlice_Blue_HD.png"
theme.OverhangLogoHD = "pkg:/images/Logo_Overhang_Roku_SDK_HD.png"
app.SetTheme(theme)
End Function
Function InitContentList() as object
contentList = [
{
HDBackgroundImageUrl: "pkg:/images/breakfast_large.png",
SDBackgroundImageUrl: "pkg:/images/breakfast_large.png",
ShortDescriptionLine1: "Live Feed",
ShortDescriptionLine2: "Watch some of our live streame"
} ]
return contentList
End Function
Yet this error aappears
Member function not found in BrightScript Component or interface. (runtime error &hf4) in pkg:/source/SimplePoster.brs(20)
020: screen.SetContent(contentList)
How do I fix this?