Ich habe folgendes Problem:
Ich habe eine Flashseite mit Hintergrundmusik erstellt. Nun läuft offline auch alles wunderbar, nur online eben nicht. Am Preloader liegt es nicht ! Ich hoffe Ihr habt noch eine Idee was ich tun kann, meine Ideen gehen langsam aus. Es folgt der Action Script Quelltext. Vielen Dank schonmal im vorraus.

Code :
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
/*---------------------------------SOUNDSTEUERUNG-----------------------------------------*/
 
soundObj = new Sound();
soundObj.attachSound("lounge");
soundObj.start();
 
_play = 1;// = true
 
soundObj.setVolume(100);// 0 = aus --- 100 = voll
soundObj.onSoundComplete = function() {
    soundObj.start();
};
 
songLength_txt.text = soundObj.duration/1000+" sec";
 
function abspielen() {
    onEnterFrame = function () {
        aktuellePosition_txt.text = soundObj.position/1000;
    };
 
 
    if (!_play) {
        if (soundObj.position == soundObj.duration) {
            soundObj.start();
        } else {
            soundObj.start(_pause);
        }
        _play = 1;
    }
}
abspielen();
 
function pauseFunc() {
    delete onEnterFrame;
    _play = 0;
    _pause = soundObj.position/1000;
    soundObj.stop();
 
}
 
btn_stop.onPress = pauseFunc;
btn_play.onPress = abspielen;