Thank you as usual Didi!
My code on the action script side now it works!
I test it on the template generator and goes like a charm.
The weird thing is then when I try to use it with my little software seems like the “If” is not considered and my two shapes (insieme1 & insieme2) are still showned.
This is what I use to populate data:
tmpl.Fields.Add(New TemplateField("f0", row.Item("Firstname")))
_Caspar.CG_Add(10, frmTool.cboAthleteId.Items(frmTool.cboAthleteId.SelectedIndex), tmpl, True)
Is there anything else I should refer to?
Thanks!
Here the AS working code on the playout of the Template Generator:
package
{
import flash.display.MovieClip;
import se.svt.caspar.ICommunicationManager;
import se.svt.caspar.IRegisteredDataSharer;
import se.svt.caspar.template.CasparTemplate;
public class TestLivescroll extends CasparTemplate
{
override public function SetData(xmlData:XML):void
{
for each (var element:XML in xmlData.children())
{
if (element.@id == "f0")
{
if (element.data.@value.toString() != "")
{
insieme1.alpha = 1;
}
else
{
insieme1.alpha = 0;
}
}
if (element.@id == "f1")
{
if (element.data.@value.toString() != "")
{
insieme2.alpha = 1;
}
else
{
insieme2.alpha = 0;
}
}
}
super.SetData(xmlData);
}
}
}