Hi I face this problem in adobe animate how may it will be solved?
i hope that someone in the forum with goodwill will help me to solve that problem
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.
thank you for reply regardless if it works or not.I will try what you said and will let you know for the outcome
hi.I try to create 5 pages with next and previous page commands.
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
you've shown two different error messages.
for the 2nd, you can't use class code attached to a frame/time. ie, if you're creating a class like SimpleButtonDemo, create a class file (named SimpleButtonDemo.as) and add your code to that (and remove it from frames/timelines).
thank for your reply.I will try to make it works and I will let you know about the outcome
Unfortunately it is not work again
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
Now I noticed that I have two CurrentFrame +1.I corrected this but the error that is shown by the compiler is the same:expecting rightparen before dot.sorry for that error.
copy and paste the line number with the error. (your screenshots are too small to be clear.)
but you should not have duplicate function names and you should use event:MouseEvent, not event.MouseEvent in: