A Flash Developer Resource Site

Results 1 to 2 of 2

Thread: how to retrieve data from an array

  1. #1
    Senior Member
    Join Date
    Jun 2001
    Posts
    104

    how to retrieve data from an array

    I am an experienced AS2 developer and no doubt that is my down fall here.. but I am trying to access data from an array. The array is in the root and I am trying to get it's data into a submovie. In as2 it would have been:

    mylabel.text = _root.myarray[1];

    So, i have tried:
    mylabel.text = root.myarray[1];
    and
    mylabel.text = (this.root as Array).myarray[1];
    and tons of other configurations..

    I get the 1119 error no matter what i do. I am beginning to think I just can't get the info from the array in a sub movie..

    any suggestions?

    thanks, jim
    Jim Booth

  2. #2
    Senior Member
    Join Date
    Jun 2001
    Posts
    104
    figured it out.. was a simple error.. the array was a var inside a function.. geezz time for bed..
    Jim Booth

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