I'm trying to make a timer for a certain bit of functionality in my Roku app, but I'm having the most annoying difficulty making it happen. I blame my lack of experience. First of all, no matter what I try, I can't make xml files that work with my program so I'm trying to write the timer without xml files. My understanding is that I can create an roSGNode to carry the information needed, subverting the need for an xml file. However, the program does not seem to be able to interpret the CreateObject function that makes the node.
Say, for example, I create a node like this
clock = CreateObject("roSGNode", "Timer")
The program crashes at this function with the console giving me the message "Failed to create roSGNode with type Timer."
Are there any solutions to this problem? Am I doing something wrong? Does the functionality of timers in Roku force me to use xml files? (because, again, i've found it impossible to compile programs with xml components).
I AM THE ARCHMAGE... who is also rather new to Brightscript so forgive me for seeming inept at times.