Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

outputting array elements to textbox

Status
Not open for further replies.

mike722

MIS
Sep 8, 2001
65
0
0
BR
I have an array with 50 elements and I want to display elements 1-10 in a textbox.
I know how to display the 1st element but does anyone know how I can display elements 1 - 10 only in one textbox?

thanks

Mike
 
This should help:

Code:
my_array = new Array(1,2,3,4,5,6,7,8,9,10,11,12,13,14,15);
short_array = my_array.slice(0, 10);
my_txt.text = short_array.join(", ");


Philip Keiter
Senior Flash Software Developer
Sphyrras
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top