When does 1 != 1???
I was trying to compare two values, if they were the same, then their associated movie clips had been correctly linked to each other.
Trouble was, according to flash, one movie clip's 1 was not the same as the other movie clip's 1, even after I had used Number() to convert them both to numbers.
According to Flash, Number(1) = NaN!!!
Explanation:
One of the movie clips had been given a number from a for loop, the other had been given a number from an array. (Still doesn't really make sense to me, I'm sure I've done this before and never had this problem, but anyway...)
Solution:
Convert the value to a string, then convert that to a number.
e.g. Number(String(mc.val))
Weird...
No comments:
Post a Comment
Please enter your message here...