If you added those objects on the stage, once check those instance names. Those instance names should be same as in the code including case sensitivity. If you access those buttons from library, create instances in the code and then apply event.
may be there is another reason for this error. As I expect,
check whether you gave the name for frame or not (as you used in gotoAndStop() function).