Zurück   Flashforum > Flash > ActionScript > ActionScript 1

Antwort
 
LinkBack Themen-Optionen Ansicht
Alt 13-12-2003, 00:08   #1 (permalink)
Neuer User
 
Registriert seit: Apr 2003
Beiträge: 644
Red face wieso klapts net?

Wieso klapt dieser script nicht? es funktioniert nur bei 1 bei allen anderen nicht.
ActionScript:
  1. onClipEvent (mouseDown) {
  2.     if (_root.turm._currentframe == 1) {
  3.         _root.turm.f1.gotoAndPlay(2);
  4.     }
  5.     if (_root.turm._currentframe == 2) {
  6.         _root.turm.f2.gotoAndPlay(2);
  7.     }
  8.     if (_root.turm._currentframe == 3) {
  9.         _root.turm.f3.gotoAndPlay(2);
  10.     }
  11.     if (_root.turm._currentframe == 4) {
  12.         _root.turm.f4.gotoAndPlay(2);
  13.     }
  14.     if (_root.turm._currentframe == 5) {
  15.         _root.turm.f5.gotoAndPlay(2);
  16.     }
  17.     if (_root.turm._currentframe == 6) {
  18.         _root.turm.f6.gotoAndPlay(2);
  19.     }
  20.     if (_root.turm._currentframe == 7) {
  21.         _root.turm.f7.gotoAndPlay(2);
  22.     }
  23.     if (_root.turm._currentframe == 8) {
  24.         _root.turm.f8.gotoAndPlay(2);
  25.     }
  26.     if (_root.turm._currentframe == 9) {
  27.         _root.turm.f9.gotoAndPlay(2);
  28.     }
  29.     if (_root.turm._currentframe == 10) {
  30.         _root.turm.f10.gotoAndPlay(2);
  31.     }
  32.     if (_root.turm._currentframe == 11) {
  33.         _root.turm.f11.gotoAndPlay(2);
  34.     }
  35. }
jonny-noob ist offline   Mit Zitat antworten
Alt 13-12-2003, 09:59   #2 (permalink)
Steffen G.
 
Benutzerbild von Tschdaeff
 
Registriert seit: Aug 2001
Ort: Ba-Wü
Beiträge: 4.123
keine ahung hast du vielleicht keine instanz namen vergeben?

oder nen logik fehler drin?

cu mfg
Tschdaeff
__________________
mod@
www.flashbattle.de
www.steffen-guse.de
------------------------------------

Tschdaeff ist offline   Mit Zitat antworten
Alt 13-12-2003, 10:02   #3 (permalink)
...
 
Registriert seit: Oct 2002
Ort: Nürnberg
Beiträge: 3.611
kannste kürzen. versuchs mal so:
ActionScript:
  1. onClipEvent (mouseDown) {
  2. _root.turm.eval(["f"+root.turm._currentframe]).gotoAndPlay(2);
  3. }

wie immer ohne Gewehr
thorben.schmitt ist offline   Mit Zitat antworten
Alt 13-12-2003, 16:05   #4 (permalink)
Neuer User
 
Registriert seit: Apr 2003
Beiträge: 644
Klapt uch net.

Edit: schon ok habs anders gelöst.

Geändert von jonny-noob (13-12-2003 um 16:09 Uhr)
jonny-noob 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 15:23 Uhr.

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


Copyright ©1999 – 2012 Marc Thiele