Mp3Jukbox Reference Manual

So you want to know how this mess works, eh? Alright, here are the public functions that are built into my Mp3Jukebox class. Realize that both the class and this documentation are still in beta alpha. That means that some things aren't done yet, some things aren't added yet, some things are cheap workarounds and some things just plain don't work.

If you have any questions about how something works or have noticed something going horribly wrong, just drop me an email and we'll see what can be done. I'll be doing my best to update and finish this thing before the new year but you never know what can happen.

Public Functions

Mp3Jukebox - class constructor
initLayout - initialize the layout functions
setSize - set the size and base color the player
moveTo - move the location of the player on the stage
makePlaylist - turn loaded XML list into local array
loadSongs - loads XML playlist
play - plays current song
jumpTo - jumps to certain time in current song
pause - pauses current song
stop - stops current song
nextSong - jumps to next song in playlist
prevSong - jumps to previous song in playlist
setSongVolume - sets volume level

To-Do list

Reimpliment the loader scrollbar/clip
Add PHP uploader/XML constructor
   - PHP uploader class completed, just need to read song's length and create proper XML
Use SharedObjects to save settings for volume, songs, anything else that seems fun
Write more elegant/flexible XML interpreter
Read ID3 tags (code there, just not implemented)
Find more elegant way to judge connection speed
Fix volume slider from per-song to global
Fix volume problem where if volume is set while constructing player, set volume becomes max volume
Make more elegant way of finding and displaying song time
Make a function to pick which buttons you want displayed and arrange them in a certain location, spaced evenly
Add option to load your own buttons from the library
setSize only uses _xscale and _yscale to resize, not actually redraw
   - setSize is being completely re-written. Or being written for the first time, depending on how you look at it.
Slider bar goes past outline's size
Slider bar loses position as the song loads
Slider and jump time functions not disabled on 56K
Add scrolling text to title bar area
Add randomize/shuffle feature
Add visible playlist (with drag-n-drop sorting?)
Clean up pause() returned positioning
Change nextSong and prevSong to shift and pop array elements
User-accessable and adjustable refresh times (scroll bars, etc)
...and lastly, but not leastly (but slightly beastly)
Decent error reporting. Ouch.


Home

Public Functions