Skip to main content
Known Participant
February 15, 2020
Question

1120 access of undefined property nextBtn and previousBtn

  • February 15, 2020
  • 2 replies
  • 1765 views

Hi I face this problem in adobe animate how may it will be solved?

thank you

This topic has been closed for replies.

2 replies

JoãoCésar17023019
Community Expert
Community Expert
February 16, 2020

Hi.

 

About your first comment, please make sure that you have two instances named nextBtn and previousBtn in the frame the code is being called from.

 

About your second comment, there is a bit of confusion. You're writing a package in a timeline frame. But this is not possible. For writing packages and classes, you need to create external files by going to File > New... > Advanced > ActionScript 3.0 Class.

 

Anyway, what exactly are you trying to do? If you give us more details we may be able to help you out.

 

 

Regards,

JC

Known Participant
February 16, 2020

Also I consider important to point out that I have an ActionScript 3.0 cookbook for flash platform but it didnt seem to help me much

Known Participant
February 17, 2020

that has so many errors you should just delete it.  start with your your 2/16 screenshot post and paste that code into a SimpleButtonDemo.as file saved in the folder of your project.

 


I paste the code into a simple button class file as joao cesar said(New>Advanced>ActionScript 3.0 Class) and I saved it as an *.as file.Then I used first code but I have other error.Sorry if I becoming annoying

Known Participant
February 16, 2020

 

i hope that someone in the forum with goodwill will help me to solve that problem