Skip to main content
Participant
February 12, 2016
解決済み

Frame numbers in EaselJS start at 0 instead of 1. For example, this affects gotoAndStop and gotoAndPlay calls.

  • February 12, 2016
  • 返信数 8.
  • 38337 ビュー

No matter what I do even if I test an empty movie I get this warning, what am I supposed to do about this as timeline starts with 1 not 0, just be aware of it and get this every time I test something?

このトピックへの返信は締め切られました。
解決に役立った回答 Mohanaraj

Hi,

This is just an information to you that the easeljs handles frame numbers differently(starting from 0) than flash as3(there it starts from 1). You need to be aware of this in case if you are referring to frame numbers in your frame scripts in Canvas document.

Thanks!

Mohan

返信数 8

Known Participant
July 16, 2020

This error code is a usability nightmare. It makes me wonder if the people at adobe ever use their own software. 

 

It's like when someone poops on top of a wedding cake;

It doesn't matter how good the cake was, it's all garbage now. 

chenjil43641795
Legend
June 2, 2018

Select frame, name in attribute (frame label)

Then jump to the Frame tab.

This is the recommended practice now.

I didn't really like to jump frames before.

Because it's not intuitive.

After the version becomes ANCC.

It feels like software is far from the public.

People who can't write code,

Basically not used.

Don't know what to call progress or retrogression

Flash is the most popular time,

Because anyone can use it,

As long as you open the software, not too much learning can make the job.

I think the best version is FLASH8.

Because his help was the friendliest.It's simple.

Now just blindly seeking to add functionality,

And forget who's using it.

Network animation Interactive Software.

Definitions have long been forgotten.

Animators know little about code.

The programmer doesn't use it.

I hope I can get the code assistant to do it and give the Help manual

Instead of chasing the popular.

Do not let people, for a small code to come here to ask.

I often get told to see JS to see Easejs.

But I don't even know what to look at.

Participant
June 2, 2018

How do I resolve this problem?

Colin Holgate
Inspiring
June 2, 2018

Which problem is it that you need to resolve? If you're talking about the original topic, and how frame numbers start at 0, there isn't a problem. The message is for information, unless you have done gotoAndStop() or gotoAndPlay(). The message reminds you that if the timeline frame you want to go to is say 15, the correct gotoAndStop() for that would be gotoAndStop(14), one less than the number shown in the timeline.

Using frame labels is a good idea, gotoAndStop("main menu") will work, even with the difference between JavaScript and ActionScript.

Participant
August 2, 2017

Just turn off "Show Output" in the output console. If you do end up getting what seem to be errors, turn it back on.

Legend
August 2, 2017

In a similar way, you can block all ads on web sites by turning off your monitor.

reza89
Participant
July 14, 2016

is there any different between free trial animate cc and license cc? because i want to try publish and it says

"Frame numbers in EaselJS start at 0 instead of 1. For example, this affects gotoAndStop and gotoAndPlay calls. (3)"

what should i do? i still don't get it the anwer ??

thank you

Mohanaraj
Adobe Employee
Adobe Employee
July 14, 2016

Hi,

There is no difference between trial and licensed copy of Animate with respect to Frame Numbers. As I have mentioned earlier it is displayed for your information in case if you are used to AS3 frame scripts where you refer frame numbers that starts from 1 where as in Canvas document it starts from 0.

In AS3, you write a frame script say gotoAndPlay(3) to go to and play frame #3

In Canvas, you need to use 2 in place of 3 to gotoAndPlay frame number 3 

Thanks!

Mohan

CapRoberts作成者
Participant
February 12, 2016

Very annoying, would be good to have a button saying ok I get it do not warn me again

Gone are the days of Macromedia Director which was such a great product and easy to use and program. Did get into Flash AS2 and later had to learn AS3, which is so much more painful, also waged to write an web application with it that allow to draw on a 2D surface and renders the drawing onto a 3D object in real time. Have not used flash in the last year or two and only now came back, thinking Adobe Animate for html5 great just what we needed, to find out AS3 does not work and there is a very clear separation between Flash and HTML Canvas projects. Good that now Javascript is being used as also it means learning yet again..

Legend
February 12, 2016

I agree that there should be an option in preferences to disable compatibility warnings. Having those warnings spew into the console every single time you publish no matter what just encourages people to ignore warnings altogether.

CapRoberts作成者
Participant
February 12, 2016

They might eventually add a function that adds + 1 to code that targets frames by numbers. If that warning is displayed when you taget a frame by number in your code it would also make sense, it is however shown every time bio matter what you do. Should bot be shown if you taget by frame names or do not have any gotoAndPlay etc code. Also they could have added a 0 to the timeline for html canvas projects or a switch numbering button, which I assumed and could not find. Or start the code from 1. If you have the timeline form 1 to 60, The javascript code has this.frame_0 and this,frame_59 no reason then not to also translate frame numbers correctly in the generated code. Guess this will eventually happen.

Mohanaraj
Adobe Employee
Mohanaraj解決!
Adobe Employee
February 12, 2016

Hi,

This is just an information to you that the easeljs handles frame numbers differently(starting from 0) than flash as3(there it starts from 1). You need to be aware of this in case if you are referring to frame numbers in your frame scripts in Canvas document.

Thanks!

Mohan

kglad
Community Expert
Community Expert
February 12, 2016

yes.