PDA

View Full Version : Masked Combo-box text problems


riflemex
08-28-2004, 02:49 AM
Hi Everyone,

I'm having a trouble with a combo-box component in flash 2004. I have 2 movies, a main movie (main.swf) that load another movie (citas.swf) that has the masked combo-box and a button component. The problem is that both components doesn't display their text (the button label and the combo-box elements doesn't appears).

So, anybody knows how to embed de fonts in a component in flash 2004? or another solution to make the text visible in both masked components.

Thaks for the help provided,

joe08
05-14-2005, 01:51 PM
Hi.

Look, I was having just the same problem and after a week or so I found that you could overcome those obstacles with this:

1. Go to the library Panel, choose from the menu (the right superior corner) th option of New Font. Once you've done that and what comes after it (putting a name and establishing what font you'll be using), you should right-click the symbol in the library and export for actionScript putting a name that is going to be the identifier for your font.

2. add these lines for the button, for exmple:

mybutton.setStyle("fontFamily","ArialFont");
mybutton.embedFonts = true;

Export or test it and the lables should be displaying.


I note that one of your swf's is "citas" so I think you speak spanish. Well, here's the same explanation but in spanish (maybe I could get myself clearer).

1. Del menu de la lbrearía, escoges New Font. Ahí escoges la letra que vas a ocupar y el nombre de tu símbolo. Ya que hiciste eso, sobre el símbolo das clic derecho y escoges Linkage. Ahi le das que los exporte para actionscript en el pimer cuadro. Ya que hiciste eso y le pusiste un nombre con el cual identificarlo, sigue el paso dos.

2. Para tus instancias que no se vean , pon las siguientes líneas

mybutton.setStyle("fontFamily","ArialFont");
mybutton.embedFonts = true;

This works actually fine in buttons, radiobuttons , textfields, textareas. But I keep having some trouble with the Combo boxes as you might also have. For this I've found that you have to drag an instance of a Combo in the main movie, and then delete it (this is just for Flash to integrate the Combo to the library of the main movie).

And that's it.

I hope this helps.

Joe