Zurück   Flashforum > Flash > ActionScript > ActionScript 1

Antwort
 
LinkBack Themen-Optionen Ansicht
Alt 09-02-2005, 11:25   #1 (permalink)
...
 
Benutzerbild von flash bier
 
Registriert seit: Nov 2001
Beiträge: 1.227
shared library embed Font

hi ff,
folgendes Problem hab ich hier und versteh das nicht ganz:

Ich habe eine Shared Library mit einem eingebundenem Font.

In einem zweiten Film lege ich einen Textdarsteller auf die Bühne und gebe diesem den Shared Font als Schriftart. Das funktioniert.
Nun habe ich zusätzlich ein zur Laufzeit erstellten Textdarsteller und will diesem ebenso den Shared Font zuweisen:
ActionScript:
  1. this.createTextField("my_txt",1,200,200,100,20);
  2.   my_txt.embedFonts=true;
  3.   my_txt.text=" i'm imported font from source.swf !!!";
  4.  
  5.   meinTextformat = new TextFormat();
  6.   meinTextformat.font="fontID";
  7.   my_txt.setTextFormat(meinTextformat);
Leider funktioniert das aber nicht .... warum ??

Danke
flash bier
__________________
Schweig oder sprich Worte, die besser sind als Schweigen !

Geändert von flash bier (09-02-2005 um 11:31 Uhr)
flash bier ist offline   Mit Zitat antworten
Alt 09-02-2005, 12:21   #2 (permalink)
...
 
Benutzerbild von flash bier
 
Registriert seit: Nov 2001
Beiträge: 1.227
Flash TechNote

Shared fonts do not display in a dynamic text field

Issue

Dynamic text fields that use fonts from a shared library do not appear in Flash movies. In some cases, using shared fonts in a dynamic text field can cause a movie to crash.

Reason

This behavior is not expected and is a known issue. The text in the dynamic text field should appear in the text field, but does not. Macromedia is aware of this issue and is investigating ways to address this in a future version.

Solution


Use a static text field, if possible. If a dynamic or input text field is required, include the font symbol in the library of each movie that uses it rather than using the font as a shared library item. Or, use a standard font instead of a font symbol.


Additional information
See Using font symbols (TechNote 14786) for more information on shared fonts.


Last updated: July 10, 2001


Kann denn das noch Aktuell sein ?!

MfG flash bier
__________________
Schweig oder sprich Worte, die besser sind als Schweigen !
flash bier 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 06:51 Uhr.

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


Copyright ©1999 – 2012 Marc Thiele