# Play and stop buttons with music

**URL:** <https://forum.kirupa.com/t/play-and-stop-buttons-with-music/238804>\
**Category:** Uncategorized\
**Created:** [September 15, 2007, 12:07pm UTC](https://forum.kirupa.com/t/play-and-stop-buttons-with-music/238804 "2007-09-15T12:07:24Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![itay\_7](https://avatars.discourse-cdn.com/v4/letter/i/71e660/32.png) [@itay\_7](https://forum.kirupa.com/u/itay_7)\
**Post date:** [September 15, 2007, 12:07pm UTC](https://forum.kirupa.com/t/play-and-stop-buttons-with-music/238804/1 "2007-09-15T12:07:24Z")

</div>

hello. im a beginner with flash and i need a little help.  
i want to create a small music player (that play only 1 song) which contains-  
a Play button - button symbol  
a Stop button - button symbol  
a title (show what song is currently playing) - movie symbol  
music - i guess movie symbol

the only problem i couldnt solve (the rest are working fine) is that the play and stop buttons arent working. the scripts i wrote for them are:

**on(press){  
a.play();**  
**}**

and

**on(press){  
a.stop();**  
**}**

respectively, while “a” is the instant name for the symbol which contains the song.

i think i figured out that the problem is that in the music symbol there is only 1 frame (which contains the song- i just went to frame #1 and dragged to the edit screen the song from the library).

please help me!!
