PDA

View Full Version : Free Flash mp3 Player as CMS widget?


MichelangeloITA
03-07-2010, 02:51 PM
Hello,

I managed to put a "Free Flash mp3 Player" as CMS widget, but something went wrong, I've followed exactly what they say in official site http://www.premiumbeat.com/flash_resources/free_flash_music_player/single_track_flash_mp3_player.php

What I've done is:
uploaded playerSingle.swf and swfobject.js to my server (into "Music Player" folder) => changed so.addVariable("soundPath", "song.mp3"); to so.addVariable("soundPath", "var/www/music player/mysong.mp3");

then I:
created a new widget (static html) => add the embed code I got <script type="text/javascript">
var so = new SWFObject("playerSingle.swf", "mymovie", "192", "67", "7", "#FFFFFF");
so.addVariable("autoPlay", "no");
so.addVariable("soundPath", "var/www/music player/mysong.mp3");
so.write("flashPlayer");
</script>

Nothing happened, what's wrong with it? :D

It would be very useful for me, plaese help!!

Thank you in advance ;)

mandingo
03-07-2010, 02:56 PM
Hello,

I managed to put a "Free Flash mp3 Player" as CMS widget, but something went wrong, I've followed exactly what they say in official site http://www.premiumbeat.com/flash_resources/free_flash_music_player/single_track_flash_mp3_player.php

What I've done is:
uploaded playerSingle.swf and swfobject.js to my server (into "Music Player" folder) => changed so.addVariable("soundPath", "song.mp3"); to so.addVariable("soundPath", "var/www/music player/mysong.mp3");

then I:
created a new widget (static html) => add the embed code I got <script type="text/javascript">
var so = new SWFObject("playerSingle.swf", "mymovie", "192", "67", "7", "#FFFFFF");
so.addVariable("autoPlay", "no");
so.addVariable("soundPath", "var/www/music player/mysong.mp3");
so.write("flashPlayer");
</script>

Nothing happened, what's wrong with it? :D

It would be very useful for me, plaese help!!

Thank you in advance ;)
Likely your problem is you put the path to the mp3:
uploaded playerSingle.swf and swfobject.js to my server (into "Music Player" folder) => changed so.addVariable("soundPath", "song.mp3"); to so.addVariable("soundPath", "var/www/music player/mysong.mp3");
When (I assume) you would put the url to it instead:
http://yoursite.com/music player/song.mp3
or even
/music player/song.mp3

might want to be careful with that music player directory name as well as it has a space in it,might want to change it to
musicplayer or music_player

let me know if any of this helps.

MichelangeloITA
03-07-2010, 06:12 PM
mandingo solved my issue, now it works :D

Thank you veeeeery much.

If you want the same thing, just copy this code

<script type="text/javascript" src="/yourfolder/swfobject.js"></script>

<div id="flashPlayer">
</div>

<script type="text/javascript">
var so = new SWFObject("/yourfolder/playerSingle.swf", "mymovie", "192", "67", "7", "#FFFFFF");
so.addVariable("autoPlay", "no");
so.addVariable("soundPath", "http://yoursite.com/yourfolder/yoursong.mp3");
so.write("flashPlayer");
</script>

Please edit the path's in bold ;)