Zurück   Flashforum > Flash > ActionScript > ActionScript 1

Antwort
 
LinkBack Themen-Optionen Ansicht
Alt 10-09-2003, 15:08   #1 (permalink)
Neuer User
 
Registriert seit: Sep 2001
Beiträge: 13
pfad bei textformatierung

Also ich verstehs nicht!

ich hab folgenden code.
Zitat:
meinFormat = new TextFormat();
meinFormat.color = 0xd14510;
for (i=0; i<=7; i++) {
if (_root.hisc[i].name == _root.newname1 && _root.hisc[i].money == _root.newpunkte1) {
var place = "p"+(i+1);
var posnum1 = place+"_num";
var posname1 = place+"_name_f";
var posplace1 = place+"_punkte_f";
}
}
_root.vorbei.posnum1.setTextFormat(meinFormat);
_root.vorbei.posname1.setTextFormat(meinFormat);
_root.vorbei.posplace1.setTextFormat(meinFormat);
wenn ich nun direkt den pfad eintipp, dann ändert er brav den text wie er soll.

z.B. _root.vorbei.p2_name_f.setTextFormat(meinFormat);

Aber, wenn ich den die variable einsetz dann macht er es nicht obwohl es eigentlich doch das gleiche is.
Helft mir, wo is mein denkfehler.
Danke
Schnico ist offline   Mit Zitat antworten
Alt 10-09-2003, 17:00   #2 (permalink)
HAY
Neuer User
 
Benutzerbild von HAY
 
Registriert seit: Aug 2002
Ort: Faust-Stadt
Beiträge: 2.577
hi
vieleicht kannst du es so machen
ActionScript:
  1. for (i=0; i<=7; i++) {
  2. if (_root.hisc[i].name == _root.newname1 && _root.hisc[i].money == _root.newpunkte1) {
  3. var place = "p"+(i+1);
  4. _root.vorbei[place+"_num"].setTextFormat(meinFormat);
  5. _root.vorbei[place+"_name_f"].setTextFormat(meinFormat);
  6. _root.vorbei[place+"_punkte_f"].setTextFormat(meinFormat);
  7. break
  8. }
  9. }
__________________
gruß Harry
HAY ist offline   Mit Zitat antworten
Alt 10-09-2003, 17:23   #3 (permalink)
Neuer User
 
Registriert seit: Sep 2001
Beiträge: 13
und es klappt, sehr sehr geil.
ich dank dir.
Schnico
Schnico 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 00:34 Uhr.

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


Copyright ©1999 – 2012 Marc Thiele