showHomeScreen | msg = | index = 0
showHomeScreen | msg = | index = 0
list item selected | index = 0
Current Function:
034: Function showPosterScreen(screen As Object, category As Object) As Integer
035:
036: if validateParam(screen, "roPosterScreen", "showPosterScreen") = false return -1
037: if validateParam(category, "roAssociativeArray", "showPosterScreen") = false return -1
038:
039: m.curCategory = 0
040: m.curShow = 0
041: temp=getcategorylist(category)
042:
043:
044: if temp.count() > 1 then
045: screen.SetListNames(temp)
046: ?temp.count();" categories"
047: else
048: ?"only ";temp.count();" category"
049: end if
050: screen.SetContentList(getShowsForCategoryItem(category, m.curCategory))
051: screen.Show()
052:
053: while true
054: msg = wait(0, screen.GetMessagePort())
055: if type(msg) = "roPosterScreenEvent" then
056: print "showPosterScreen | msg = "; msg.GetMessage() " | index = "; msg.GetIndex()
057: if msg.isListFocused() then
058: m.curCategory = msg.GetIndex()
059: m.curShow = 0
060: screen.setcontentlist([])
061: screen.SetFocusedListItem(m.curShow)
062: screen.showmessage("Retrieving")
063: screen.SetContentList(getShowsForCategoryItem(category, m.c urCategory))
064: screen.clearmessage()
065: print "list focused | current category = "; m.cu rCategory
066: else if msg.isListItemSelected() then
067: m.curShow = msg.GetIndex()
068: print "list item selected | current show = "; m.curShow
069: m.curShow = displayShowDetailScreen(category, m.curShow)
070: screen.SetFocusedListItem(m.curShow)
071: print "list item updated | new show = "; m.curShow
072: else if msg.isScreenClosed() then
073: return -1
074: end if
075: end If
076: end while
077:
078:
079: End Function
Member function not found in BrightScript Component or interface. (runtime error &hf4) in ...g:/source/appPosterScreen.brs(44)
044: if temp.count() > 1 then
Backtrace:
Function showposterscreen(screen As <uninitialized>, category As <uninitialized> ) As Integer
file/line: /tmp/plugin/FJAAAA8C8mmt...g:/source/appPosterScreen.brs(44)
Function displaycategoryposterscreen(category As <uninitialized>) As
file/line: /tmp/plugin/FJAAAA8C8mmt/pkg:/source/appHomeScreen.brs(79)
Function showhomescreen(screen As ) As Integer
file/line: /tmp/plugin/FJAAAA8C8mmt/pkg:/source/appHomeScreen.brs(56)
Function main() As
file/line: /tmp/plugin/FJAAAA8C8mmt/pkg:/source/appMain.brs(20)
Local Variables:
screen &h0010 bsc:roPosterScreen, refcnt=2
category &h4010 bsc:roAssociativeArray, refcnt=5
global &h0020 rotINTERFACE:ifGlobal
m &h0010 bsc:roAssociativeArray, refcnt=5
temp &h4010 bsc:roAssociativeArray, refcnt=5
msg &h0000 <uninitialized> val:Uninitialized
BrightScript Debugger> Note: GC - Found 16 orphaned objects (objects in a circul ar ref loop).
"radargaming" wrote:
Member function not found in BrightScript Component or interface. (runtime error &hf4) in ...g:/source/appPosterScreen.brs(44)
044: if temp.count() > 1 then
063: screen.SetContentList(getShowsForCategoryItem(category, m.c urCategory)so make sure to put those back together; there should be no space between the "c" and "urCategory" in this example.
Member function not found in BrightScript Component or interface. (runtime error &hf4) in ...g:/source/appPosterScreen.brs(44)
temp &h4010 bsc:roAssociativeArray, refcnt=5
and also in appPosterScreen.brs change this
categoryList = CreateObject("roArray", 100, true)
for each subCategory in topCategory.Kids
categoryList.Push(subcategory.Title)
next
return categoryList
to this
categoryList = CreateObject("roArray", 100, true)
categoryList = topCategory
return categoryList
"joetesta" wrote:
Thanks Mark
is it the dot immediately after "interface" that tells you the dot operator failed?
categoryList = CreateObject("roArray", 100, true)
categoryList.Push(topCategory)
return categoryList
We’re upgrading Roku Community to bring you a faster, more mobile-friendly experience. You may notice limited functionality or read-only access during this time. You will not be able to log in or post new comments or kudos during this time. Read more here.
Planned Downtime:
Community will be unavailable for up to 24–48 hours during the upgrade window during the week of May 12 and you may notice reduced functionality.
In the meantime, for additional assistance, visit our Support Site.
Thanks for your patience — we’re excited to share what’s next!