1009 null object reference. I've been trying to figure this out without a posting here, sifting through all the null object post, but... here it is.
I've placed a button (bella_btn), with an instance name of bella_btn, on the main timeline, in frame 5. I want to click on it and goto frame 8. Movie plays fine, until frame 5, where the bella_btn is, I get the null object reference error.
The Error
TypeError: Error #1009: Cannot access a property or method of a null object reference.
at WebSite2PortTesting_fla::MainTimeline/frame5()
at flash.display::MovieClip/gotoAndStop()
at WebSite2PortTesting_fla::MainTimeline/clickPortfolio()
This is the only code on frame 5
bella_btn.addEventListener(MouseEvent.CLICK, clickBella);
function clickBella(e:Event)
{
gotoAndStop(8);
}
What do I do?! And, if you have time could you explain this error.
North America
Europe, Middle East and Africa
Asia Pacific