Adobe Animate: Create a button to play your animation

Поділитися
Вставка
  • Опубліковано 19 лис 2024

КОМЕНТАРІ • 31

  • @musicaladventure5
    @musicaladventure5 2 роки тому +2

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

  • @ZAIRAADRIANO
    @ZAIRAADRIANO Рік тому +3

    my button is error cant define the Bind

  • @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 9 місяців тому

      same here

  • @loweni7460
    @loweni7460 5 років тому +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 роки тому +13

      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!

  • @gardenstuff2924
    @gardenstuff2924 3 роки тому

    Very helpful.

  • @Turtleback8024
    @Turtleback8024 2 роки тому

    The audio quality could improve.

  • @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 9 місяців тому

      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.

  • @moin2803
    @moin2803 3 роки тому +1

    Lov u

  • @bhavinnandurbar3236
    @bhavinnandurbar3236 4 роки тому

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