Zurück   Flashforum > Flash > ActionScript > ActionScript 1

Antwort
 
LinkBack Themen-Optionen Ansicht
Alt 01-10-2003, 15:02   #1 (permalink)
Neuer User
 
Benutzerbild von stekke
 
Registriert seit: Sep 2001
Beiträge: 622
leider noch ein Problem....

müsste nochmal eure Hilfe in Anspruch nehmen.....

ich habe nun das problem,dass ich die einzelnen Zahlen aus insgesamt 7 dynamischen Feldern auslesen will und für jede zahl steht ein Symbol.
also 1 = symbol 1
also 2 = symbol 2
usw.
klappt soweit auch hiermit:

ActionScript:
  1. for (m=1; m<9; m++) {
  2.                 for (n=1; n<9; n++) {
  3.                     if (_root["symbol"+m] == n) {
  4.                         _root["s"+n]._x = _root["w_pos"+m]._x;
  5.                         _root["s"+n]._y = _root["w_pos"+m]._y;
  6.                     }
  7.                 }
  8.             }


_root["s"+n]._x = _root["w_pos"+m]._x;
(Symbol wird auf eine bestimmte Position gestellt)

klappt!
Nun passiert es,dass eine Zahl,also somit ein Symbol doppelt vorkommt,
also 1 = symbol 1
also 2 = symbol 1

da solte in dem obigen Script noch irgendwie abgefragt werden....

wenn das Symbol doppelt ist dann nehme nicht
_root["s"+n]._x = _root["w_pos"+m]._x;
_root["s"+n]._y = _root["w_pos"+m]._y;
sondern
_root["ss"+n]._x = _root["w_pos"+m]._x;
_root["ss"+n]._y = _root["w_pos"+m]._y;

wie kriege ich sowas hin?
__________________
von allen Gedanken schätze ich doch am meisten,die interessanten....
(Sterne)
stekke 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 19:25 Uhr.

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


Copyright ©1999 – 2012 Marc Thiele