I know this update is probably old I'm using the same code and I got everything in the video right but it keeps saying "1086 Syntx error: expecting semicolon before rightparen." and idk what to do to play it out for my animation
The first part of the code works, the animation stops in the first frame. However, there's a problem with the second part. It shows an error of compilation on the last code: "Call to a possibly undefined method bind through a reference with static type function".
for anyone else who gets this error: this is my work around function playAnimation(e: MouseEvent): void { this.play(); } button.addEventListener(MouseEvent.CLICK, playAnimation); 'button' is the instance name. the playAnimation has one argument of type MouseEvent and returns nothing so it is type void (the : void in the function declaration). this.button wasn't necessarry in my case. posting this because i found this comment yesterday and hoped someone answered with a work around so i am the change i wanna see in the world :p cheers!
Hey, what codes would you use to make a second button play the next part of an animation when clicked?
my button is error cant define the Bind
You should use html canvass 5
I know this update is probably old I'm using the same code and I got everything in the video right but it keeps saying "1086 Syntx error: expecting semicolon before rightparen." and idk what to do to play it out for my animation
Does it say which line? Probably a typo somewhere. Maybe an extra parentheses or something.
@@choobtorials Never mind I figured it out a few days ago and I had the wrong name to it 😅
same here
I'm using HTML5 canvas my buttons aren't working though they just appear I click on play but the animation isn't playing
u have to git gud and it works then
The first part of the code works, the animation stops in the first frame. However, there's a problem with the second part. It shows an error of compilation on the last code: "Call to a possibly undefined method bind through a reference with static type function".
for anyone else who gets this error: this is my work around
function playAnimation(e: MouseEvent): void {
this.play();
}
button.addEventListener(MouseEvent.CLICK, playAnimation);
'button' is the instance name. the playAnimation has one argument of type MouseEvent and returns nothing so it is type void (the : void in the function declaration). this.button wasn't necessarry in my case.
posting this because i found this comment yesterday and hoped someone answered with a work around so i am the change i wanna see in the world :p cheers!
@@sznuw thankyou your comment really helps !
@@joyce3410 youre welcome!
@@sznuwYOU SAVED ME A YEAR LATER ON A SCHOOL ASSIGNMENT THANK YOUU
@@F_Slush you're welcome, hope you get a good grade :D
You are cool! Thank You!
Very helpful.
The audio quality could improve.
Yeah I followed exactly and its cycling like a gif....
you need otomake sure you're in HTML 5 and not actionscript 3.0
same here
Fuck I miss ActionScript.
This HTML stuff is so bloody hard to understand.
Yeah I miss it too. It was so well-documented also.
Lov u
lov u too
lov u too (2)
Plz Don't use to the subtitle. Otherwise you're video the westing time