• home
  • forum
  • my
  • kt
  • download
  • Play and Stop Music Button

    Author: 2007-06-13 09:14:01 From:

    This tutorial will show you how to make Play/Stop Music button. You may also learn to import a MP3 file to flash and reduce the sizes as minimum as it can.

    Open New Document in whatever sizes you want.  In this tutorial I will use 3 different backgrounds as a Flash MP3 player interface. You may also use a text and background at Flash only besides using any graphics from outside flash. It can reduce your file¡¯s size.

    For this tutorial I import a background graphics. I hope that you already familiar with importing files into flash also convert it as a graphic.

    Background 1

    Macromedia Flash

    Background 2

    Macromedia Flash

    Background 3

    Macromedia Flash

    Create three more layers and rename it as shown below.

    Macromedia Flash

    Now, on Play Music Layer, type using a text tool, PLAY MUSIC. Press F8 and convert it as a button.

    Macromedia Flash

    Double click Play Music button, and you¡¯ll be inside a button. Right click on Over, insert keyframe and change the font color or even size. As you like. When mouse cursor rollover to the text, it will change like as shown below.

    Macromedia Flash

    Right click on Hit, insert keyframe and draw a box to cover the whole text. This step is to make sure we maximize a button area. You can use any color for the box because it will not appear on your movie. See below.

    Macromedia Flash

    Now we¡¯re done with the Play Music button. Go to main scene, click PlayMusic button and put some actionscript. Press F9, when actionscript box appear, select Global Functions>Timeline Control>goto and follow setting below. Just set Frame to 2.

    Macromedia Flash

    Done with that, create one new layer and name it as an Actionscript and put it on top of every layer.

    Click on 1st keyframe of Actionscript layer and press F9 to put an actionscript on that keyframe. Select Global Functions>Timeline Control>stop. Your timeline should look like below.

    Macromedia Flash

    Now we move to next step. Click on Music Play layer. Right click on 2nd keyframe and insert keyframe. Import a Background 2 into it. Your timeline should look like this.

    Macromedia Flash

    Create a new layer on top of Music Play layer and name it as a Stop Music. Right click on 2nd frame and insert a keyframe on the Stop Music layer. By using a text tool, type STOP MUSIC. See below.