Zurück   Flashforum > Flash > ActionScript > ActionScript 1

Antwort
 
LinkBack Themen-Optionen Ansicht
Alt 12-08-2003, 11:14   #1 (permalink)
this.onEnterFame
 
Benutzerbild von RedSaint
 
Registriert seit: Feb 2002
Ort: Jetzte: Stuttgart
Beiträge: 1.666
soundfrage: unbest. sound stoppen...

hi hi,

ich hbe 2 loops die parallel laufen. hinzukommen bei useraktionen verschiedenen sounds die attached werden:
ActionScript:
  1. talker=new Sound();
  2. talker.attachSound("willkommen");
  3. talker.attachSound("about");
  4. talker.attachSound("einleitung");
  5. talker.attachSound("waffen");
  6. talker.attachSound("menschen");
  7. talker.attachSound("drogen");
  8. talker.attachSound("impressum");
  9. talker.attachSound("umfrage");

nun sollen sich die "talker" sounds aber nict überlagern, was durchausvorkommen kann. wenn ich nun im aufruf für den talker sage:
1.frame:
ActionScript:
  1. _root.talker.stop()
5.frame:
ActionScript:
  1. _root.talker.play

dann klappt das zwar, dss sich die talker nicht überlappen, aber meine loops werdn auch ausgeschaltet...

nun wollte ich schon eine var setzten:
ActionScript:
  1. _root.talkfile="about";
und entsprechend den sound killlen mit:
ActionScript:
  1. _root.talker.stop(_root.talkfile);
was aber überhaupt nicht klappt...

wei bekomme ich das hin, ohne unbedngt für alle talker ein neues siundobject anzulegen, da ich ja ohnehin nie weiß, welches talkerfile gerade spielt ud welches neu dazukommt...


_RED_
__________________
_may the force be with you_
.................................................. .........
on Fire 2008
.................................................. .........

Easy Crime available here
.................................................. .........

_RED_ + Flashforum = Big Love
.................................................. .........

A.K.A: ACHIM 0815
RedSaint ist offline   Mit Zitat antworten
Alt 12-08-2003, 11:24   #2 (permalink)
A..
PostTraum
 
Registriert seit: Apr 2003
Beiträge: 300
hmmmm

hi,

hmm bevor ich rate frage ich lieber mal
also

wo liegen deine loops und wie ist ihr sobjekt name.

gruss

a..
A.. ist offline   Mit Zitat antworten
Alt 12-08-2003, 11:26   #3 (permalink)
this.onEnterFame
 
Benutzerbild von RedSaint
 
Registriert seit: Feb 2002
Ort: Jetzte: Stuttgart
Beiträge: 1.666
die loops liegen auch in der bib und werden attached:
ActionScript:
  1. loop1 = new Sound();
  2. loop1.attachSound ("dark");
  3. loop1.start (0,9999);
  4. playing=true;

und ein paar frames später dann der zweite:
ActionScript:
  1. loop2 = new Sound();
  2. loop2.attachSound ("theme");
  3. loop2.start (0,9999);


_RED_
__________________
_may the force be with you_
.................................................. .........
on Fire 2008
.................................................. .........

Easy Crime available here
.................................................. .........

_RED_ + Flashforum = Big Love
.................................................. .........

A.K.A: ACHIM 0815
RedSaint ist offline   Mit Zitat antworten
Alt 12-08-2003, 11:34   #4 (permalink)
A..
PostTraum
 
Registriert seit: Apr 2003
Beiträge: 300
ja das soundmysterium hmmm

hab ich bei http://www.kennybellew.com/
gefunde.

[... When possible, define all of your sound objects on the _root level. For example, create a layer called "Sound Objects" on the _root level. Define all sound objects in the first frame of this layer. This way, the path to your sound object will never be a mystery. If you've ever experienced the madness of trying to determine why a sound will not start or why more sounds are stopping than intended, this will help isolate the problem quickly. ..]

wie du siehst hänge ich akutell auch an einm soundprob :I und es könnte ruhig mal ein wenig kühler werden.

gruss
a..
A.. ist offline   Mit Zitat antworten
Alt 12-08-2003, 11:40   #5 (permalink)
this.onEnterFame
 
Benutzerbild von RedSaint
 
Registriert seit: Feb 2002
Ort: Jetzte: Stuttgart
Beiträge: 1.666
naja...ich kann ja auch einfach immer alle talker sounds stopen...pauschal, egal welcher grade läuft und danch wieder playen...
aber elegant ist dass nicht gerade und dynamisch auch nicht...wenn jetzt noch talker sounds dazu kommen muss ich nachcoden...->unelegant...


daher...wenn jemand ne lösung hätte...


_RED_
__________________
_may the force be with you_
.................................................. .........
on Fire 2008
.................................................. .........

Easy Crime available here
.................................................. .........

_RED_ + Flashforum = Big Love
.................................................. .........

A.K.A: ACHIM 0815
RedSaint ist offline   Mit Zitat antworten
Alt 12-08-2003, 11:49   #6 (permalink)
A..
PostTraum
 
Registriert seit: Apr 2003
Beiträge: 300
uppe doch mal die fla

oder?

ich könnte ja mal neischaue

gruss
a..
A.. ist offline   Mit Zitat antworten
Alt 12-08-2003, 11:51   #7 (permalink)
A..
PostTraum
 
Registriert seit: Apr 2003
Beiträge: 300
ach ja

und ich suche nebenbei ne möglichkeit eine sound bei loadSound also noch net komplett einfach zu stoppen damit der rest vom film loadmovie or watever noch ausführen kann.

gruss
a..
A.. ist offline   Mit Zitat antworten
Alt 12-08-2003, 11:54   #8 (permalink)
this.onEnterFame
 
Benutzerbild von RedSaint
 
Registriert seit: Feb 2002
Ort: Jetzte: Stuttgart
Beiträge: 1.666
ich weiß zwar nicht genau was du jetzt meinst, aber du kannst ja wärend dem laden deinen sound auf lautstärke 0 setzen, dann ist er da aber nicht hörbar...
such mal hier im forum nach:
ActionScript:
  1. Sound.setVolume


_RED_
__________________
_may the force be with you_
.................................................. .........
on Fire 2008
.................................................. .........

Easy Crime available here
.................................................. .........

_RED_ + Flashforum = Big Love
.................................................. .........

A.K.A: ACHIM 0815
RedSaint ist offline   Mit Zitat antworten
Alt 12-08-2003, 12:02   #9 (permalink)
A..
PostTraum
 
Registriert seit: Apr 2003
Beiträge: 300
nunja ummm ne ich meinte etwas anderes

mSong = new Sound(this);
mSong.loadSound(songname, false);

songname = name aus xml datei + verzeichnispfad (songname wird in einer anderen swf einer sogenannten playlist erstellt und dem player "übergeben".

nunja aber wenn ich während der player einen song läd, einfach mir einen neuen navipunkt aussuche wobei wiederum ein swf geladen wird dann hängt der player , d.h. er mag nicht mehr laden oder läde an der mp3 weiter .... nerv*

gruss
a..
A.. 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 07:17 Uhr.

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


Copyright ©1999 – 2012 Marc Thiele