
animRefMC.gotoAndStop(particleArray[j].sprite);I get this error:
TypeError: Error #1009: Cannot access a property or method of a null object reference.
at particles::Particle_Manager/think()
at flash.utils::Timer/_timerDispatch()
at flash.utils::Timer/tick()The weird thing is the code works perfectly, and this error only happens the first time I run the code after changing it.. lets say I changed the particleArray[j].sprite to something else, I run the code, I get the error, then I run it again without touching anything, and no error. Changed the frames position on the movieclip, running it, I get the error, running it again, no error.
What could be going on?
EDIT: Sometimes the error takes more times of re-running the code to disappear
If you would like to make a comment, please fill out the form below.
Recent Comments