I basically lumped all the buttons in a Movie Clip so that i don't have to individually make a MouseClicked function for a lot of buttons. It works when you test it on it's own but when i put it in another scene that redirects to it it shows an error
TypeError: Error #1009: Cannot access a property or method of a null object reference.
this is my code for it
buttonsClip.addEventListener(MouseEvent.MOUSE_DOWN, handleButtons, false,
0,true);
/** Button Handler */
function handleButtons(e:Event)
{
/** e.target is the actual button that is being pressed. */
trace(e.target.name);
timer1.start();
wrongBush.visible = true;
fl_SC = s.play();
stop();
}