Adobe Animate: Create a button to play your animation

Поделиться
HTML-код
  • Опубликовано: 26 окт 2024

Комментарии • 30

  • @ZAIRAADRIANO
    @ZAIRAADRIANO 11 месяцев назад +2

    my button is error cant define the Bind

  • @musicaladventure5
    @musicaladventure5 2 года назад +2

    Hey, what codes would you use to make a second button play the next part of an animation when clicked?

  • @KinruneGames
    @KinruneGames 3 года назад +1

    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

    • @choobtorials
      @choobtorials  3 года назад

      Does it say which line? Probably a typo somewhere. Maybe an extra parentheses or something.

    • @KinruneGames
      @KinruneGames 3 года назад +1

      @@choobtorials Never mind I figured it out a few days ago and I had the wrong name to it 😅

    • @jenoah28
      @jenoah28 8 месяцев назад

      same here

  • @loweni7460
    @loweni7460 4 года назад +2

    I'm using HTML5 canvas my buttons aren't working though they just appear I click on play but the animation isn't playing

    • @bweany91
      @bweany91 4 года назад

      u have to git gud and it works then

  • @juanbetancur8402
    @juanbetancur8402 4 года назад +6

    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".

    • @sznuw
      @sznuw 2 года назад +12

      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!

    • @joyce3410
      @joyce3410 Год назад +1

      @@sznuw thankyou your comment really helps !

    • @sznuw
      @sznuw Год назад +1

      @@joyce3410 youre welcome!

    • @F_Slush
      @F_Slush Год назад +1

      @@sznuwYOU SAVED ME A YEAR LATER ON A SCHOOL ASSIGNMENT THANK YOUU

    • @sznuw
      @sznuw Год назад

      @@F_Slush you're welcome, hope you get a good grade :D

  • @АннаВасовская
    @АннаВасовская 2 года назад

    You are cool! Thank You!

  • @Turtleback8024
    @Turtleback8024 2 года назад

    The audio quality could improve.

  • @gardenstuff2924
    @gardenstuff2924 3 года назад

    Very helpful.

  • @PolarTitan
    @PolarTitan 4 года назад +1

    Yeah I followed exactly and its cycling like a gif....

    • @madisonstratford2671
      @madisonstratford2671 3 года назад +1

      you need otomake sure you're in HTML 5 and not actionscript 3.0

    • @jenoah28
      @jenoah28 8 месяцев назад

      same here

  • @Grumpyoldtwit
    @Grumpyoldtwit 3 года назад

    Fuck I miss ActionScript.
    This HTML stuff is so bloody hard to understand.

    • @choobtorials
      @choobtorials  3 года назад

      Yeah I miss it too. It was so well-documented also.

  • @bhavinnandurbar3236
    @bhavinnandurbar3236 4 года назад

    Plz Don't use to the subtitle. Otherwise you're video the westing time

  • @moin2803
    @moin2803 3 года назад +1

    Lov u