A Flash Developer Resource Site

Results 1 to 4 of 4

Thread: arrays

  1. #1
    Junior Member
    Join Date
    Mar 2004
    Posts
    8

    arrays

    My question about arrays should be simple to answer if you know how to use them. How do i get an array to display like a variable, do i use a textbox or what? please help =p

  2. #2
    Run for your life! Phlook's Avatar
    Join Date
    Jul 2003
    Location
    Vancouver, Canada
    Posts
    679
    What do you mean "display" like a variable?

    if you mean to list its items in a textbox, you'd use
    code:

    for(i=0;i<mr_array.length;i++){
    mr_textbox += mr_array[i]+"\n";
    }


  3. #3
    the usual
    Join Date
    Jul 2000
    Posts
    1,482
    mr_textbox.text = mr_array.join ("\n")

  4. #4
    avatar free
    Join Date
    Jul 2002
    Location
    UK
    Posts
    835
    code:

    myArray.toString();



    ?

    Maybe you mean how to output the contents of an array into ActionScript code for copy/paste?

    Reading the help files + search would probably be better, and you'll read other things that'll help you learn too.
    jonmack
    flash racer blog - advanced arcade racer development blog

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  




Click Here to Expand Forum to Full Width

HTML5 Development Center