Reputation: 21
I have an array with ascii characters values like this
arryAsc[] = [97, 100, 97, 115, 100]
Now I want to make an array arrSplit[] and want to save these values in array like this.
arrSplit[] = [9, 7, 1, 0, 0, 9, 7, 1, 1, 5, 1, 0, 0]
If anyone can help thanks in advance.
Upvotes: 1
Views: 21
Reputation: 9839
You can simply do like this :
var a:Array = [97, 100, 97, 115, 100];
var b:Array = a.join('').split('');
trace(b); // gives : 9,7,1,0,0,9,7,1,1,5,1,0,0
Hope that can help.
Upvotes: 1