init(s)
private function init():void
{
start = new Date("1/1/2000");
timeDisplayFormatter = new DateFormatter();
this.myVideoDisplay.addEventListener(VideoEvent.READY, videoReady);
this.myVideoDisplay.addEventListener(VideoEvent.PLAYHEAD_UPDATE, updateTimeDisplay);
this.myVideoDisplay.addEventListener(VideoEvent.COMPLETE, videoComplete);
this.btn_next.addEventListener(MouseEvent.CLICK, playlistControlsHandler);
this.btn_previous.addEventListener(MouseEvent.CLICK, playlistControlsHandler);
this.btn_playToggle.addEventListener(MouseEvent.CLICK, togglePlayback);
this.btn_stop.addEventListener(MouseEvent.CLICK, stopPlayback);
loadPlaylist();
}
This method loads the playlist xml file.