I have a 1 text field that displays a number sentence, i.e. 1 + 3 = ?. I would like to scramble the first and second number using the scrambleText plugin. I can accomplish this with multiple text fields, i.e, one for "1", one for "+", one for "3" and one for "= ?".
However, that approach is cumbersome so I put everything into 1 text field. Is there a way to scramble some of the text in a text field or is there another way to do this?
In this approach I only get one text item to display:
//I want to scramble these two variables in on textfield
var temp_c:String = c.toString();
var temp_d:String = d.toString();
//numberSentence.text = c.toString() +" + " + d.toString() +" = ?";
numberSentence.text = temp_c +" + " + temp_d +" = ?"; //this line displays the text.
TweenLite.to(numberSentence, 1, {scrambleText:{ text: temp_c, chars:"09", speed:2}}); //This only displays temp_c.
//I would like to get scramble temp_c and temp_d, where temp_c = 1 and temp_d=3, 1 + 3 = ?
I'm using actionScript.