I embed text in textfield, but sometimes it does not render using htmltext. if I use text it renders fine.
Make sure you have the correct embedded font's turned on for that textfield
I reset defaultTextFormat every time I assign htmlText, nad it fixes it.
Related
I'm facing a problem when using the RichTextEditor with autosubmit="true" in JDev 12c. The component is added programmatically on a form.
In Firefox the autosubmit fires correctly for any kind of action (e.g.: typing, changing text style, etc)
On the other side in Chrome, not every action fires the autosubmit. For example, typing some text would fire the autosubmit, but then selecting the text and changing the color or the font size for example, doesn't fire a value change event / autosubmit.
Has anyone else encountered this type of behavior before?
Thanks in advance!
I had the same problem as well, RichTextEditor's text is very difficult to erase the content or reset programatically too,
I advise to use other text tools like the very known RichTextArea:
// Create a rich text area
final RichTextArea rtArea = new RichTextArea();
rtArea .setCaption("My Rich Text Area");
// Set initial content as HTML
rtArea .setValue("<h1>Hello</h1>\n" +
"<p>This rich text area contains some text.</p>");
Then you could resize it to the size of the RichTextEditor and give it the same visual color by some tricks through js and css as usual.
I have a Flash CS6 AS3 project that up until yesterday was displaying text correctly. I have embedded the font Trajan Pro Bold with all of it's symbols and have text fields on my stage using that font.
One text field which has been there for a while is working correctly and changing text as it should. Other text fields are only displaying certain letters. This seems like an embedding problem but I have tried deleting the Font object in the library and recreating it to no avail.
Is there any sort of caching or anything I could clear that could possibly be the problem?
Fixed it. The problem was solved by going to Edit > Preferences > Publish Cache and turning off caching. This increased build time but I was able to turn it back on afterwards to fix the problem and reduce the build time back to normal
I am using dynamic text field to store score in it, I have embedded font that I am using and its only one.
But on run time while text changing one character at the left most becomes bogus/strange character, unable to figure out why its happening.
Finally I am using bitmap anti-alias for the dynamic field, it fixes the issue but text is not smooth.
If anyone had the same issue ?
You may have embedded the font, but have selected the correct character types to be embedded? i.e. if it's a score, then numerals needs to be selected like so:
(The dialog above may look slightly different in CS6, or may be somewhere else, I'm not sure; I don't use CS6)
Characters that are in the field when compiled will be embedded, and characters that aren't embedded won't render correctly.
Alternatively (instead of embedding), you can select "use device fonts" from the dropdown in the properties panel (if you have created the textfield from within Flash Pro rather than programatically), and that will fix it - literally just experienced this problem with an app I just completed and that was my fix.
If the above doesn't work, then I'm sure that it's something to do with the size of the textfield as mentioned above.
Use alternate fonts when prompted. Embed the fonts you chose, save and close your application and restart.
It solved my problem, its more likely that cs6 has this bug.
Changing CLASSIC TEXT to TLF TEXT solved the problem.
I have two dynamic classic TextFields in a MovieClip, one with Arial Regular embedded and the other with Arial Bold, but the second TextField is not showing the bold text. It shows regular text. Here is how I am doing it:
a busy cat http://cubixshade.com/textz/sample.jpg
I change the text of two fields using
mc.txt1.text="changed text90";
mc.txt2.text="changed text90";
Both are shown in Arial Regular style.
When you are working with embeded fonts you need to know:
that when TextField hits the stage flash automaticaly dismisses all of the Font type properties on it to the basic one. in this case you have Arial Regular.
Embeding fonts means that you will be able to use them in the html based TextFields.
Make sure that when you are "embeding font" it is beeing exported for AS3. in other case the font will be available only if you had it attached to any textfield that is on stage.
in this case you should propertly embed font and change you code a bit:
txt1.text="changed text90";
txt2.htmlText="<b>changed text90</b>";
i noticed when working with fonts in flash that some font won't diplay correctelly even when i embedded them just try another font and everything gonna be alright
I found that depending on the font, the bold version isn't a different font-face. To get bold you only need to use tags around your html text that uses your regular font
I have a web page which has a SWF file embeded. I have an issue with the focus.
Click on a HTML Text Field and Click on a Flex Field.
Begin to type a text.
Expected Result is the entered text should go in the Flex TextInput field but the
actual Result is it goes into HTML text field.
to me it sounds like something related to wmode in the embedding code, I would try to play around with that, I have found flash to be very problematic when replacing between wmodes.