AS3 Error #1009
AS3 Error #1009
Out of context: Reply #2
- Started
- Last post
- 3 Responses
- CyBrain0
Uh... nevermind, I was exactly right about this being wrong 10% of the time. When I used the line
pressBtn_array[Math.floor(Math.r... * pressBtnTotal)].y += 5;floor was creating an index result of 0 and my for loop went from 1 to 10. I initialized the array with null as the zeroeth entry — hence the "null object reference".