|
metadata
I’m having a bit of a problem making the characters within the array show in the trace. I’m doing it in trace first before I spend time working it to show in the program screen. Anyway, the problem is that I can get the elements to show in the trace, but not without the space in between each element. For example:
trace(numArray0,numArray1); Which could show ‘a s’ instead of ‘as’.
When I tried trace(numArray); there is a comma in between each element.
Finally I also tried collection the elements into a textfield:
textArray=numArray0,numArray1; and it doesn’t seems to work when tracing textArray. Any idea?
|
|
metadata
`
trace(numArray.join(""));
`
The above is equivalent to this:
`
var s:String = "";
for each(var num:Int in numArray) {
s += num;
}
trace(s);
`
|