Ver Mensaje Individual
  #2 (permalink)  
Antiguo 17/01/2005, 12:11
Avatar de rod524
rod524
 
Fecha de Ingreso: agosto-2004
Mensajes: 517
Antigüedad: 19 años, 8 meses
Puntos: 0
En flash: help > Flash Support Center.......

Flash TechNoteMissing text when nesting components
Issue
When using components, you may want to nest one component inside another (for example, you may want to place a Calendar component inside a DraggablePane). If the nested component contains text, the text may not render properly.

Solution
To make the text display correctly in a nested component, do both of the following:


Add an embedded font symbol to the movie
Add custom Actionscript to the first frame of the movie to recognize the embedded font


To add an embedded font symbol to the movie: 1 Open Window> Library
2 Select the Options Menu pop-up in the upper right of the Library.

3 Choose New Font.

4 Name the font (i.e., "Arial_embedded") and select the desired font from the Font list (the components use the Arial font by default, so if you want the default look of the component, choose Arial).
5 Select OK.
6 Right-click on the new font symbol in the Library and choose Linkage.
7 Check "Export for ActionScript".
8 Check "Export in first frame".
9 Enter a name (i.e., "myFont").

Note: For more information on embedding font symbols see Using font symbols (TechNote 14786).

Add the following ActionScript to frame one of your movie:
globalStyleFormat.embedFonts = true;
globalStyleFormat.textFont = "myFont";
globalStyleFormat.applyChanges();

Note: The second line of ActionScript refers to the linkage name of the font.


¿No es extraño que casi nadie revise la ayuda de flash incluida en el programa o la ayuda en linea de Flash Support Center?

Saludos.