Animate CC - Adding Button Actionscript

แชร์
ฝัง
  • เผยแพร่เมื่อ 30 ก.ค. 2024
  • Make your Animate CC buttons function using script (works for both ActionScript 3.0 and HTML5). This video covers jumping to another place in the timeline, creating top actions for the timeline, and having a button open a URL.

ความคิดเห็น • 83

  • @Resokisi
    @Resokisi 6 ปีที่แล้ว +17

    Thank you SO MUCH! I searched for something like this for so long. You're a lifesaver!

  • @GHZARK
    @GHZARK 6 ปีที่แล้ว +3

    Thanks I learned quite a bit, actually made it easier to understand than some of my lectures.

  • @nukesakuji
    @nukesakuji 4 ปีที่แล้ว +7

    You teach more than my own professor in this amount of time. Good Lord...

    • @griqs
      @griqs 3 ปีที่แล้ว

      Facts

  • @josuebosque8910
    @josuebosque8910 4 ปีที่แล้ว

    You're awesome!
    Straight to the point tutorials using good-designed art.
    Just awesome. Thanks!

  • @juanbetancur8402
    @juanbetancur8402 4 ปีที่แล้ว

    Thanks a lot, pretty clear. The Code Snippets window is very useful while you are learning the code. Your videos are helping me to make animations for my physics and math classes. My students and I are very grateful.

  • @eileneje1
    @eileneje1 5 ปีที่แล้ว

    I love your videos, which I am using to help create my projects for my college classes.

  • @FinalPhaseGaming
    @FinalPhaseGaming 6 ปีที่แล้ว +4

    Hey there,
    Excellent video and explanations,
    thanks so much

  • @PegassiInfernus
    @PegassiInfernus 6 ปีที่แล้ว +1

    Thank You!, yesterday I lost hours looking how to do this, I used to apply simplier coding in Action Script 3.

  • @UndergroundMusicProductions
    @UndergroundMusicProductions 5 ปีที่แล้ว

    This video has came in handy explaining this to an extent thank you.

  • @humnaqais
    @humnaqais 5 ปีที่แล้ว +2

    thank you so much for such a great tutorial

  • @anaabreu2049
    @anaabreu2049 6 ปีที่แล้ว +2

    This has helped me a lot on a college project! I owe you my life, thank you!

  • @kireiao
    @kireiao 5 ปีที่แล้ว

    Thank you so much. This helped my school assignment a lot.
    Well explained and clear. : )

  • @WLin07
    @WLin07 3 ปีที่แล้ว

    ur explanation is too good, thanks a lot

  • @Donnomuch
    @Donnomuch 5 ปีที่แล้ว

    Just what i wss looking for.. Thank you.. Your explanation is very good

  • @prokashdas9599
    @prokashdas9599 6 ปีที่แล้ว +1

    thank u for all ur help

  • @speciamdoesntdraw1052
    @speciamdoesntdraw1052 5 ปีที่แล้ว

    Everytime I run the animtion (ctrl enter) there is an error saying access to undefined property (which is my button). I see that there is nothing wrong with it but it won't work.

  • @phuongmy1965
    @phuongmy1965 4 ปีที่แล้ว

    I Love your tutorial, thank you.

  • @ihssancanmturk3842
    @ihssancanmturk3842 4 ปีที่แล้ว

    Very wonderful lesson!

  • @subhanulrizkisiregar8907
    @subhanulrizkisiregar8907 4 ปีที่แล้ว

    Thank you for the video. Good explanation

  • @isassiernesto
    @isassiernesto 5 ปีที่แล้ว

    I need help, so I want to do a counter game, for a casino where you click start and a leprachaun starts moving and you have to click on the leprachaun and it gives a count of 1, and then it just repeats, you press start, leprechaun moves randomly through a certain square and when clicked it counts now to 2, and so on and so on, can you please help me do something like that?

  • @Fullrusher
    @Fullrusher 4 ปีที่แล้ว

    Is this lua ? I’m looking to do some code in this program but I only know ( currently studying python lol ) do you know if it would work with python ?

  • @taraniesje8451
    @taraniesje8451 ปีที่แล้ว

    Amazing tutorial!!!!!

  • @Simomajola1
    @Simomajola1 5 ปีที่แล้ว

    Thanks for such a great Tutorial. Is it possible to make a button open a PDF(On Adobe Reader) that is located on my hard drive ?

  • @mhdz10
    @mhdz10 2 ปีที่แล้ว

    Hi! Nice video. One question: can these kind of animations being written on ActionScript and then exported to HTML with canvas?

  • @mehmetisk6061
    @mehmetisk6061 5 ปีที่แล้ว

    Please help me in certain time,I want change background how can I

  • @jefersongpires4768
    @jefersongpires4768 5 ปีที่แล้ว

    THANKS YOU SO MUCH!!!

  • @anassham28
    @anassham28 3 ปีที่แล้ว

    Thank You😭It help me so much... ❤️

  • @1337FLINT.
    @1337FLINT. 3 ปีที่แล้ว

    Thanks, but how to add play and pause button into an embedded flv video?

  • @AmiHaydar
    @AmiHaydar 4 ปีที่แล้ว

    Way better than my teacher!

  • @lawhen4608
    @lawhen4608 2 ปีที่แล้ว

    Thank you!

  • @Panzer_Runner
    @Panzer_Runner 2 ปีที่แล้ว +1

    Thanks for the helpful video. BTW you look like Emma Stone in your YT profile picture.

  • @anbgul
    @anbgul 4 ปีที่แล้ว

    Dear Jennifer. I really appreciated your teaching. The lessons are very usefull for me. I want to improve myself in Animate. Is there any videos to complete these sprite samples. I study Parallax lesson and, Play, Replay buttons with ActionScript etc. But couldn't find to navigate and change sprites via arrows. Could you help me? Example, How can i change the sprite from walk to run with keys? (İ hope i can explain myself. Sorry for my English)

  • @greengreen4616
    @greengreen4616 2 ปีที่แล้ว +4

    Hi, this was a great refresher for me as I'm getting back into Flash. It was so helpful and clear. I do have a question though. How would you publish this so that remains interactive now that .SWF format has been discontinued? I'm trying all suggestions and digging into forums, no-one seems to have come up with the answer yet. I'm an ESL teacher and trying to make interactive learning pieces for my students. The making is easy (especially with tutorials like this!) but it is getting the final product packaged for use on someone else's computer that I'm having (literal) headaches over. Do you have any suggestions? I would very much appreciate it! Thanks once again.

  • @harbielo558
    @harbielo558 6 ปีที่แล้ว +2

    nothing happens when i click the button huhu

  • @leomac3337
    @leomac3337 4 หลายเดือนก่อน

    amazing i love you

  • @mohammedsy165
    @mohammedsy165 4 ปีที่แล้ว

    Thank you!!!

  • @masyazidane9598
    @masyazidane9598 5 ปีที่แล้ว

    Hi jedingtonmcc.
    Im having a problem. I create two button.
    1) Enter Button (go to frame 5)
    2) Back Button (go back to frame 1)
    it keeps on giving me error
    Scene 1, Layer 'Actions', Frame 5, Line 17, Column 1 1120: Access of undefined property Back_Btn
    I also double check instance name and it was ok.

    • @wssivan
      @wssivan 5 ปีที่แล้ว

      same problem, pls help

  • @M7snitor132
    @M7snitor132 6 ปีที่แล้ว

    I love you!

  • @nanofox6874
    @nanofox6874 4 ปีที่แล้ว +2

    jedi respect

  • @syedayzaz8344
    @syedayzaz8344 6 ปีที่แล้ว

    Does it work in java games made on animate?

    • @professorjedi
      @professorjedi  6 ปีที่แล้ว

      Syed Ayzaz are you asking if the button symbol would work in HTML5? Yes and no. No because this particular example is an ActionScript 3.0 document. Yes because creating a button and adding script is almost the same for your HTML5 canvas button. Just make sure when working in HTML5 that you are using the HTML5 Canvas folder in the Code Snippets panel.

  • @madoneamia3283
    @madoneamia3283 5 ปีที่แล้ว

    oh my god I love you

  • @diogopedro1991
    @diogopedro1991 5 ปีที่แล้ว

    I can't even get the Coda Snippets. How can I get it to show?

    • @professorjedi
      @professorjedi  5 ปีที่แล้ว +1

      Go to the Window menu and open the Code Snippets panel.

    • @diogopedro1991
      @diogopedro1991 5 ปีที่แล้ว

      @@professorjedi thank you so much! I saw like 4 of your videos and finaly I can use buttons correctly. I use Flash cs4 in my school and their difference are huge ofc. Again, thank you so much for replying. I am subscriber now. Best wishes and happy christmas.

    • @professorjedi
      @professorjedi  5 ปีที่แล้ว +1

      Diogo Pedro happy to help! Good luck with your project :)

  • @mikereyescute
    @mikereyescute 4 ปีที่แล้ว

    where is the code snippets?

  • @BoredOfBills
    @BoredOfBills 2 ปีที่แล้ว

    Anyone remember AS2? Select the button and paste this "on (release) { play(); }" all done - Sooooo much simpler !

  • @kieronmcenroe4808
    @kieronmcenroe4808 5 ปีที่แล้ว

    EVERY TIME I try add the action script either 'click to goto frame and stop'. or 'goto frame and play' all I get is an error box which says
    Scene 1, Layer 'Actions', Frame 4, Line 16, Column 1 1120: Access of undefined property Start.
    I have made sure to name my instance name both differently and the same as the property name so why does this keep happening? Please help?
    My total script is as follows:-
    /* Stop at This Frame
    The Animate timeline will stop/pause at the frame where you insert this code.
    Can also be used to stop/pause the timeline of movieclips.
    */
    stop();
    /* Click to Go to Frame and Stop
    Clicking on the specified symbol instance moves the playhead to the specified frame in the timeline and stops the movie.
    Can be used on the main timeline or on movie clip timelines.
    Instructions:
    1. Replace the number 5 in the code below with the frame number you would like the playhead to move to when the symbol instance is clicked.
    */
    Start.addEventListener(MouseEvent.CLICK, fl_ClickToGoToAndStopAtFrame_4);
    function fl_ClickToGoToAndStopAtFrame_4(event:MouseEvent):void
    {
    gotoAndStop(10);
    }

    • @professorjedi
      @professorjedi  5 ปีที่แล้ว

      Kieron when it says "undefined property" that usually has to do with the instance name. At 6:09 it starts showing how to add an instance name (Play_btn) to the button symbol. Then at 7:31 right after I add the code - see how that same instance name shows up on line 17 as "Play_btn.addeventlistener..." - so as I look at your code it looks like you have the word Start at that same point (though your error says it is line 16 so it is probably on that line) so make sure when you click on the button in the timeline that "Start" is written in the instance name of the Properties panel. Make sure it has a capital "S" in both instances. The other thing is that Start is a pretty common command so ActionScript might reserve that name. So instead make the instance name Start_btn in both locations and they should link up. Undefined is basically saying that you are "calling by name a specific thing" but ActionScript doesn't know anything by that name...so just make sure that instance name in the Properties panel for that object and in the script are the same.

    • @kieronmcenroe4808
      @kieronmcenroe4808 5 ปีที่แล้ว

      @@professorjedi Thankyou very very much for your speedy reply I'll check it now

    • @kieronmcenroe4808
      @kieronmcenroe4808 5 ปีที่แล้ว

      I've copied the video quite literally word for word and I'm still getting the error
      Scene 1, Layer 'Actions', Frame 4, Line 17, Column 1 1120: Access of undefined property Play_btn.
      My Actionscript is
      /* Stop at This Frame
      The Animate timeline will stop/pause at the frame where you insert this code.
      Can also be used to stop/pause the timeline of movieclips.
      */
      stop();
      /* Click to Go to Frame and Play
      Clicking on the specified symbol instance moves the playhead to the specified frame in the timeline and continues playback from that frame.
      Can be used on the main timeline or on movie clip timelines.
      Instructions:
      1. Replace the number 5 in the code below with the frame number you would like the playhead to move to when the symbol instance is clicked.
      */
      Play_btn.addEventListener(MouseEvent.CLICK, fl_ClickToGoToAndPlayFromFrame_4);
      function fl_ClickToGoToAndPlayFromFrame_4(event:MouseEvent):void
      {
      gotoAndPlay(10);
      }
      I really am at a complete loss at to why this is happening as I've copied many different tutorials word for word over last 2 weeks and still cant get passed this, frustration doesn't even begin to cover it.

    • @kieronmcenroe4808
      @kieronmcenroe4808 5 ปีที่แล้ว

      I can absolutely assure you that my properties name is identical to my instant name I even copied and pasted the name over to instant name....thanks for replying ;)

    • @professorjedi
      @professorjedi  5 ปีที่แล้ว

      @@kieronmcenroe4808 Can you take a screenshot of your program both with the code showing and then one with the properties panel showing? Then send me a link so I can view it?

  • @dnonamuso1
    @dnonamuso1 ปีที่แล้ว

    3:08 What did you do here?

    • @dnonamuso1
      @dnonamuso1 ปีที่แล้ว

      I could not get all the layers to shift over a frame, I literally had to do each of my layers individually, is there a reason for this? Do I have something set up wrong?

  • @speededupclip4870
    @speededupclip4870 4 ปีที่แล้ว

    miss show how to find it

  • @sidgamedev4587
    @sidgamedev4587 4 ปีที่แล้ว

    500th like :)

  • @fatmawatiyacob8456
    @fatmawatiyacob8456 5 ปีที่แล้ว

    4:00

  • @barisbasoglu6316
    @barisbasoglu6316 2 ปีที่แล้ว

    so naar jou mijn angst voor imsp is nu weg. Han kan de Corona krijgen
    love