Zurück   Flashforum > Flash > ActionScript > ActionScript 1

Antwort
 
LinkBack Themen-Optionen Ansicht
Alt 10-11-2004, 20:55   #1 (permalink)
destruction tour 2004
 
Benutzerbild von antistyles
 
Registriert seit: Feb 2003
Ort: Göttingen
Beiträge: 220
sound bei onMouseOver

hey, also folgendes:
ich will bei einem onMouseOver-Event einen Sound abspielen, klappt auch, allerdings wird der sound solange abgespielt wie ich auf dem mc bin. gibt es eine lösung wie der sound nur einmal abgespielt wird?
__________________
deconstruction desinformation antistyles
antistyles ist offline   Mit Zitat antworten
Alt 10-11-2004, 22:24   #2 (permalink)
-
 
Benutzerbild von pape
 
Registriert seit: Jan 2004
Beiträge: 3.002
so in etwa:
ActionScript:
  1. btn.onRollOver = function () {
  2.   if(!amabspielen) {
  3.     deinSound.play(0,1);
  4.     amabspielen=true;
  5.   }
  6. }
  7. btn.onRollOut = function () {
  8.   amabspielen=false;
  9. }

grz
pape
pape 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 05:53 Uhr.

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


Copyright ©1999 – 2012 Marc Thiele