Keep getting Error #1009 Please help
"TypeError: Error #1009: Cannot access a property or method of a null object reference.
at TheUnseen_fla::MainTimeline/frameHandlers02()[TheUnseen_fla.MainTimeline::frame825:16]"
my code:
next.visible = false
var myStrings:String = "Well done, we now know the cause of death. A bullet to the heart. so we know that a gun was used in the murder. now all we need to do is have a look at these suspects we got in yesterday. I'll leave them in your care. Have Fun. ";
var myArrays:Array = myStrings.split("")
addEventListener(Event.ENTER_FRAME, frameHandlers02);
function frameHandlers02(event:Event):void {
if (myArrays.length > 0) {
textbox.appendText(myArrays.shift());
} else {
removeEventListener(Event.ENTER_FRAME, frameHandlers02);
next.visible = true
}
}
the scene will run perfectly by itself but when I play the whole document it gives that error, I have double checked naming and objects but still cannot find what is causing it.
