# Music plays on pc but not when uploaded

**URL:** <https://forum.kirupa.com/t/music-plays-on-pc-but-not-when-uploaded/218821>\
**Category:** flash\
**Created:** [March 11, 2007, 2:36pm UTC](https://forum.kirupa.com/t/music-plays-on-pc-but-not-when-uploaded/218821 "2007-03-11T14:36:12Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Pale\_September](https://avatars.discourse-cdn.com/v4/letter/p/73ab20/32.png) [@Pale\_September](https://forum.kirupa.com/u/Pale_September)\
**Post date:** [March 11, 2007, 2:36pm UTC](https://forum.kirupa.com/t/music-plays-on-pc-but-not-when-uploaded/218821/1 "2007-03-11T14:36:12Z")

</div>

Thank you for your assistance.  
I am new to Flash and my first project has been to build a simple ‘mp3 player’ in Flash8 that plays a song when the website is loaded with a button that will either stop or start the music depending on whether it is playing or not when the mouse is released.  
This seems to work fine when I test it on my machine…even when I import the swf file and play it through Dreamweaver but when I upload it to the net, the music doesn’t play.  
This is a test page of the website with the flash player:[http://www.marcogalli.net/index2.html](http://www.marcogalli.net/index2.html)

This is the actionscript code I have in the file.

```auto
var musicPlays:Boolean = false;
var loopTune:Sound = new Sound();
loopTune.onLoad = function(success:Boolean) {
if (success) {
loopTune.start(0, 999);
musicPlays = true;
_root.gotoAndStop("playing");
}
};
loopTune.loadSound("cooltune.mp3", false);
musicPlayer.playStop.onPress = function ():Void {
if (musicPlays) {
this.gotoAndStop("stopped");
loopTune.stop();
musicPlays = false;
} else {
this.gotoAndStop("playing");
loopTune.start(0, 999);
musicPlays = true;
}
};

```

Am I missing something obvious???  
Thanking you in anticipation =)
