Copy link to clipboard
Copied
This part works. e is the return(e) from aFunction. The + adds two names together with a new line break \n.
for (var i:uint = 0; i < 50 ; i++)
{
aFunction();
newArray = [e, oldArray1[0][0]+oldArray1[0][1]];
oldArray1.shift();
}
So the newArray has [e, "name \n other name"]. Like I said this part works fine.
I want to double the part going in, for example:
for (var i:uint = 0; i < 50 ; i++)
{
aFunction();
newArray = [[e, oldArray1[0][0]+oldArray1[0][1]], [e, oldArray1[0][0]+oldArray1[0][1]]];
oldArray1.shift();
}
So it would be [ [e, "name \n other name"], [e, "name \n other name"] ]
But I keep getting errors and general not-working-ness from modifying the first part in any way.
Try while loop - there is not enough code to tell what role other code part play. Also you should post the errors you get.
while(oldArray1.length > 0) {
aFunction();
newArray.push([[e, oldArray1[0][0] + oldArray1[0][1]], [e, oldArray1[0][0] + oldArray1[0][1]]]);
oldArray1.shift();
}
Copy link to clipboard
Copied
Copy link to clipboard
Copied
Try while loop - there is not enough code to tell what role other code part play. Also you should post the errors you get.
while(oldArray1.length > 0) {
aFunction();
newArray.push([[e, oldArray1[0][0] + oldArray1[0][1]], [e, oldArray1[0][0] + oldArray1[0][1]]]);
oldArray1.shift();
}
Find more inspiration, events, and resources on the new Adobe Community
Explore Now