Hi all,
I recently made an mp3 player in Flash MX using an online tutorial somewhere on the web. However, I wanted to put this player in a webpage that is entirely flash using 3dfa. When the player stands alone on a basic html page, it works just fine. But when I insert the mp3 player .swf object into 3dfa, and then export the site with it included, it doesn't work at all. The player interface shows up just fine, but it does not stream the music files. I've attached a copy of the music player and the xml playlist file (sorry, I'm not including the songs because they are big files). But when working correctly, the message box on the player should display "LOADING...", reguardless if the music files are there or not. So with my basic understanding, I'm thinking when the flash file is embedded within 3dfa, it does not stream the files.
Any ideas or suggestions how to fix this?
Btw, feel free to use or modify the player for yourself.
I guessing you may have refered to _root somewhere in that player eh? If so you need to change that to the relevant level probably _parent if it's one level above. If you refer to _root the loaded movie will see the 3dfa generated movie as _root.
Code:
Yep took a peek in your code and lines like
_root.createEmptyMovieClip('sound_mc', 1);
_root.sound_mc.sound_obj = new Sound();
_global.song_nr = random(songfile.length);
_root.sound_mc.songStarter(songfile[song_nr], songname[song_nr]);
you need to change all _root to _parent and it should work as a loaded swf
EDIT: Actually I thought it worked, but now it doesn't. I changed all the _root to _parent, but now it seems like the 3dfa object which the player is embedded is now taking a really long time to load, and then when it does, the player dissapears. It can be seen for a brief second.