Help File

Setting up your Dynamic MP3 Player

Follow these simple steps to set up your Dynamic MP3 Player.

  1. Organize your .mp3's into folders that will represent the album for the songs. The .mp3 file names must not include apostrophes.
  2. If you would like to set the order of how your songs will show up, put 'true' in the SORT_ORDER tag within the xml, and then put the order # and a period before the name of your songs:
    • 1.mysong.mp3
    • 2.anothersong.mp3
    • 3.thirdsong.mp3
  3. This will allow you to set the order of your songs no matter which folder they are in.
  4. Create an 80 x 80 pixel thumbnail (must be a .jpg) for each folder, which will represent the album's thumbnail image. Save the thumbnail into it's corresponding folder of .mp3s.
  5. Drag your folders into the 'songs' folder. All .mp3's must be contained within a subfolder of the 'songs' folder.
  6. Open the supplied .fla file to set your player dimensions and password. (The supplied .fla will already have the Dynamic MP3 Player on the stage).
  7. Resize and position the player by using the Properties window or by just clicking and draggin a corner. The objects within the player may look distorted after you resize, but the code within the player will rearrange everything automatically so it looks right when published.
  8. If you will be using the player as just a part of an .html file (Like my example on FlashDen), or as an externally loaded .swf, set the stage dimensions to be the same size as the MovieClip and position the movie clip at x=0, y=0 on the stage. (You may have to adjust the width of the player to be 1 pixel thinner than the stage size).
  9. Double-Click on the Dynamic MP3 Player movie clip to open it up.
  10. Select frame 1 of the 'a' layer in the timeline and open the Actions Panel.
  11. On line #36 in the ActionScript code set the password to whatever you would like. Remeber that the password is case-sensitive.
  12. There is no need to change anything else within the .fla unless you want to further costomize the file.
  13. Go to File>Publish Settings... and set your desired publish settings.
  14. Publish your .swf.
  15. Next, upload all of the following files/folders to your site into a single directory:
    • MP3Player.swf
    • mp3_player.xml
    • index.html
    • AC_RunActiveContent.js
    • The 'songs' folder, which should include all of your .mp3 files and thumbnails
    • The 'php' folder, which contains the .php files needed to access your .mp3's and their corresponding ID3 tags. There will be quite a few .php files within this folder. I have used Open Source php scripts called getID3() by James Heinrich. More information about this can be found below.
  16. Next, open the mp3_player.xml file on your computer and set the absolute path to the folder containing the php files on your site within the PHP_PATH tags.
  17. Re-upload the .xml file (now that you have the correct .php path set).
  18. You should now be able to view your Dynamic MP3 Player online!

The .xml file

Other useful information

If you are dragging the main movie clip into another .fla file, make sure you copy all of the contents within the supplied .fla's library and paste them into your new .fla. If you do not do this, some of the needed assets will not be available in your new .fla and the file will not work properly.

Also, be sure to copy the 'caurina' folder to the new destinations if you will be publishing the new .swf from a different directory. This file accessess classes from that folder, if it is not available for flash to access, it will not publish correctly.

Error codes

Error codes will show up in the 'Title' field for each song if one is reported. The following list describes each error code.

getID3() PHP Classes

I have used the 'getID3()' .php classes created by James Heinrich, which I am able to use according to the GNU GENERAL PUBLIC LICENSE.

The classes that I have used are all contained within the 'getid3' folder within the 'php' folder. These classes are open for anyone to use as long as you follow the guidelines in the licensing.

Note: The .php files called: 'collectSongs.php', 'getSongID3.php', and 'writeSongID3.php' that are located at the root level of the 'php' folder where all written by myself to access the getID3 classes. These files are not OpenSource and may not be resold or used as part of another product.

I have not included all of the files that came with the download. If you would like, you can access all of the source files at:

http://getid3.sourceforge.net

Here is the link to the licensing code:

http://getid3.sourceforge.net/license.txt

This file uses Caurana Tweener

Documentation for Tweener can be found at http://code.google.com/p/tweener/

Licensing for Tweener can be found at http://www.opensource.org/licenses/mit-license.php

 

Licensing notice for Caurina Tweener

The MIT License

Copyright (c)

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.