# \[F8\] logic script for sound play button, please help m(\_ \_)m

**URL:** https://forum.kirupa.com/t/f8-logic-script-for-sound-play-button-please-help-m-----m/171104
**Category:** flash
**Created:** [December 1, 2005, 9:27pm UTC](https://forum.kirupa.com/t/f8-logic-script-for-sound-play-button-please-help-m-----m/171104 "2005-12-01T21:27:34Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![freya](https://avatars.discourse-cdn.com/v4/letter/f/a9a28c/32.png) [@freya](https://forum.kirupa.com/u/freya)
#### Post date: [December 1, 2005, 9:27pm UTC](https://forum.kirupa.com/t/f8-logic-script-for-sound-play-button-please-help-m-----m/171104/1 "2005-12-01T21:27:34Z")

</div>

now i need senior help with logic script, first sorry if i asking newbie question, but i am really sucks on proggraming, so please help me

on (release) {  
my\_sound.start(mmpos/1000);  
my\_sound.onSoundComplete = function() {  
my\_sound.setVolume(20);  
my\_sound.start(0, 999);  
}  
}

here my play button  
i make the button looping because the sound placed on a frame  
\<due preloader problem, i need to place sound on a frame, i got the tutorial from [http://actionscripts.org/tutorials/intermediate/sounds\_and\_preloaders/index.shtml](http://actionscripts.org/tutorials/intermediate/sounds_and_preloaders/index.shtml)\>

## current this play button keep starting new sound even the first sound haven’t complete [stacking], so i want to make the play button ignore play if the sound is on

## if my\_sound = on then do nothing … something like that ^^

please help me ^^;  
thank you very much!!
