I am trying to write code that traces the individual letters of a string.
For instance, it would trace the word "high" as "h","i","g" and"h".
The closest I've gotten is this code:
var sampleword:String = "high";
for(var i:uint=0; i<sampleword.length;i++)
trace (sampleword.slice(i))
It traces the word high as "high", "igh", "gh" and "h".
I attempted to ad a second for loop with a higher value, but that did not achieve what I wanted:
var sampleword:String = "high";
for(var i:uint=0; i<sampleword.length;i++)
for(var j:uint=1; j=sampleword.length;i++)
trace (sampleword.slice([i,j]))
Any ideas as to what I'm doing wrong?
North America
Europe, Middle East and Africa
Asia Pacific