Zurück   Flashforum > Flash > ActionScript > ActionScript 1

Antwort
 
LinkBack Themen-Optionen Ansicht
Alt 27-06-2004, 17:10   #1 (permalink)
too funky for FF
 
Benutzerbild von VNNA
 
Registriert seit: May 2002
Ort: Celle<->MD
Beiträge: 980
mp3 stream ... und ab zum nächsten Titel

hi leuts

ich mal wieder und meine AS kenntnisse. doktore schon stunden und es wird bei mir eher schlimmer als das ich ein ergebniss erziele

ich möchte vier MP3 titel streamen lassen..funzt auch alles prima..nur würde ich gerne wenn der 1. titel beendet ist zum 2. titel springen..tja und da ist mein problem. wie stelle ich es am einfachsten an? ist sicher nur ein Gehirnknacks um darauf zu kommen..aber der knick will nicht schwinden. hat jemand ne lösung?

hier das Script was bisher da ist:

Code:
title=1;
anz=4;
pause=false;
url = "http://www.meine seite.de/";
song = "mp3_"+title+".mp3";

bsig = 0;

	msound = new Sound();
	msound.setVolume(100);
	msound.onLoad = msound.start();
	msound.loadSound(url+song, true);

	mSound.onSoundComplete = function() {
		mSound.start();
	}

dausgabe= mSound.duration;
function sPos(aus,sobj) {
	this[aus]= this[sobj].position;
}

function sBalken(obj,spobj) {
	dauer= this[spobj].duration;
	pos= this[spobj].position;
	prozent = pos*100/dauer;
	this[obj]._xscale = prozent;
	prozent = parseInt(prozent)+"%";
}

function gBalken(obj,spobj) {	
	gesamt = this[spobj].getBytesTotal();
	gladen = this[spobj].getBytesLoaded();
	gprozent = gladen*100/gesamt;
	this[obj]._xscale = gprozent;	
	gprozent = parseInt(gprozent)+"%";
}
thenk ju
VNNA ist offline   Mit Zitat antworten
Alt 27-06-2004, 18:56   #2 (permalink)
_//\\#//\\_
 
Benutzerbild von warrantmaster
 
Registriert seit: Jan 2003
Beiträge: 7.060
hi vnna

PHP-Code:
nummer 1;
anz 4;
pause false;
url "http://www.meine seite.de/";
function 
soundladen(nummer
{
    
song "mp3_"+nummer+".mp3";
    
bsig 0;
    
msound = new Sound();
    
msound.setVolume(100);
    
msound.onLoad msound.start();
    
msound.loadSound(url+songtrue);
    
msound.onSoundComplete = function() 
    {
        if (
nummer<anz
        {
            
nummer++;
            
soundladen();
        }
    };
    
dausgabe mSound.duration;
    function 
sPos(aussobj
    {
        
this[aus] = this[sobj].position;
    }
    function 
sBalken(objspobj
    {
        
dauer this[spobj].duration;
        
pos this[spobj].position;
        
prozent pos*100/dauer;
        
this[obj]._xscale prozent;
        
prozent parseInt(prozent)+"%";
    }
    function 
gBalken(objspobj
    {
        
gesamt this[spobj].getBytesTotal();
        
gladen this[spobj].getBytesLoaded();
        
gprozent gladen*100/gesamt;
        
this[obj]._xscale gprozent;
        
gprozent parseInt(gprozent)+"%";
    }
}
soundladen(nummer); 
...wenn ich dich richtig verstanden habe...?!
grz
warrantmaster ist offline   Mit Zitat antworten
Alt 27-06-2004, 19:11   #3 (permalink)
Neuer User
 
Benutzerbild von :: RK ::
 
Registriert seit: Jan 2002
Ort: Umgebung Stuttgart
Beiträge: 5.412
hi,

bei Streaming is diese Zeile jedoch unnötig:
PHP-Code:
 msound.onLoad msound.start(); 
__________________
Das Glück im Leben hängt von den guten Gedanken ab, die man hat.

Easing_Equations / Flash Kontaktformular / FlashPlugin W3C konform / Nützliche Beiträge zu FAQs
:: RK :: ist offline   Mit Zitat antworten
Alt 27-06-2004, 19:47   #4 (permalink)
too funky for FF
 
Benutzerbild von VNNA
 
Registriert seit: May 2002
Ort: Celle<->MD
Beiträge: 980
ihr seit mal wieder spitze

Danke
VNNA ist offline   Mit Zitat antworten
Alt 27-06-2004, 21:17   #5 (permalink)
Neuer User
 
Benutzerbild von :: RK ::
 
Registriert seit: Jan 2002
Ort: Umgebung Stuttgart
Beiträge: 5.412
aber immer doch

np.
__________________
Das Glück im Leben hängt von den guten Gedanken ab, die man hat.

Easing_Equations / Flash Kontaktformular / FlashPlugin W3C konform / Nützliche Beiträge zu FAQs
:: RK :: 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 01:05 Uhr.

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


Copyright ©1999 – 2012 Marc Thiele