# Flash CS3 Play/Stop audio button problem

**URL:** https://forum.kirupa.com/t/flash-cs3-play-stop-audio-button-problem/331988
**Category:** flash
**Created:** [December 18, 2013, 6:23pm UTC](https://forum.kirupa.com/t/flash-cs3-play-stop-audio-button-problem/331988 "2013-12-18T18:23:21Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![e\_verhagen](https://avatars.discourse-cdn.com/v4/letter/e/ee59a6/32.png) [@e\_verhagen](https://forum.kirupa.com/u/e_verhagen)
#### Post date: [December 18, 2013, 6:23pm UTC](https://forum.kirupa.com/t/flash-cs3-play-stop-audio-button-problem/331988/1 "2013-12-18T18:23:21Z")

</div>

[COLOR=#000000][FONT=verdana]I made a play/stop audio button with this youtube tutorial ([youtube.com/watch?v=XU6oMEFUFF8](http://youtube.com/watch?v=XU6oMEFUFF8)) but after the sound is finished I want the play button to show up agian.[/FONT][/COLOR]

[COLOR=#000000][FONT=verdana]Here is the actionscript:[/FONT][/COLOR]

[COLOR=#000000][FONT=verdana]import flash.events.MouseEvent;[/FONT][/COLOR]

[COLOR=#000000][FONT=verdana]play\_btn.addEventListener(MouseEvent.CLICK,clickha ndler);[/FONT][/COLOR]  
[COLOR=#000000][FONT=verdana]stop\_btn.addEventListener(MouseEvent.CLICK,clickha ndler);[/FONT][/COLOR]  
[COLOR=#000000][FONT=verdana]function clickhandler(event:MouseEvent):void{[/FONT][/COLOR]  
[COLOR=#000000][FONT=verdana]swapChildren(play\_btn,stop\_btn);[/FONT][/COLOR]  
[COLOR=#000000][FONT=verdana]}[/FONT][/COLOR]

[COLOR=#000000][FONT=verdana]what code should I add to my current code?[/FONT][/COLOR]

[COLOR=#000000][FONT=verdana]I also can send you the Fla.[/FONT][/COLOR]
