Does anyone know a solution to overriding the SetData function in an HTML template format? Currently I’ve coded in a flash template a working solution, but am having issues translating into JavaScript. Here’s that solution:
override public function SetData(xmlData:XML):void {
for each (var element:XML in xmlData.children()) {
if (element.@id == "FilePath") {
path = element.data.@value.toString();
}
}
super.SetData(xmlData);
}
I have and I’m still trying to explain that in my series Introduction to CasparCG’s HTML producer. I will cover the scripting bits in the next part of the series.