Zurück   Flashforum > Flash > ActionScript > ActionScript 1

Antwort
 
LinkBack Themen-Optionen Ansicht
Alt 27-10-2005, 20:03   #1 (permalink)
is learning
 
Registriert seit: Oct 2005
Beiträge: 1.019
TellTarget verkuerzen

gibt es eine Moeglichkeit diesen Skript kuerzer zu fassen?

Ok, wenn sowas schonmal im Forum vorhanden war, bitte ich um Verzeihung.
Ein Link waere auch schon. Danke schonmal.

onEnterFrame = function () {
if (time<=0) {
time = 0;
tellTarget ("tabelle") {
gotoAndStop("on");
}
tellTarget ("platte/o1") {
gotoAndStop("off");
}
tellTarget ("platte/o2") {
gotoAndStop("off");
}
tellTarget ("platte/o3") {
gotoAndStop("off");
}
tellTarget ("platte/m1") {
gotoAndStop("off");
}
tellTarget ("platte/m2") {
gotoAndStop("off");
}
tellTarget ("platte/m3") {
gotoAndStop("off");
}
tellTarget ("platte/u1") {
gotoAndStop("off");
}
tellTarget ("platte/u2") {
gotoAndStop("off");
}
tellTarget ("platte/u3") {
gotoAndStop("off");
}
}
};
__________________
helping helps
moonartist ist offline   Mit Zitat antworten
Alt 27-10-2005, 20:10   #2 (permalink)
using namespace
 
Benutzerbild von artjom
 
Registriert seit: May 2002
Ort: Hamburg underground
Beiträge: 657
ActionScript:
  1. onEnterFrame = function () {
  2.     if (time<=0) {
  3.         time = 0;
  4.         tabelle.gotoAndStop("on");
  5.         var arrChars = ["o", "m", "u"];
  6.         for (var nJ in arrChars)
  7.             for (var nI = 1; nI<4; nI++)
  8.                 eval("platte/"+arrChars[nJ]+nI).gotoAndStop("off");
  9.     }
  10. };

ungetestet.

gruß
__________________
artjom.com -|- Melom
Einen PC beschleunigen? Klar, mit 9,81 m/s^2!

Geändert von artjom (27-10-2005 um 20:12 Uhr)
artjom ist offline   Mit Zitat antworten
Alt 27-10-2005, 20:18   #3 (permalink)
is learning
 
Registriert seit: Oct 2005
Beiträge: 1.019
Zitat:
Zitat von artjom
ActionScript:
  1. onEnterFrame = function () {
  2.     if (time<=0) {
  3.         time = 0;
  4.         tabelle.gotoAndStop("on");
  5.         var arrChars = ["o", "m", "u"];
  6.         for (var nJ in arrChars)
  7.             for (var nI = 1; nI<4; nI++)
  8.                 eval("platte/"+arrChars[nJ]+nI).gotoAndStop("off");
  9.     }
  10. };

ungetestet.

gruß
Danke fuer die schnelle Hilfe. Ich werde es gleich mal ausprobieren.

edit: Wow, Danke es scheint zu funktionieren.
__________________
helping helps

Geändert von moonartist (27-10-2005 um 20:20 Uhr)
moonartist ist offline   Mit Zitat antworten
Alt 27-10-2005, 20:25   #4 (permalink)
is learning
 
Registriert seit: Oct 2005
Beiträge: 1.019
P.S.: Wie lange dauert es ca. bis man solche Skripte so einfach "runterschreibt". Also ohne wirklich grosse Probleme zu haben?
__________________
helping helps
moonartist 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 09:49 Uhr.

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


Copyright ©1999 – 2012 Marc Thiele