Welcome, Guest
  • Author Topic: array from a txt file (or XML)  (Read 2521 times)

    Heitor

    • Server what's that
    • *
    • Posts: 28
    • Ive heard about Flash once...
      • View Profile
      • Email
    array from a txt file (or XML)
    « on: 09/27/04, 05:50 »
    I posted before this and Im posting again since still do not know how to load an array from a txt file... who knows?

    Jorge Solis

    • Global Moderator
    • Systems Administrator
    • *****
    • Posts: 14616
      • View Profile
    Re:array from a txt file (or XML)
    « Reply #1 on: 09/27/04, 10:59 »
    You can't pass an AS array, you need to pass name/value pairs

    elem0=1&elem1=2&elem3 ...... &cant=5

    Then inside Flash

    for(i=0; i<cant; i++) myElements=eval("elem"+i)

    Jorge

    Heitor

    • Server what's that
    • *
    • Posts: 28
    • Ive heard about Flash once...
      • View Profile
      • Email
    Re:array from a txt file (or XML)
    « Reply #2 on: 09/27/04, 11:52 »
    thnks!!! works fine :)