Zurück   Flashforum > Flash > ActionScript > ActionScript 1

Antwort
 
LinkBack Themen-Optionen Ansicht
Alt 07-09-2003, 20:04   #1 (permalink)
Neuer User
 
Benutzerbild von Hampfibius
 
Registriert seit: Aug 2003
Beiträge: 22
Question MC ansteuerung mit verzögerung

Hi Flasher/innen

ActionScript:
  1. _root.MC_balken.gotoAndPlay("zu");
  2. _root.MC_shadow.gotoAndPlay("aus");
  3. _root.MC_logo.gotoAndPaly("aus");
  4. if (_root.MC_shadow.onEnterFrame(20)) {
  5.     _root.MC_leite_unten.gotoAndPaly("start");
  6.     if (_root.MC_leite_unten.onEnterFrame(10)) {
  7.         _root.MC_logo.gotoAndPaly("ein");
  8.     }
  9. }


funktioniert nicht

----


das script soll, wenn _root.MC_shadow bei dem frame 20 angekommen ist _root.MC_leite_unten.gotoAndPaly("start") abspielen. (ist aber immer ein anderes frame bei MC_shadow)

geht das mit ".onEnterFrame" ???

bitte helft mir
Hampfibius ist offline   Mit Zitat antworten
Alt 07-09-2003, 20:08   #2 (permalink)
Revived @ Sunday
 
Benutzerbild von MacEvil
 
Registriert seit: Apr 2003
Ort: Nowhereland
Beiträge: 3.244
ActionScript:
  1. _root.MC_balken.gotoAndPlay("zu");
  2. _root.MC_shadow.gotoAndPlay("aus");
  3. _root.MC_logo.gotoAndPlay("aus");
  4. if (_root.MC_shadow._currentframe == 20) {
  5.         _root.MC_leite_unten.gotoAndPlay("start");
  6. }
  7. else if (_root.MC_leite_unten._currentframe == 10) {
  8.                 _root.MC_logo.gotoAndPlay("ein");
  9.         }
MacEvil ist offline   Mit Zitat antworten
Alt 07-09-2003, 20:49   #3 (permalink)
alien
 
Benutzerbild von Smirgel
 
Registriert seit: May 2002
Ort: Colonia
Beiträge: 7.597
nabend,

hey mac, die if-anweisungen finden aber nur beim aufruf des scriptes statt, man müsste das also frame-bezogen überprüfen:
ActionScript:
  1. _root.MC_balken.gotoAndPlay("zu");
  2. _root.MC_shadow.gotoAndPlay("aus");
  3. _root.MC_logo.gotoAndPlay("aus");
  4. this.onEnterFrame=function(){
  5. if (_root.MC_shadow._currentframe == 20 && !active) {
  6.         _root.MC_leite_unten.gotoAndPlay("start");
  7. active=true;
  8. }
  9. else if (_root.MC_leite_unten._currentframe == 10 && !active) {
  10.         _root.MC_logo.gotoAndPlay("ein");
  11. active=true;
  12. }else{
  13. active=false;
  14. }

wenn ichs richtig verstanden habe.

__________________
bei fragen, fragen.
Smirgel 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 20:12 Uhr.

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


Copyright ©1999 – 2012 Marc Thiele