Button in a content Movie Clip
Hi,
I need help on a button going to a frame "reservationpage". I set a button on frame 3 in "treatmentspage" that should call on "reservationpage" in frame 8.
I have been using this code:
myreserve_btn.addEventListener(MouseEvent.CLICK, onReservClick);
function onReservClick(evt:MouseEvent):void {
gotoAndStop("reservation page");
myreserve_btn.removeEventListener(MouseEvent.CLICK, onReservClick);
}
but keep getting:
TypeError: Error #1009: Cannot access a property or method of a null object reference.
at SpaLuvicebestmassageoptionintown_fla::MainTimeline/frame3()
at flash.display::Sprite/constructChildren()
at flash.display::Sprite()
at flash.display::MovieClip()
at SpaLuvicebestmassageoptionintown_fla::innnerbody_25()
at flash.display::Sprite/constructChildren()
at flash.display::Sprite()
at flash.display::MovieClip()
at flash.display::MovieClip/gotoAndStop()
at SpaLuvicebestmassageoptionintown_fla::MainTimeline/bodymassagebtn_clicked()
can I get help on this please?