A Flash Developer Resource Site

Results 1 to 4 of 4

Thread: array syntax

  1. #1
    Senior Member
    Join Date
    May 2005
    Posts
    324

    array syntax

    How can i store an array in a text file, and then reload it?

    I have an php script that can save stuff to a text file and back, but normal actionscript syntax doesnt work when i try to use arrays
    "great scott!"

    "I know, this is heavy!"

  2. #2
    Senior Member
    Join Date
    May 2005
    Posts
    324
    this is the text

    Code:
    topScores=[john, 30000], [tam, 25000], [stu, 20000], [neil, 15000], [andy, 10000], [ben, 5000]
    but i need this to be split into multidimensional arrays

    i.e
    Code:
    topScores[0] = john, 30000
    topScores[0][1] = 30000
    "great scott!"

    "I know, this is heavy!"

  3. #3
    Senior Member
    Join Date
    Feb 2005
    Posts
    1,816
    oops, internet error.
    Last edited by swak; 10-02-2006 at 11:27 PM.
    .

  4. #4
    FK'n_dog a_modified_dog's Avatar
    Join Date
    Apr 2003
    Location
    "aaarf"
    Posts
    9,176
    wafu
    Last edited by a_modified_dog; 10-08-2006 at 01:06 PM.

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