Animate CC HTML5 Canvas subscript
Hi,
I put together an interactive HTML5 canvas document.
After a week of fighting multiple snags and learning curves, I finally have a working product! Just when I thought I was done, I am stumped once more after I received the content to update the text with.
I am trying to put the word CO2 in there, but I need the 2 to be subscript.
var string1 = "how much CO";
var string2 = "2";
var substring = string2.sup();
var string3 = " is used?";
_this.inst_text.text = string1 + substring + string3;
It shows up as,
"How many <sub>2</sub> is used."
I need to stick with Dynamic text because I change it out later in code.
Any suggestions?
Thanks!
