-
Senior Member
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?
-
Senior Member
*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. }
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|