NOTE: Location of your mp3's.
When calling mp3 files from another website such as myspace your mp3 paths need to be absolute.
IE. you have to set in your config.xml the exact locations of your mp3:
<song url="http://earthacademy.org/nanobot/mp3/ANTIMATTERMAN_Manipulator.mp3" />
|In our NANOBOT player HTML (e.g EAR_NanoBot.htm) we use 2 custom values: dn and cp |
dn = domain name : e.g. www.yourwebsite.com
cp = config path : where the "config.xml" (mp3 playlist) is located.
This is the line to edit for your own uses (e.g look in "EAR_NanoBot.htm")
This is saying that your domain (dn) = www.yourwebsite.com
and the location of your mp3 playlist ("config.xml") is located at: www.yourwebsite.com/myfolder
In our example:
To choose the type of Nanobot player you want to use, edit the first line of code:
To change the size of Nanobot player you want to use, edit the second line of code:
width="500" height="200" align="middle" bgcolor="Transparent"
FLASH has in-built security constraints, so if you want to place your NANOBOT player on MYSPACE or on different locations around the internet, you need a crossdomain.xml file placed at the root of your website, which allows MYSPACE to access your mp3s & playlist info (your config.xml).