A Flash Developer Resource Site

Results 1 to 2 of 2

Thread: Array problem, dynamic fetching...

  1. #1
    Senior Member SirN's Avatar
    Join Date
    Apr 2003
    Location
    Sweden
    Posts
    142

    Array problem, dynamic fetching...

    Hi,

    data = new Array;

    data.first = "hello";
    trace (data.first);
    // the trace returns hello

    dynamic = first; // this will possible be different
    trace (data.dynamic);
    // the trace returns null when I want it to return hello

    I've tried many ways and all fail soo here I am asking for help! How do I get the dynamic variable possible used in the fetching of the content of the array?
    http://www.sdax.se Chess, Trotting and Blog

  2. #2
    Senior Member SirN's Avatar
    Join Date
    Apr 2003
    Location
    Sweden
    Posts
    142
    *Solved*

    The solution was for me to use findValue in the array... The array consist of id and passwords and by placing the pw directly after the id then findValue of the id + 1 makes the index of the pw that is easy to use:
    if (pw == array[pwindex])
    { a.s.o. }
    http://www.sdax.se Chess, Trotting and 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