Skip to content

Instantly share code, notes, and snippets.

@Vibpositive
Created March 5, 2014 19:06
Show Gist options
  • Save Vibpositive/9374203 to your computer and use it in GitHub Desktop.
Save Vibpositive/9374203 to your computer and use it in GitHub Desktop.
if (comunicado[item].titulo.split("||").length > 1)
{
if (comunicado[item].titulo.split("||")[0])
{
titulo.htmlText = "<font face='"+titRegular+"' color='#" + comunicado[item].tituloCor + "' size='" + comunicado[item].tituloTamanho + "'>" + changeTag(comunicado[item].titulo.split("||")[0],"tit") + "</font><br>";
}
if (comunicado[item].titulo.split("||")[1].split(" ").length > 1)
{
var canal_array = comunicado[item].titulo.split("||")[1].split(" ");
_root.lastTrace += ("\n"+"canalArray: " + canal_array + " || canalArrayLength: " + canal_array.length);
canal_tmpTxt = "<font face='"+canRegular+"' color='#" + comunicado[item].editoriaCor + "' size='" + comunicado[item].editoriaTamanho + "'>" + changeTag(canal_array[0],"can") + " </font><font face='"+canBold+"' color='#" + comunicado[item].editoriaCor + "' size='" + comunicado[item].editoriaTamanho + "'>";
for (var _k = 1; _k < canal_array.length; _k++)
{
_root.lastTrace += ("\n"+"canalArray: " + canal_array[_k] + " || step: " + _k);
canal_tmpTxt += changeTag(canal_array[_k],"can") + " ";
}
canal_tmpTxt += "</font>";
canal.htmlText = canal_tmpTxt;
}
else
{
canal.htmlText = "<font face='"+canRegular+"' color='#" + comunicado[item].editoriaCor + "' size='" + comunicado[item].editoriaTamanho + "'>" + changeTag(comunicado[item].titulo.split("||")[1],"can") + "</font><br>";
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment