Play, Pause and Stop Buttons In Flash

แชร์
ฝัง
  • เผยแพร่เมื่อ 27 ก.พ. 2011
  • This tutorial explains about how to create Play, Pause and Stop Buttons in Flash. I hope you Enjoy watching this Video!
    This is done using ActionScript 2.0(AS 2.0).
    SUBSCRIBE For More Videos!
    For Source File, Click Here:-
    www30.zippyshare.com/v/6464405...
    If you have any doubts you can ask me!

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

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

    How do you even open the menu to input the codes in? I am using the new version, 2017. So there is not something like that.

  • @SatyamRahaariya
    @SatyamRahaariya 8 ปีที่แล้ว +1

    hi bro, thanx for the video. I have followed each steps in my project, but the problem is whenever I click a button and go to actions and type the code, it gets overwritten. I mean there is only a single code existing at a time in a layer, although I want different codes for the 3 different buttons. What is causing the problem? Can you help?

  • @carloscoelho6910
    @carloscoelho6910 7 ปีที่แล้ว +2

    Help very good, thanks work working now
    big help recommend

  • @whateverlove11
    @whateverlove11 12 ปีที่แล้ว +1

    Lol
    I saw EXACTLY this exercise in class but couldn't remember how to do it... Thanks!

  • @jasonforbes2091
    @jasonforbes2091 11 ปีที่แล้ว +1

    how do i get this to work if I have 20 layers of graphic symbol animation? not just one layer

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

    Thanks so freaking much!

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

    what kind of flash did you used?
    its flash8 right

  • @ilikeuroy
    @ilikeuroy 12 ปีที่แล้ว +1

    Thank you so much!! i learned it

  • @rbu2m
    @rbu2m 11 ปีที่แล้ว +1

    That was helpful, thanks.

  • @mongtl
    @mongtl 11 ปีที่แล้ว +1

    Thanks for Teaching Us

  • @JohanJpPaul
    @JohanJpPaul 11 ปีที่แล้ว +1

    That's great. Thanks!

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

    does this work with frame by frame animations?

  • @Mr4thetruth
    @Mr4thetruth 10 ปีที่แล้ว +1

    Brilliant tutorial! Thanks a lot.

  • @imenessassi
    @imenessassi 7 ปีที่แล้ว +1

    Thanks for the video (y)

  • @TH509a
    @TH509a 8 ปีที่แล้ว +1

    THANK YOU SO MUCH
    YOU SAVE MY WORLD!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

  • @frasr
    @frasr 11 ปีที่แล้ว +1

    Thanks

  • @markzman222
    @markzman222 12 ปีที่แล้ว +1

    Thank you that was great!!!! MZ

  • @maspayjoe
    @maspayjoe 8 ปีที่แล้ว +1

    thanks mate... it's work

  • @gabrielgeorge4362
    @gabrielgeorge4362 11 ปีที่แล้ว +1

    thanks from Brasil

  • @islam1111987
    @islam1111987 12 ปีที่แล้ว +1

    nice one

  • @MrMajidAbdak
    @MrMajidAbdak 11 ปีที่แล้ว +1

    thanks.. it works

  • @digimikeh
    @digimikeh 10 ปีที่แล้ว

    Thanks for your tutorial..
    I have got a problem while scripting the buttons:
    what i put is:
    on(release){
    root.gotoAndPlay("2");
    }
    (i have testesd with "root" and without it, same happens)
    on the frame that my button is.. but i got this error message in console:
    "brown, Layer "titulo", Frame 1, Line 1 1086: Syntax error: expecting semicolon before leftbrace
    what could it bE?
    Thank you in advance...

    • @SSaipriya
      @SSaipriya  10 ปีที่แล้ว

      You're welcome:)
      There's a small mistake in the script.
      It's "_root" and not "root". So, you can add this actionscript:
      on(release){
      _root.gotoAndPlay("2");
      }
      Hope this helps.

  • @jasons4045
    @jasons4045 8 ปีที่แล้ว +2

    Hey, im doing an assignment regarding a trailer. However, the audio won't stop when i pause the clip, please help. How can i make the audio and video pause at the same time? ASAP...T.T thank youu

    • @SSaipriya
      @SSaipriya  8 ปีที่แล้ว

      Hi, to stop the audio completely, you have to add this command to stop button:
      stopAllSounds();

  • @ponengesso
    @ponengesso 12 ปีที่แล้ว +1

    this is a nice tutorial..Since I am new in flash i want to learn how to hide the image when you clicked it... is this possible in AS2?

  • @k.govindasgandhi5845
    @k.govindasgandhi5845 10 ปีที่แล้ว +1

    hi its a nice tuts and i learn for the tuts
    have a nice day

  • @kuldipsinhrajput6394
    @kuldipsinhrajput6394 8 ปีที่แล้ว +2

    It works good

  • @mayur1234566788
    @mayur1234566788 11 ปีที่แล้ว +1

    thax bro

  • @0669existence
    @0669existence 13 ปีที่แล้ว +1

    good tutorial, thanks

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

    How to change your change your channel rack from Dub back to the original channel rack you have

  • @SuperImbaguy
    @SuperImbaguy 11 ปีที่แล้ว +1

    Thanks! :)

  • @darkcheq
    @darkcheq 7 ปีที่แล้ว +1

    play stop on the same button?

  • @bijeshchandran6243
    @bijeshchandran6243 11 ปีที่แล้ว +1

    Thank you...

  • @samyelusam6175
    @samyelusam6175 11 ปีที่แล้ว +1

    Thank You.......

  • @singhanuj245
    @singhanuj245 11 ปีที่แล้ว +2

    thanx

  • @missayin9138
    @missayin9138 7 ปีที่แล้ว +1

    good tutorial

  • @saadaqilyas4147
    @saadaqilyas4147 7 ปีที่แล้ว +1

    Hi how to create three JButton using swing in java

  • @soycuscatleco1556
    @soycuscatleco1556 8 ปีที่แล้ว +1

    Thanks :'D

  • @dontmissout2024
    @dontmissout2024 12 ปีที่แล้ว +1

    I was just wondering....What is the code for a restart button on a simple game?
    Thank you in Advance

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

    How hard is it to record your voice

  • @sunilkumarpattambi
    @sunilkumarpattambi 13 ปีที่แล้ว +1

    FINE Video ...

  • @3dgameshaikh
    @3dgameshaikh 11 ปีที่แล้ว +1

    THANKS A LOT BABY

  • @adecool1698
    @adecool1698 7 ปีที่แล้ว +1

    dude how export ?

  • @OnlySwadeshi
    @OnlySwadeshi 8 ปีที่แล้ว +1

    but i am using adobe flash cs3 and in which not working F9 button.
    or give me right code to close button. According to cs3.

    • @SSaipriya
      @SSaipriya  8 ปีที่แล้ว

      If F9 doesn't work, then from the Windows menu, choose Actions

    • @OnlySwadeshi
      @OnlySwadeshi 8 ปีที่แล้ว

      ok I'll try.

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

    Thank you so much sir

  • @robertorios3818
    @robertorios3818 10 ปีที่แล้ว

    very good

  • @OnlySwadeshi
    @OnlySwadeshi 9 ปีที่แล้ว +1

    scene=scene, layer=Layer...... Mouse events are permitted only for button instances.. on (release){
    play ();
    }
    pls give me solution...

    • @SSaipriya
      @SSaipriya  9 ปีที่แล้ว +1

      You are getting this error because you pasted the code on Frame instead of Button. So removed that code from the Frame on a Layer and select the Play button, then open actions panel or press F9 and paste it there.
      Hope this helps!

  • @janexz.
    @janexz. 11 ปีที่แล้ว +1

    Thanks you so much for thissss >////

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

    Thank u

  • @tonghannvann6040
    @tonghannvann6040 12 ปีที่แล้ว +1

    លូយមែន មេរៀន នេះ

  • @Migo0ogiM
    @Migo0ogiM 10 ปีที่แล้ว +1

    it's very cool tutorial
    but how to make the play button (press and hold button) to play and when i release it the animation stop automatic..
    Please need your help
    thanks

    • @SSaipriya
      @SSaipriya  10 ปีที่แล้ว

      thank you.
      you need to create a button first. give some Instance Name for button and the movieclip or graphic on the Properties tab. then click on the first keyframe and type this actionscript on actions panel(F9):
      "buttonname".onRollOver = function() {
      "movieclipname".play();
      }
      "buttonname".onRollOut = function() {
      "movieclipname".stop();
      }
      (quotes not included)

    • @Migo0ogiM
      @Migo0ogiM 10 ปีที่แล้ว

      SSaipriya Thank you for your help
      and i ask if the "movieclip" wasn't clip it just animated Symbol in flash because this script didn't work with me :( ..when i test the movie the animation plays automatic and the button dose not effect at all.

    • @Migo0ogiM
      @Migo0ogiM 10 ปีที่แล้ว

      SSaipriya
      I got it thanks bro..
      this script works as i need
      on(press){
      Play();
      }
      on(release){
      stop();
      }

    • @SSaipriya
      @SSaipriya  10 ปีที่แล้ว +1

      Amgad Basilious glad you got it:) btw not bro.., sis:-)

  • @LucidTeFlon180
    @LucidTeFlon180 9 ปีที่แล้ว +2

    Argh what could this possibly mean?
    **Error** Scene=Scene 1, layer=Layer 4, frame=1:Line 1: Mouse events are permitted only for button instances
    on(release){
    Total ActionScript Errors: 1 Reported Errors: 1

    • @SSaipriya
      @SSaipriya  9 ปีที่แล้ว

      You are getting this error coz you have put this code on selecting the frame. Select the button and go to Actions panel and add the code. This will work..

    • @LucidTeFlon180
      @LucidTeFlon180 9 ปีที่แล้ว

      SSaipriya Thanks for the help. Also do u know why sound doesn't come from any of the buttons I create? I mean I follow every step precisely.

    • @SSaipriya
      @SSaipriya  9 ปีที่แล้ว

      LucidTeFlon180 You need to add sound for the buttons. To add sound follow these steps:
      - First go to File=>Import=>Import to library. Select your sound in .wav format.
      - Go to Window=>Library and right click on your sound. Select Properties.
      - Click on Advanced and check on Export for Actionscript. Select OK and close the tab.
      - Now on the Library window, select your sound and double-click on the right side of the sound(below linkage).
      - Type some name like "abcsound" (don't use quotation marks)
      - Now draw some shape on the stage and covert it to button. Select the button and open the Actions panel(F9).
      - Add this actionscript:
      on (release) {
      mySound = new Sound(this);
      mySound.attachSound("abcsound");
      mySound.start(0, 99);
      }
      Now the sound will work..
      Hope this helps :-)

    • @LucidTeFlon180
      @LucidTeFlon180 9 ปีที่แล้ว

      SSaipriya Thanks for the reply, all is well now. I just reinstalled the program :P

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

    waw i need it thanku so much , please make a video how we link our social network .

  • @1joemath
    @1joemath 9 ปีที่แล้ว +1

    where do you out the actionscript?

    • @SSaipriya
      @SSaipriya  9 ปีที่แล้ว

      Joe McDonald In the actions panel. Go to Window=> Actions or press F9.

  • @Moonlight-xd6nd
    @Moonlight-xd6nd 5 ปีที่แล้ว +1

    great

  • @Bar-Kun
    @Bar-Kun 10 ปีที่แล้ว

    it's pretty nice
    but i have one problem
    what if i try using movie clips and not graphic clips?
    and what if i'm using even sound and not stream?

    • @SSaipriya
      @SSaipriya  10 ปีที่แล้ว

      thanks.
      yeah you can use movieclips and add same script.
      you can also add sound by importing it to library and placing it on the timeline

    • @Bar-Kun
      @Bar-Kun 10 ปีที่แล้ว

      thats not what i ment
      i tested out the buttons and when i have a movie clip on the scene it just loops itself
      and the even sound is just going like we didn't pause the animation

    • @SSaipriya
      @SSaipriya  10 ปีที่แล้ว

      shadowfan1997 you cannot control the sound using this script. You should link your sound clip to actionscript and then add some code.
      And, for the movieclip loops, add " stop(); " in the last frame of your movieclip sequence.

    • @Bar-Kun
      @Bar-Kun 10 ปีที่แล้ว

      but the reason i use movie clips is that they will loop, i usually use graphic clips for non loop animations, but for looping animation like running it just goes on
      i kinda though if i should just work with graphic clips only, that way i will not have that problem, but thats not a solution since i use text boxes on my animations, and these text boxes are programed to stop the animation

    • @SSaipriya
      @SSaipriya  10 ปีที่แล้ว

      shadowfan1997 For an animation like running, it loops because the reason is the movieclip should be nested inside other movieclip. Like you have to create a new movieclip and paste this running sequence movieclip inside that. If you still have any problem with that, just send me the source file and i'll figure it out.

  • @Chinken
    @Chinken 11 ปีที่แล้ว +1

    sure

  • @kilala1148
    @kilala1148 12 ปีที่แล้ว +1

    I love you forever~

  • @hadiminceraft9401
    @hadiminceraft9401 7 ปีที่แล้ว +1

    appear within on handler
    bro
    Total ActionScript Errors: 3 Reported Errors: 3
    ano

  • @BorisMediaProds
    @BorisMediaProds 11 ปีที่แล้ว +1

    Awesome, lol..
    I commented 3 months ago :D

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

    Man the software scares it's terrifying

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

    On (thanq) {
    love();
    }

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

    wow nifty ^-^

  • @ShashwatAnand123
    @ShashwatAnand123 8 ปีที่แล้ว +1

    will this work in flash 8? i wanna know the best version of flash to do this actions......etc work

    • @criticlipss
      @criticlipss 8 ปีที่แล้ว

      +Shashwat Anand - Latest Veriosn of flash is ADOBE FLASH CS6 PRO

    • @SSaipriya
      @SSaipriya  8 ปีที่แล้ว

      Yeah this code will work with Flash 8.. The best versions are Flash CS5 and CS6.. You have to choose Actionscript 2.0 on startup before you commence working

    • @ShashwatAnand123
      @ShashwatAnand123 8 ปีที่แล้ว

      so what's the diffrence between action cript 2 and 3? whuck 1 do you prefer

    • @criticlipss
      @criticlipss 8 ปีที่แล้ว

      well i don't know the difference but i think you should use the latest one. I means ActionScript3 :)
      Or else simply google it.

    • @SSaipriya
      @SSaipriya  8 ปีที่แล้ว

      +Shashwat Anand there are many differences between AS2.0 and 3.0... The method of writing script changes in AS3.0 ... I would suggest you to start with AS2.0 since it's easy to understand the script, then you can work with AS3.0 codes

  • @romnickrefugia6338
    @romnickrefugia6338 8 ปีที่แล้ว

    Please help, I just want to know how to use the sound in the library panel into code like Click to Play/Stop Sound.

    • @SSaipriya
      @SSaipriya  8 ปีที่แล้ว

      +Romnick Refugia Hi, To add sound follow these steps:
      - First go to File=>Import=>Import to library. Select your sound in .wav format.
      - Go to Window=>Library and right click on your sound. Select Properties.
      - Click on Advanced and check on Export for Actionscript. Select OK and close the tab.
      - Now on the Library window, select your sound and double-click on the right side of the sound(below linkage).
      - Type some name like "abcsound" (don't use quotation marks)
      - Now draw some shape on the stage and convert it to button. Select the button and open the Actions panel(F9).
      - Add this actionscript: on (release) {
      mySound = new Sound(this);
      mySound.attachSound("abcsound");
      mySound.start(0, 99);
      }To stop the sound, create a new button and type this actionscript: on(release){
      mySound.stop();
      }Hope this helps!

    • @romnickrefugia6338
      @romnickrefugia6338 8 ปีที่แล้ว

      SSaipriya Thank you so much sir :)

    • @SSaipriya
      @SSaipriya  8 ปีที่แล้ว

      +Romnick Refugia It's not sir.. I'm a woman.. Well I'm glad it helped you:)

    • @romnickrefugia6338
      @romnickrefugia6338 8 ปีที่แล้ว

      wow, a women programmer :-)

    • @romnickrefugia6338
      @romnickrefugia6338 8 ปีที่แล้ว

      can you help me add a timer in my quiz game pls??? :)))

  • @ShtuffDa
    @ShtuffDa 10 ปีที่แล้ว +1

    THANK U

  • @PixelPower23
    @PixelPower23 9 ปีที่แล้ว +1

    **Error** Scene=Scene 1, layer=Text, frame=1:Line 2: Statement must appear within on handler
    I got this mensage wenever I write.

    • @SSaipriya
      @SSaipriya  9 ปีที่แล้ว +1

      You get this error when you miss '}' or ')' somewhere.

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

      try using action script 2.0. also, using the script wizard makes it easier for you

  • @MrCodypowell
    @MrCodypowell 10 ปีที่แล้ว +1

    Could you do a tutorial using AS3?
    :)

  • @khaulanaaz4082
    @khaulanaaz4082 8 ปีที่แล้ว +1

    mujy theek sy nzr ni aa ra :(

  • @juanlimog
    @juanlimog 12 ปีที่แล้ว

    mierda quiero AS3!!!!!!

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

    hancok

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

    sa

  • @Sodylin
    @Sodylin 9 ปีที่แล้ว +1

    Skip all the BS and go to 7:50 for the actionscript

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

    Bandir Pola Hoga ainaa thos samne ai Hoga dekte aisi ane😤

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

    hancok