Second part the goto functions. Help, please

Header 1
Stop();

employment.addEventListener (MouseEvent.CLICK, employmentx);
function employmentx(event:MouseEvent)
{
gotoAndPlay (37);
}

education.addEventListener (MouseEvent.CLICK, educationx);
function educationx(event:MouseEvent)
{
gotoAndPlay (100);
}

I'm working with the code. Have 4 buttons, each is supposed to lead to another part of the book of flash. I get the error TypeError: Error #1009: cannot access a property or method of a null object reference.
at Resume2_fla::MainTimeline/frame19()

Look, it's very simple - at the time the code is executed - there is no object that refer you to the timeline. Maybe put you these objects in keyframes, and then a framework later, you put another keyframe that actually removes the object from the timeline. The fact that you placed an object on, say, frame 1 does not necessarily mean that this item is available throughout the timeline. Vice versa, if an object is placed on the frame 100 is not available on any frame before image 100. So, you need to check if the object you make reference to exist at the time of the execution of code.

Tags: Adobe Animate

Similar Questions

Maybe you are looking for

  • Fitting the screen pages

    How can I get the page to fit the screen.  After the Welcome screen appears and the system is connected is dead center on the screen as a small area and it's on a Hewlett Packard laptop that it the screen with icons on it.  If will not get everything

  • How to download pictures to a usb card by copying and pasting

    How to upload photos to card usb using the copy and past

  • Unable to open the drive with the hd box.

    I put my laptop hard drive in a usb encloser to retreve files however 2 drivers falls under my computer, drive E that is the recovery drive and drive f wich has all my files on it. but when I try to open or right click on drive F the computer says it

  • Compatible Dell Inspiron 1545 laptop hard drives

    My sister in law's laptop computer is an Inspiron 1545. This is the default size of the hard drive is 160 GB. I assume that it is a SATA. She got this as a Christmas present 3 years ago. What hard drives are compatible for this laptop?

  • IRQL NOT LESS OR EQUAL (NETIO. (SYS)

    I get a blue screen with the following message appears: «Driver IRQL NOT LESS OR EQUAL (NETIO.» (SYS)reboot system very frequently due to the problem of mentined above. my system is "DELL INSPIRON 15R 5537" and running on window8.the antivirus I use