City University of London - Online Radio
City University of London Online Radio Station

CUL Radio
I was on the team to create and install an online radio station for the City University. I helped with the interface design and the middleware of the radio. Most of my work was connecting the database that had the songs on it to the radio flash application. I gained most of my XML and all of my FMS skills through this project
I used shared objects in the FMS for sharing states of each sidebar. I had a shared object for the chat toggle switch, poll numbers, song title that was currently playing, and the current song object sent to each radio listener.
poll_so = SharedObject.getRemote("Poll", _root.nc.uri, true);
my_so = SharedObject.getRemote("ChatToggler", _root.nc.uri);
songTitle_so = SharedObject.getRemote("SongTitle", _root.nc.uri);
curSong_so = SharedObject.getRemote("CurrentSongObject", _root.nc.uri);
When the DJ wants the chat to open he can click the toggle button and turn it on.
chatToggle_btn.onRelease = function () {
if (my_so.data.yes) {
chatToggle_btn.setLabel("Start Chat");
my_so.data.yes = false;
} else {
chatToggle_btn.setLabel("End Chat");
my_so.data.yes = true;
}
}
When the poll of the song is rated by each listener the poll updates for everyone.
poll_so.data.yes = songArray[songIndex1].voteYesCount;
poll_so.data.no = songArray[songIndex1].voteNoCount;
remember to connect the shared object to the FMS
my_so.connect(_root.nc);
Tags: CUL, online radio, UWSP