# Loading mp3 before playing my movie clip

**URL:** https://forum.kirupa.com/t/loading-mp3-before-playing-my-movie-clip/142629
**Category:** Uncategorized
**Created:** [March 30, 2005, 11:03am UTC](https://forum.kirupa.com/t/loading-mp3-before-playing-my-movie-clip/142629 "2005-03-30T11:03:13Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![interfan](https://avatars.discourse-cdn.com/v4/letter/i/cab0a1/32.png) [@interfan](https://forum.kirupa.com/u/interfan)
#### Post date: [March 30, 2005, 11:03am UTC](https://forum.kirupa.com/t/loading-mp3-before-playing-my-movie-clip/142629/1 "2005-03-30T11:03:13Z")

</div>

[size=1]Hi![/size]  
[size=1]I’m trying to load an external mp3 into my swf and then get my movie clip to play once the mp3 is fully loaded.[/size]

[size=1]This is the code I have in my first frame:[/size]  
[size=1]stop();  
cyfan = new Sound(this);  
cyfan.onLoad = function(true) {  
if (true) {  
\_root.loader.gotoAndPlay(2);  
}  
};  
cyfan.loadSound(“lle\_llwyd.mp3”);[/size]

[size=1]Then in the first frame of my movie clip (“loader”) I’ve put:[/size]  
[size=1]stop(); (cos I don’t want this to play until the mp3 has loaded) [/size]

[size=1]and then on the second frame:[/size]  
[size=1]\_root.cyfan.start(0, 1);  
\_root.cyfan.setVolume(100);  
\_root.cyfan.onSoundComplete = function() {  
stop();  
stopAllSounds();  
\_root.gotoAndPlay(3);  
};[/size]

[size=1]Does this make sense?![/size]  
[size=1]Grateful for any help as I’m now getting annoyed that I can’t do it!![/size]  
[size=1]Thanks[/size]
