yes sorry was meaning to do this last night before I fell asleep,
in init()
m.markuplist = m.top.findnode("markupListID")
m.markuplist.observeField("itemFocused", "focusChanged")
m.lockedIndex = 3
end sub
sub focusChanged()
itemFocused = m.markuplist.itemFocused
if itemFocused = m.lockedindex
'skip the locked item'
nextItem = invalid
if itemFocused > m.markuplist.itemUnfocused and itemFocused < m.markuplist.content.getChildCount() - 1
nextItem = itemFocused + 1
else if itemFocused < m.markuplist.itemUnfocused and itemFocused > 0
nextItem = itemFocused - 1
end if
if nextItem <> invalid
m.markuplist.jumpToItem = nextItem
end if
end if
end sub
You could add logic to bounce them back one if the locked item is at the end or beginning. You could have an array of locked items and further complicate things.
This is just one way to do it, another way would be for each itemComponent to observe its own focusPercent and have a field to know if it's "locked" then react by setting it's parent's jumpToItem. Don't know whether it'd be better ?
aspiring