I had to resort to making my own array. If someone knows a better solution, please let me know.
Function Const() As Object
this = m.instance
if this = invalid
this = CreateObject("roAssociativeArray")
this.ContentType = {
"NOTSET" : 0,
"MOVIE" : 1,
"SERIES" : 2,
"SEASON" : 3,
"EPISODE" : 4,
"AUDIO" : 5
}
this.ContentTypeName = [
"NOTSET",
"MOVIE",
"SERIES",
"SEASON",
"EPISODE",
"AUDIO"
]
m.instance = this
end if
return this
End Function
Then I call it like this:
testContent = CreateObject("RoSGNode", "ContentNode")
testcontent.ContentType = "movie"
print "testContent.ContenType " ; Const().ContentTypeName[testContent.ContentType]
'result: testContent.ContenType MOVIE