A Flash Developer Resource Site

Results 1 to 3 of 3

Thread: loadVariables and arrays....

  1. #1
    Junior Member
    Join Date
    Oct 2002
    Location
    Michigan
    Posts
    5

    loadVariables and arrays....

    New to actionscript (wrote my first script yesterday), I have a question regarding multidimensional arrays and the loadVariables function.

    Is it possible to load the array with the callout in the data.txt file as:

    array=[[1,2,3],[4,5,6],[7,8,9]]&

    Will this load the array or di I have to populate each array slot separately?

    Thanks
    I'm lost and have gone looking for myself. If I should return before I get back, please ask me to wait.

  2. #2
    Welcome to flavour country
    Join Date
    Sep 2000
    Posts
    662
    You can't load arrays as variables from a text file.

    ie:

    &varname=[[1,2,3],[4,5,6],[7,8,9]]&

    You can only load them as name value pairs. You will have to put them into an array after they are loaded.

    If you're using Flash MX the LoadVars object makes it easier as all loaded variables become properties of the LoadVars object.

  3. #3
    Junior Member
    Join Date
    Oct 2002
    Location
    Michigan
    Posts
    5
    I think I may have found my answer

    http://www.flashkit.com/board/showth...postid=2068153
    Last edited by BadZodiac; 11-01-2002 at 05:06 PM.
    I'm lost and have gone looking for myself. If I should return before I get back, please ask me to wait.

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