# Looping swf sound Problem

**URL:** https://forum.kirupa.com/t/looping-swf-sound-problem/149937
**Category:** flash
**Created:** [June 2, 2005, 11:58am UTC](https://forum.kirupa.com/t/looping-swf-sound-problem/149937 "2005-06-02T11:58:23Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![appman](https://avatars.discourse-cdn.com/v4/letter/a/e9a140/32.png) [@appman](https://forum.kirupa.com/u/appman)
#### Post date: [June 2, 2005, 11:58am UTC](https://forum.kirupa.com/t/looping-swf-sound-problem/149937/1 "2005-06-02T11:58:23Z")

</div>

bart.\_visible = false;  
eq111.\_visible = false;  
\_root.vid.eq11.\_visible = false;  
tr1.\_visible = false;  
tr2.\_visible = false;  
this.createEmptyMovieClip(“container”, 10);  
my\_mc = new MovieClipLoader();  
preload = new Object();  
my\_mc.addListener(preload);  
preload.onLoadStart = function(targetMC) {  
trace("started loading "+targetMC);  
container.\_visible = true;  
bart.\_visible = true;  
pTText.\_visible = true;  
eq111.\_visible = true;  
};  
preload.onLoadProgress = function(targetMC, lBytes, tBytes) {  
bart.\_width = (lBytes/tBytes)\*100;  
pTText.text = “% “+Math.round((lBytes/tBytes)\*100);  
};  
preload.onLoadComplete = function(targetMC) {  
container.\_visible = true;  
bart.\_visible = false;  
pTText.\_visible = false;  
trace(targetMC+” finished”);  
};  
//buttons  
but1.onPress = function() {  
tr1.\_visible = true;  
tr2.\_visible = false;  
\_root.vid.eq11.\_visible = false;  
my\_mc.loadClip(“http:xxxxxxxx”, “container”);  
container.\_x = 93;  
container.\_y = -48;  
};  
but2.onPress = function() {  
\_root.vid.eq11.\_visible = false;  
tr1.\_visible = true;  
tr2.\_visible = false;  
my\_mc.loadClip(“http:xxxxxxxxx”, “container”);  
container.\_x = 93;  
container.\_y = -48;  
};  
but3.onPress = function() {  
tr1.\_visible = false;  
tr2.\_visible = false;  
stopallsounds;  
};  
but4.onPress = function() {  
\_root.vid.eq11.\_visible = false;  
tr1.\_visible = false;  
tr2.\_visible = true;  
my\_mc.loadClip(“http:xxxxxxxx”, “container”);  
container.\_x = 92;  
container.\_y = -48;  
};

Above is my code I am preloading swf sound file which in turn plays once then stops now when I preload movie with the same method that loops no problem. Can I get it to loop with the sound swf and how I do this in the above code or do I need a work around like gotoplay 1 in the preloaded swf files…

PLease help

Regards…
