Zurück   Flashforum > Flash > ActionScript > ActionScript 1

Antwort
 
LinkBack Themen-Optionen Ansicht
Alt 11-09-2003, 14:54   #1 (permalink)
Neuer User
 
Registriert seit: Aug 2003
Ort: -
Beiträge: 11
external sound - wenn fertig, zum nächsten...

Kann mir jemand helfen ?

Ich hab eine Jukebox mit externen mp3's. soweit noch alles normal. Doch ich möchte, dass wenn das erste mp3 fertig abgespielt wurde, gleich das nächste geladen wird. und immer weiter so...

ich habs so probiert (funktioniert aber nicht...) :

ActionScript:
  1. function sBalken(obj,spobj) {
  2.     dauer= this[spobj].duration;
  3.     pos= this[spobj].position;
  4.     prozent = pos*100/dauer;
  5.     this[obj]._xscale = prozent;
  6.     prozent = parseInt(prozent)+"%";
  7.     hulu = parseInt(prozent);
  8.    
  9.     if (hulu == "100") {
  10.        
  11.  
  12.     if (title<anz) {
  13.         msound.stop();
  14.         title = title+1;
  15.     } else {
  16.         msound.stop();
  17.         title = 1;
  18.     }
  19.        
  20.     song = "mp3_"+title+".mp3";
  21.     msound = new Sound();
  22.     msound.setVolume(100);
  23.     // initial Volume
  24.     msound.onLoad = msound.start();
  25.     msound.loadSound(url+song, true);
  26.     mSound.onSoundComplete = function() {
  27.         mSound.start();
  28.     }
  29.  
  30.     // Display
  31.     //Track-Nr
  32.     check="SONG: 0"+title;
  33.     }
  34.    
  35. }

dies sollte eigentlich bewirken, dass wenn der playstatus (in prozent) == 100 ist, dass dann das nächste mp3 geladen wird.

Bin für jede Hilfe sehr dankbar...
Pushi
pushi ist offline   Mit Zitat antworten
Alt 11-09-2003, 16:23   #2 (permalink)
Revived @ Sunday
 
Benutzerbild von MacEvil
 
Registriert seit: Apr 2003
Ort: Nowhereland
Beiträge: 3.244
ActionScript:
  1. if (_root.sound.position == _root.sound.duration || _root.sound.positon > _root.sound.duration/100*99) {
  2. _root.sound.loadSound("zweitersong.mp3");
  3. }
MacEvil ist offline   Mit Zitat antworten
Antwort

Lesezeichen

Themen-Optionen
Ansicht

Forumregeln
Es ist Ihnen nicht erlaubt, neue Themen zu verfassen.
Es ist Ihnen nicht erlaubt, auf Beiträge zu antworten.
Es ist Ihnen nicht erlaubt, Anhänge hochzuladen.
Es ist Ihnen nicht erlaubt, Ihre Beiträge zu bearbeiten.

BB-Code ist an.
Smileys sind an.
[IMG] Code ist an.
HTML-Code ist aus.
Trackbacks sind an
Pingbacks sind an
Refbacks sind an



Alle Zeitangaben in WEZ +1. Es ist jetzt 08:47 Uhr.

Domains, Webhosting & Vserver von Host Europe
Unterstützt das Flashforum!
Adobe User Group


Copyright ©1999 – 2012 Marc Thiele