# Help with IF statement and sound

**URL:** <https://forum.kirupa.com/t/help-with-if-statement-and-sound/206421>\
**Category:** flash\
**Created:** [November 8, 2006, 1:29am UTC](https://forum.kirupa.com/t/help-with-if-statement-and-sound/206421 "2006-11-08T01:29:41Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Darren\_E](https://avatars.discourse-cdn.com/v4/letter/d/97f17d/32.png) [@Darren\_E](https://forum.kirupa.com/u/Darren_E)\
**Post date:** [November 8, 2006, 1:29am UTC](https://forum.kirupa.com/t/help-with-if-statement-and-sound/206421/1 "2006-11-08T01:29:41Z")

</div>

This code obviously isn’t right…I have a movie clip that either plays forwards or backwards with this actionscript at the start and at the end of the clip.  
Can someone point me in the right direction?

Thanks in advance!

var msound = new Sound();  
msound.attachSound(“mechwav”);  
if (msound = true) {  
msound.stop()  
} else {  
msound.start(0,1);  
}
