Zurück   Flashforum > Flash > ActionScript > ActionScript 1

Antwort
 
LinkBack Themen-Optionen Ansicht
Alt 05-08-2005, 13:51   #1 (permalink)
Neuer User
 
Registriert seit: Oct 2003
Beiträge: 22
problem beim formatieren von dyn. textfeld

und das nächste problem:

ActionScript:
  1. meinFormat = new TextFormat();
  2. meinFormat.font = "Arial";
  3. meinFormat.color = 0xFFFFFF;
  4. meinLoadVars = new LoadVars();
  5. meinLoadVars.load("inhalte.php?was=fachbereich");
  6. meinLoadVars.onLoad = function(success) {
  7.     if (success) {
  8.         for (i=1; i<=3; i++) {
  9.             _root.createEmptyMovieClip("fachbereich"+i, 1+i);
  10.             _root["fachbereich"+i].attachMovie("area_1", "fachbereich_content_"+i, 1);
  11.             _root["fachbereich"+i]._x = 50;
  12.             _root["fachbereich"+i]._y = 50+i*30;
  13.             _root["fachbereich"+i].onPress = function() {
  14.                 this.startDrag();
  15.             };
  16.             _root["fachbereich"+i].onRelease = _root["fachbereich"+i].onReleaseOutside=function () {
  17.                 this.stopDrag();
  18.             };
  19.             _root["fachbereich"+i]["fachbereich_content_"+i].createTextField("meinText", 0, -4, -7, 200, 20);
  20.             _root["fachbereich"+i]["fachbereich_content_"+i].meinText.setTextFormat(meinFormat);
  21.             _root["fachbereich"+i]["fachbereich_content_"+i].meinText.text = _root.meinLoadVars["var_fachbereich"+i];
  22.         }
  23.     }
  24. };

warum geht das nicht, das textfeld wird nicht formatiert, sprich schrift arial, farbe weiß...

seba
sebas ist offline   Mit Zitat antworten
Alt 05-08-2005, 13:56   #2 (permalink)
................
 
Benutzerbild von Der Frager
 
Registriert seit: Jun 2004
Beiträge: 15.890
setNewTextFormat
__________________

ternärer Konditionaloperator

+++ Bitte keine Privat-Nachrichten bezüglich Flashfragen! +++
Der Frager ist offline   Mit Zitat antworten
Alt 05-08-2005, 14:01   #3 (permalink)
Neuer User
 
Registriert seit: Oct 2003
Beiträge: 22
Smile

danke,

ich habe das genau nach der hilfe und buch gemacht, und da stand nichts von New...

thanxs

seba
sebas 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 04:52 Uhr.

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


Copyright ©1999 – 2012 Marc Thiele