Array Has -1 index
i have 3 arrays created tags in xml file, part works fine.
each index corresponds each other, i.e. [0] of each dashburst (the animation), 1000 (the low damage range), , 2500 (the high damage range), respectively.
but when function chooses dashburst, , use trace statement find it's index, puts out -1.
this means can't damage values (speciallist.indexof('dashburst')).
what going on?
if -1 result of using indexof method means item sought not exist in array.
More discussions in ActionScript 3
adobe
Comments
Post a Comment