Frame 30
stop();
Instance of Symbol 83 MovieClip in Frame 30
//component parameters
onClipEvent (construct) {
playlist = "audiolist.xml";
status = "Status: Loading";
playatstart = false;
playerlook = false;
StreamSignal = true;
}
Symbol 35 Button
on (press) {
rsig = 1;
}
on (release, releaseOutside) {
rsig = 0;
}
on (rollOver) {
status = _parent.status;
_parent.status = "Status: fastforward";
}
on (rollOut) {
_parent.status = status;
}
Symbol 37 Button
on (press) {
rsig = 1;
}
on (release, releaseOutside) {
rsig = 0;
}
on (rollOver) {
status = _parent.status;
_parent.status = "Status: fastbackward";
}
on (rollOut) {
_parent.status = status;
}
Symbol 41 Button
on (press) {
if (_parent.MySound) {
if (dClick(500)) {
this._x = rechts;
_parent.MySound.setVolume(100);
_parent.status = status;
}
startDrag ("", false, links, oben, rechts, unten);
ziehen = true;
}
}
on (release, releaseOutside) {
stopDrag();
ziehen = false;
}
on (rollOver) {
status = _parent.status;
_parent.status = "Status: Volume";
}
on (rollOut) {
_parent.status = status;
}
Symbol 65 Button
on (press) {
startDrag ("", false, x, oben, x, unten);
dragg = 1;
}
on (release, releaseOutside) {
stopDrag();
}
Symbol 66 MovieClip Frame 1
dragg = 0;
Symbol 68 Button
on (press) {
dragger.up = 1;
}
on (release, releaseOutside) {
dragger.up = 0;
}
Symbol 69 Button
on (press) {
dragger.down = 1;
}
on (release, releaseOutside) {
dragger.down = 0;
}
Symbol 70 MovieClip Frame 10
stop();
Instance of Symbol 66 MovieClip "unten" in Symbol 70 MovieClip Frame 10
onClipEvent (load) {
this._visible = 0;
}
Instance of Symbol 66 MovieClip "dragger" in Symbol 70 MovieClip Frame 10
onClipEvent (load) {
function bewegen() {
if (up || (stand == 1)) {
_y = (_y - (200 / this._parent._parent[this._parent.txtvar].maxscroll));
}
if (down || (stand == -1)) {
_y = (_y + (200 / this._parent._parent[this._parent.txtvar].maxscroll));
}
if (_y < oben) {
_y = oben;
}
if (_y > unten) {
_y = unten;
}
stand = _y - oben;
proz = int((stand * 100) / delta);
proz = proz / 100;
this._parent._parent[this._parent.txtvar].scroll = int(this._parent._parent[this._parent.txtvar].maxscroll * proz);
stand == 0;
}
up = 0;
down = 0;
oben = _y;
unten = _parent.unten._y;
delta = unten - oben;
}
onClipEvent (enterFrame) {
if (((dragg || (up == 1)) || (down == 1)) || (stand != 0)) {
bewegen();
}
if (this._parent._parent[this._parent.txtvar].maxscroll > 1) {
this._parent._visible = 1;
} else {
this._parent._visible = 0;
}
}
Symbol 73 MovieClip Frame 1
function playauswahl(pTitel) {
this._parent.playlistauswahl(pTitel);
}
Instance of Symbol 70 MovieClip in Symbol 73 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
txtvar = "playliste";
}
Symbol 83 MovieClip Frame 1
function ladeDaten(success) {
if (success) {
aPath = new Array();
songTitel = new Array();
songArtist = new Array();
songCover = new Array();
audioTracks = new Array();
audioTracks = this.firstChild.childNodes;
totalAudio = audioTracks.length;
var _local2 = 0;
while (_local2 < totalAudio) {
if (audioTracks[_local2].nodeName == "song") {
aPath.push(audioTracks[_local2].attributes.path);
songTitel.push(audioTracks[_local2].attributes.title);
songArtist.push(audioTracks[_local2].attributes.artist);
songCover.push(audioTracks[_local2].attributes.bild);
}
_local2++;
}
AudioPath = aPath[0];
titel = songTitel[0];
artist = songArtist[0];
aktAudio = 1;
trackAnzeige = (aktAudio + " / ") + totalAudio;
status = "Status: playlist - Loaded";
if (playerlook) {
setCover(0);
}
erstesBild = true;
setzeDirektwahl();
setzePlaylistwahl();
if (playatstart) {
playSong();
}
} else {
status = "Status: PlayList - Not loaded";
}
delete audioTracks;
delete data_xml;
}
function setCover(pNr) {
if ((_currentframe == 2) || (!erstesBild)) {
cover_mc.loadMovie(songCover[pNr], 1);
}
}
function ruck(diff) {
pausgabe = MySound.position - diff;
MySound.stop();
MySound.start(pausgabe / 1000, 0);
}
function vor(diff) {
pausgabe = MySound.position + diff;
MySound.stop();
MySound.start(pausgabe / 1000, 0);
}
function playSong() {
if (pauseSignal == true) {
MySound.start(pausePos, 0);
pauseSignal = false;
playSignal = true;
delete pausePos;
kugel_mc._visible = 1;
} else {
MySound = new Sound();
if (volstatus < volume) {
volume = volstatus;
} else if (volstatus > volume) {
volume = volstatus;
} else if (volstatus == 100) {
volume = 100;
}
if (balstatus < balance) {
balance = balstatus;
} else if (balstatus > balance) {
balance = balstatus;
} else if (balstatus == 0) {
balance = 0;
}
MySound.loadSound(AudioPath, StreamSignal);
MySound.setVolume(volume);
MySound.setPan(balance);
MySound.onSoundComplete = function () {
if (playrepeat) {
playSong();
} else {
nextTrack();
playSong();
}
};
volstatus = volume;
balstatus = balance;
pauseSignal = false;
playSignal = true;
wahlSignal = false;
_parent.onEnterFrame = function () {
total = MySound.getBytesTotal();
geladen = MySound.getBytesLoaded();
if (geladen != total) {
if ((geladen != undefined) && (total != undefined)) {
status = ("Status: " + Math.round((geladen * 100) / total)) + "% loaded";
}
mc._xscale = Math.round((geladen * 100) / total);
} else {
status = "Status: playing -100% Loaded";
delete _parent.onEnterFrame;
kugel_mc._visible = 1;
if (!StreamSignal) {
MySound.start(0, 0);
}
}
};
}
}
function nextTrack() {
if (aktAudio < totalAudio) {
aktAudio = aktAudio + 1;
AudioPath = aPath[aktAudio - 1];
titel = songTitel[aktAudio - 1];
artist = songArtist[aktAudio - 1];
MySound.stop();
playSignal = 0;
pauseSignal = 0;
wahlSignal = 1;
delete pausePos;
kugel_mc._visible = 0;
trackAnzeige = (aktAudio + " / ") + totalAudio;
status = "Status: stopped - press play";
setCover(aktAudio - 1);
}
}
function prevTrack() {
if (aktAudio > 1) {
aktAudio = aktAudio - 1;
AudioPath = aPath[aktAudio - 1];
titel = songTitel[aktAudio - 1];
artist = songArtist[aktAudio - 1];
MySound.stop();
playSignal = 0;
pauseSignal = 0;
wahlSignal = 1;
delete pausePos;
kugel_mc._visible = 0;
trackAnzeige = (aktAudio + " / ") + totalAudio;
status = "Status: stopped - press play";
setCover(aktAudio - 1);
}
}
function checkDigits(pWert) {
return(((pWert < 10) ? (pWert = "0" + pWert) : (pWert)));
}
function sBalken(obj) {
prozent = (_global.position * 100) / _global.dauer;
this[obj]._xscale = prozent;
prozent = parseInt(prozent) + "%";
}
function setzeDirektwahl() {
var _local2 = 1;
while (_local2 <= 12) {
this[("dw" + _local2) + "_btn"].nrtxt = _local2;
if (_local2 > totalAudio) {
this[("dw" + _local2) + "_btn"].nr_txt.text = "--";
}
_local2++;
}
}
function setzeAudiowahl(pAkt) {
aktAudio = pAkt;
AudioPath = aPath[aktAudio - 1];
titel = songTitel[aktAudio - 1];
artist = songArtist[aktAudio - 1];
MySound.stop();
playSignal = 0;
pauseSignal = 0;
wahlSignal = 1;
delete pausePos;
kugel_mc._visible = 0;
trackAnzeige = (aktAudio + " / ") + totalAudio;
status = "Status: stopped - press play";
setCover(aktAudio - 1);
playSong();
}
function setzePlaylistwahl() {
playauswahl.playliste = "";
var _local1 = 1;
while (_local1 <= aPath.length) {
playauswahl.playliste = playauswahl.playliste + (((((("<a href='asfunction:playauswahl," + _local1) + "'>") + _local1) + ". <u>") + songTitel[_local1 - 1].substr(0, 15)) + " ...</u></a><br>");
_local1++;
}
}
function playlistauswahl(pAkt) {
aktAudio = int(pAkt);
AudioPath = aPath[aktAudio - 1];
titel = songTitel[aktAudio - 1];
artist = songArtist[aktAudio - 1];
MySound.stop();
playSignal = 0;
pauseSignal = 0;
wahlSignal = 1;
delete pausePos;
kugel_mc._visible = 0;
trackAnzeige = (aktAudio + " / ") + totalAudio;
status = "Status: stopped - press play";
setCover(aktAudio - 1);
playSong();
}
data_xml = new XML();
data_xml.ignoreWhite = true;
data_xml.onLoad = ladeDaten;
data_xml.load(playlist);
volume = 100;
balance = 0;
play_btn.onRelease = function () {
playSong();
};
play_btn.onRollOver = function () {
status = "Status: load / play song";
};
play_btn.onRollOut = function () {
status = (playSignal ? ((status = "Status: playing")) : ((status = "Status: stopped")));
};
stop_btn.onRelease = function () {
MySound.stop();
playSignal = 0;
delete pausePos;
kugel_mc._visible = 0;
};
stop_btn.onRollOver = function () {
status = "Status: stop playing";
};
stop_btn.onRollOut = function () {
status = ((!playSignal) ? ((status = "Status: stopped")) : ((status = "Status: playing")));
};
pause_btn.onRelease = function () {
if (!wahlSignal) {
pausePos = MySound.position / 1000;
MySound.stop();
pauseSignal = true;
playSignal = false;
kugel_mc._visible = 0;
status = "Status: press play";
}
};
pause_btn.onRollOver = function () {
status = ((!pauseSignal) ? ((status = "Status: pause playing")) : ((status = "Status: press play")));
};
pause_btn.onRollOut = function () {
status = ((!playSignal) ? ((status = "Status: stopped")) : ((status = "Status: playing")));
};
next_btn.onRelease = function () {
if (aktAudio < totalAudio) {
nextTrack();
playSong();
}
};
next_btn.onRollOver = function () {
dstatus = status;
status = "Status: load next song";
};
next_btn.onRollOut = function () {
if (status != "Status: stopped - press play") {
status = dstatus;
}
};
prev_btn.onRelease = function () {
if (aktAudio > 1) {
prevTrack();
playSong();
}
};
prev_btn.onRollOver = function () {
dstatus = status;
status = "Status: load prev song";
};
prev_btn.onRollOut = function () {
if (status != "Status: stopped - press play") {
status = dstatus;
}
};
zeit_btn.onRelease = function () {
zeitSignal = !zeitSignal;
};
zeit_btn.onRollOver = function () {
dstatus = status;
status = ("Status: Total / " + t_TrackZeit.total) + " - switch timedisplay ";
};
zeit_btn.onRollOut = function () {
status = dstatus;
};
drag_btn.onPress = function () {
startDrag (this._parent);
};
drag_btn.onRelease = (drag_btn.onReleaseOutside = function () {
stopDrag();
});
drag_btn.onRollOver = function () {
dstatus = status;
status = "Status: drag 'n' drop";
};
drag_btn.onRollOut = function () {
status = dstatus;
};
look_btn.onPress = function () {
if (_currentframe == 2) {
cover_mc._visible = 0;
gotoAndStop (3);
} else {
cover_mc._visible = 1;
gotoAndStop (2);
setzeDirektwahl();
setzePlaylistwahl();
setCover(aktAudio - 1);
}
};
look_btn.onRollOver = function () {
dstatus = status;
status = "Status: change look - simple/extended";
};
look_btn.onRollOut = function () {
status = dstatus;
};
fslogo_btn.onPress = function () {
fslogo_mc._visible = !fslogo_mc._visible;
};
fslogo_btn.onRollOver = function () {
dstatus = status;
status = "Status: player - credits";
};
fslogo_btn.onRollOut = function () {
status = dstatus;
};
fslogo_mc._visible = 0;
fslogo_mc.onRelease = function () {
getURL ("http://www.flashstar.de", "_blank");
};
kugel_mc._visible = 0;
onEnterFrame = function () {
_global.dauer = int(MySound.duration / 1000);
_global.position = int(MySound.position / 1000);
t_TrackZeit = {};
t_TrackZeit.minutes = int(_global.dauer / 60);
t_TrackZeit.seconds = int(_global.dauer % 60);
t_TrackZeit.total = (checkDigits(t_TrackZeit.minutes) + ":") + checkDigits(t_TrackZeit.seconds);
b_TrackZeit = {};
b_TrackZeit.minutes = int(_global.position / 60);
b_TrackZeit.seconds = int(_global.position % 60);
b_TrackZeit.total = (checkDigits(b_TrackZeit.minutes) + ":") + checkDigits(b_TrackZeit.seconds);
n_TrackZeit = {};
n_TrackZeit.minutes = int((_global.dauer - _global.position) / 60);
n_TrackZeit.seconds = int((_global.dauer - _global.position) % 60);
n_TrackZeit.total = (checkDigits(n_TrackZeit.minutes) + ":") + checkDigits(n_TrackZeit.seconds);
sBalken("smc");
if (zeitSignal) {
display = n_TrackZeit.total;
} else {
display = b_TrackZeit.total;
}
if (trackDrag != true) {
regler_mc._x = (MySound.position / MySound.duration) * sliderMax;
}
};
MovieClip.prototype.dClick = function (tempo) {
ASSetPropFlags(this, ["clickZeit"], 1);
if (((this.clickZeit - ((this.clickZeit = getTimer()))) + tempo) > 0) {
return(true);
}
};
if (!playerlook) {
gotoAndStop (3);
}
trackDrag = false;
sliderMax = bigdisplay_mc._width;
regler_mc.onPress = function () {
if (this._parent.MySound) {
trackDrag = true;
startDrag (this, false, 0, this._y, sliderMax, this._y);
this._parent.onMouseMove = function () {
updateAfterEvent();
};
}
};
regler_mc.onRelease = (regler_mc.onReleaseOutside = function () {
if (this._parent.MySound) {
trackDrag = false;
delete this._parent.onMouseMove;
stopDrag();
neuePosition = (this._x * (MySound.duration / 1000)) / sliderMax;
pausePos = neuePosition;
MySound.stop();
MySound.start(neuePosition, 0);
kugel_mc._visible = 1;
status = "Status: playing";
dstatus = status;
playSignal = true;
pauseSignal = false;
}
});
regler_mc.onRollOver = function () {
dstatus = status;
status = "Status: Drag Slider";
};
regler_mc.onRollOut = function () {
status = dstatus;
};
repeat_mc._visible = 0;
repeat_btn.onRelease = function () {
playrepeat = !playrepeat;
repeat_mc._visible = playrepeat;
};
repeat_btn.onRollOver = function () {
dstatus = status;
status = "Status: repeat track";
};
repeat_btn.onRollOut = function () {
status = dstatus;
};
Instance of Symbol 36 MovieClip "svor_mc" in Symbol 83 MovieClip Frame 1
onClipEvent (enterFrame) {
if (((rsig == 1) && (_parent.playSignal)) && ((_parent.MySound.position + 500) < _parent.MySound.duration)) {
_parent.vor(500);
}
}
Instance of Symbol 38 MovieClip "sback_mc" in Symbol 83 MovieClip Frame 1
onClipEvent (enterFrame) {
if ((rsig == 1) && (_parent.playSignal)) {
_parent.ruck(500);
}
}
Instance of Symbol 42 MovieClip in Symbol 83 MovieClip Frame 1
onClipEvent (load) {
oben = _y;
rechts = _x;
links = _x - 100;
unten = _y;
if (!_parent.volstatus) {
_parent.volstatus = _parent.MySound.getVolume();
}
_parent.volstatus = "";
}
onClipEvent (enterFrame) {
if ((ziehen == true) && (_parent.MySound)) {
_parent.MySound.setVolume(100 - (rechts - _x));
_parent.volstatus = _parent.MySound.getVolume();
_parent.kugel_mc._yscale = _parent.MySound.getVolume();
}
}
Symbol 83 MovieClip Frame 2
stop();
Instance of Symbol 36 MovieClip "svor_mc" in Symbol 83 MovieClip Frame 3
onClipEvent (enterFrame) {
if (((rsig == 1) && (_parent.playSignal)) && ((_parent.MySound.position + 500) < _parent.MySound.duration)) {
_parent.vor(500);
}
}
Instance of Symbol 38 MovieClip "sback_mc" in Symbol 83 MovieClip Frame 3
onClipEvent (enterFrame) {
if ((rsig == 1) && (_parent.playSignal)) {
_parent.ruck(500);
}
}
Instance of Symbol 42 MovieClip in Symbol 83 MovieClip Frame 3
onClipEvent (load) {
oben = _y;
rechts = _x;
links = _x - 100;
unten = _y;
if (!_parent.volstatus) {
_parent.volstatus = _parent.MySound.getVolume();
}
_parent.volstatus = "";
}
onClipEvent (enterFrame) {
if ((ziehen == true) && (_parent.MySound)) {
_parent.MySound.setVolume(100 - (rechts - _x));
_parent.volstatus = _parent.MySound.getVolume();
_parent.kugel_mc._yscale = _parent.MySound.getVolume();
}
}