# External MP3 in external SWF

**URL:** https://forum.kirupa.com/t/external-mp3-in-external-swf/132841
**Category:** Uncategorized
**Created:** [January 2, 2005, 6:23pm UTC](https://forum.kirupa.com/t/external-mp3-in-external-swf/132841 "2005-01-02T18:23:41Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![dalyboy](https://avatars.discourse-cdn.com/v4/letter/d/dbc845/32.png) [@dalyboy](https://forum.kirupa.com/u/dalyboy)
#### Post date: [January 2, 2005, 6:23pm UTC](https://forum.kirupa.com/t/external-mp3-in-external-swf/132841/1 "2005-01-02T18:23:41Z")

</div>

Hi,

I’ve noticed many people with similar problems but I can’t find a definate answer.

I have a main\_movie.swf which acts as the menu and main window system for my site. main\_movie loads other section of the site which are external swf’s. One of my sections is called media (media.swf).

In media I want to play a mp3 track, I’ve declared as a sound abject like this:

// in layer sound objects on main timeline: frame 1  
x = new Sound();

accessed using button (in media) like this:

on (press) {  
//Play Button  
if (playing!=true) {  
\_root.x.loadSound(“slow.mp3”, true);  
playing=true;  
}

this works fine when I test the media.swf on its own, but when it is called from main\_movie.swf i hear nothing when I press the play button. I also have a menu button in media.swf with an event sound for the ‘over’ state which works perfectly in both cases.

Anybody know what i’m doing wrong here. I like the idea of loading externally as it keeps the file size of the swf small. I’ve read about exporting the library and couldn’t figure that out either but I wouldn’t that make my file’s kinda big anyway?

any help is appreciated

i’m using mx2004 but i’m saving as FlashMX for compatibility

dalyboy
