This content has been marked as final. Show 6 replies
> Variable names returned by the server are numbers.
> That's the reason why they are between square brackets.
In that case it should be
> This obviously is a bug.
Yes .. a bug in your code .. not a bug in Flash
BUT !!! ...
I still don't understand why the verification tool tells me the first version of the script is okay and the second isn't !!!
The bug is in your understanding of how non-decimal numbers are represented.
Numeric literals starting with 0 are octal values. Therefore 07 is
equivalent to decimal 7.
The next octal value is 010, which is equivalent to decimal 8.
trace(07); // output 7
trace(010); //output 8
trace(08); // will not compile
The first version is ok and works perfectly well .. it just doesn't do what
you expect it to do. A bug in the logic is not going to show up as a bug in
> Numeric literals starting with 0 are octal values. Therefore 07 is
> equivalent to decimal 7.
That is all true, but not (directly) the actual problem here. Its that he
was using numbers instead of strings.