# Not loading mp3

**URL:** https://forum.kirupa.com/t/not-loading-mp3/136380
**Category:** Uncategorized
**Created:** [February 4, 2005, 8:19am UTC](https://forum.kirupa.com/t/not-loading-mp3/136380 "2005-02-04T08:19:50Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![lacluna](https://avatars.discourse-cdn.com/v4/letter/l/bc79bd/32.png) [@lacluna](https://forum.kirupa.com/u/lacluna)
#### Post date: [February 4, 2005, 8:19am UTC](https://forum.kirupa.com/t/not-loading-mp3/136380/1 "2005-02-04T08:19:50Z")

</div>

Hi guys. I put the following actionscript on my first frame so I can get an mp3 to play. It does when I preview the movie (Ctrl + Enter) but it doesn’t when I publish it as an htm. Help! The file name is: triste.mp3

//Load Streaming mp3 behavior  
if(\_global.Behaviors == null)\_global.Behaviors = {};  
if(\_global.Behaviors.Sound == null)\_global.Behaviors.Sound = {};  
if(typeof this.createEmptyMovieClip == ‘undefined’){  
this.\_parent.createEmptyMovieClip(‘BS\_triste’,new Date().getTime()-(Math.floor((new Date().getTime()) /10000)\*10000) );  
\_global.Behaviors.Sound.triste = new Sound(this.\_parent.BS\_triste);  
} else {  
this.createEmptyMovieClip(‘_triste_’,new Date().getTime()-(Math.floor((new Date().getTime()) /10000)\*10000) );  
\_global.Behaviors.Sound.triste = new Sound(this.BS\_triste);  
}  
\_global.Behaviors.Sound.triste.loadSound(“triste.mp3”,true);
