Zurück   Flashforum > Flash > ActionScript > ActionScript 1

Antwort
 
LinkBack Themen-Optionen Ansicht
Alt 17-08-2004, 12:44   #1 (permalink)
Neuer User
 
Registriert seit: Jun 2004
Beiträge: 56
Loop´s synchron laufen

Hallo an alle
Möchte gerne das die Loop´s synchron zueinander laufen.
Am besten ohne Taktgeber, möchte nämlich gerne acht gleichzeitig laufen lassen.
Die sounds (aus einem Pool von x beliebigen sounds)werden auf Plattenspieler durch ziehen ablegelegt und durch den Play Button dem sound objekt zugefügt(attach).
Tja, hab schon manches probiert ,hab´s aber noch nicht wirklich geschafft sie synchron zu kriegen.


Wäre echt nett wenn mir wer helfen könnte!!

AS Text:
//Hauptfilm

stop();
loop1 = new Sound(plattenspieler1);
loop2 = new Sound(plattenspieler2);
loop3 = new Sound(plattenspieler3);
loop4 = new Sound(plattenspieler4);
loop5 = new Sound(plattenspieler5);
loop6 = new Sound(plattenspieler6);
loop7 = new Sound(plattenspieler7);
loop8 = new Sound(plattenspieler8);


//Ziehbare Loops

onClipEvent (mouseDown) {
xpos = this._x;
ypos = this._y;
if
(this.hitTest(_root._xmouse,_root._ymouse,true)){
this.startDrag(true,0,0,800,600);
}
}

onClipEvent (mouseUp) {
if
(this.hitTest(_root._xmouse,_root._ymouse,false)){
this.stopDrag();

if (eval(this._droptarget) == _root.plattenspieler1) {
this._x = _root.plattenspieler1._x;
this._y = _root.plattenspieler1._y;

}
else if (eval(this._droptarget) == _root.plattenspieler2) {
this._x = _root.plattenspieler2._x;
this._y = _root.plattenspieler2._y;
}
else if (eval(this._droptarget) == _root.plattenspieler3) {
this._x = _root.plattenspieler3._x;
this._y = _root.plattenspieler3._y;
}

//das gleiche noch für plattenspieler 4-8!!!!!!

else
{this._x = xpos;
this._y = ypos;
}
}
}

//Play_Button von Kanal Loop1

on (release) {


if (eval(_root.eins._droptarget) == _root.plattenspieler1)
{

_root.loop1.attachSound ("eins");
_root.loop1.start (0, 999);

} else if (eval(_root.null._droptarget) == _root.plattenspieler1)
{

_root.loop1.attachSound ("null");
_root.loop1.start (0, 999);

} else if (eval(_root.zwei._droptarget) == _root.plattenspieler1)
{

_root.loop1.attachSound ("zwei");
_root.loop1.start (0, 999);

}else if (eval(_root.drei._droptarget) == _root.plattenspieler1)
{

_root.loop1.attachSound ("drei");
_root.loop1.start (0, 999);

}
//das gleiche noch für die anzahl der sounds vom sound pool}
cheek 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 19:03 Uhr.

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


Copyright ©1999 – 2012 Marc Thiele