Actionscript 3 :: HtmlText Not Showing Bold Or Italics Font?

May 11, 2010

So I have a MovieClip asset with a dynamic textfield sitting inside of it. I export my .fla as a .swc to use within Flash Builder 4, and create instances of the asset with code, populating the text dynamically from XML.

My issue is that even though I have htmlText enabled, bold and italics tags don't appear to be working. I have a feeling it is because when I created the asset in Flash CS4, the text field makes you specify the font, and the subset of that to use (Regular, Bold, Oblique, etc).

Is there any way to get the htmlText to render bold and italics tags properly without having to completely rethink the way I'm creating all these fields?

View 3 Replies


Similar Posts:


Professional :: Bold Font In Flash Not Showing In SWF

Sep 7, 2010

I'm adapting an off the shelf mp3 player and would like to make some text bold - namely [URL] the text that shows the current artist/song at the top. This is dynamic text from an XML file. I've embedded the fonts [Verdana regular and bold - OpenType] in Flash CS5 but the bold won't display even though the special characters do display [Jónsi].

View 10 Replies

Professional :: Retaining Bold And Italics In .txt?

Aug 10, 2010

I have a .doc file. I want to load the text from that file into Flash. So I convert it into a .txt using a website like this one: http:[url]..... I add in the little code at the beginning (myTextField=) and then Flash loads it fine. The only problem is any marked up text (italics, bold, underline) is lost. Is there any way to prevent this from happening? Or for Flash to load text from something other than a .txt? Or to manually reinsert html tags to the .txt and get Flash to understand them? Or something else I'm not considering?

View 6 Replies

ActionScript 1/2 :: Retaining Bold And Italics In .txt?

Aug 11, 2010

I  have a .doc file. I want to load the text from that file into Flash. So  I convert it into a .txt using a website like this one: [URL] I add in the little code at the beginning (myTextField=) and then Flash  loads it fine. The only problem is any marked up text (italics, bold,  underline) is lost. Is there any way to prevent this from happening? Or  for Flash to load text from something other than a .txt? Or to manually  reinsert html tags to the .txt and get Flash to understand them? Or  something else I'm not considering?
 
My text field correctly displays the text in the "PrimaryText.txt" file.  The first line of the text shows like this: <b>Testing this  text</b> instead of just showing up bold. And the "Render text as  HTML" is checked.

View 3 Replies

Use Bold / Italics For Embedded Fonts?

Nov 4, 2010

I have a shared fonts.swf file containing a variety of fonts that my main swf uses. I have a movieclip within the fonts.swf file which is exported for runtime sharing. In my main swf i have the fonts.swf imported for runtime via a movieclip. This all works fine and allows me to use the fonts within the fonts.swf file in my main swf. All of my text fields are dynamic and created/updated via AS. I use the following method to style my text boxes(additional code removed for succinctness, this is just so you can see the overall methodology)[code]...

View 3 Replies

IDE :: How To Get Text Render Fonts In Bold Or Italics

May 7, 2009

I've seen this a few times and I've tried all the "fixes" but I'm still missing something here. I have "[CDATA[" tags and render as HTML turned on. My AS has HTML "true" and childNodes. However I still can't get my text to render fonts in either BOLD or italic. [URL].

View 1 Replies

ActionScript 3.0 :: HtmlText - Text Shows Up Bold Instead Of Just The Few Lines Assigned The Bold Tag To

May 4, 2011

I have a dynamic text box for 3 lines of text. I styled part of the text to be bold and part of it to be regular. When i click on the button to display the text it looks right the first time but if i click on it a second time then all of the text shows up bold instead of just the few lines i assigned the bold tag to.

View 18 Replies

ActionScript 2.0 :: HTML Text Tags (Bold / Italics) Does Not Work

Aug 8, 2007

I'm using HTML text formatting with a Textfield. At the moment the <u> underline tag works fine but the <b> bold tags don't work or the italics tag doesn't work either. I read somewhere that a font with bold and italics needs to be "available". I'm just using a textfield with Arial as the font - which is embedded.

View 1 Replies

IDE :: Loading Contents From Text File - Bold / Italics Not Displaying

Jan 31, 2009

I'm loading content from a text file into a text field in Flash. In that text file I have some simple html tags like <b>, <i>, and <img>. I'm setting the textfield as html text:
myTextField.htmlText = myContent
The img tags work fine, but for some reason the bold and italics are not displaying...the tags are being correctly stripped from the text, but there is no bold or italic text. I'm embedding all the characters I need, but do I need to somehow embed the bold/italics versions of those characters?

View 1 Replies

Professional :: No Dynamic Bold Font If Regular Static Font Present On Stage (CS5)?

Apr 16, 2011

I have a strange issue where a dynamic text field will not show a bold version of a font (Gerstner BQ) if the regular version is on the stage in a static text field.Remove the static text field and the dynamic text field displays the bold font correctlyI have created a test FLA to reproduce this and by turning the layer with the static text field on and off (Publish settings -> Flash -> include hidden layers [unchecked]), the issue is quite clearhis issue is so big for me that I have had to abandon a project in CS5 and start again in CS4 just to work around this.

View 19 Replies

Professional :: HtmlText Bold Capital U Won't Render?

May 28, 2010

It seems like I found a bug in Flash Professional CS5.  For some reason a bold capital "U" will not render in htmlText. It will render fine in a normal text box and will render as a lowercase u or as a non-bold capital U.  I have tried typing two UUs in a row, typing a letter before the U, but it always skips the bold capital U.

View 8 Replies

ActionScript 1/2 :: Embedding Bold+italic Fonts For HtmlText?

Feb 24, 2010

How can I embed my custom font and it's bold variant (and it's faux italic variant, because there is not real italic version) and get the b and i tags working in a htmlText field?I can use the htmlText field with system fonts (with b and i tags working) ... or I can use 1 of the embedded fonts for the whole text.but I can't seem to get flash to understand the bold and italic variants are also embedded.

createTextField("dynamic_txt", 2, 40, 170, 350, 350); dynamic_txt.embedFonts = true; var emphatic:TextFormat = new TextFormat(); emphatic.size = 40; emphatic.color = 0xFFFFFF; emphatic.font = "EurostileT"; dynamic_txt.html = true;[code]...

View 2 Replies

Bold Font In Dynamic Text

Mar 17, 2009

i'm using a font called "AGBookBQ-Regular" in a dynamic text box, which loads a text file. i understand that to include the bold and italic options, i have placed another text box just out of view off the stage with these two options selected.italic works fine but the bold makes very little difference... it only stretches the font slightly.i've searched for the answer to make a much bolder font and it seems you can use a specific bold font as the bold font.i've tried this, but nothing happens. i think i'm interpreting it correctly, but if someone could please confirm this works and perhaps explain it a little clearer (using my specific font names... "AGBookBQ-Regular" and "AGBookBQ-Medium" as the bold font).

View 2 Replies

ActionScript 2.0 :: Bold Font In CDATA?

Mar 26, 2009

why this code in my xml

Code:

<![CDATA[<font color="#00000"><b>action</b>. </font>]]>

Is not making the dynamic flash content bold?If I use <u></u> it underlines it, but bold doesnt seem to work!

View 2 Replies

CS4: Make _Sans Font Bold?

Sep 30, 2009

Where's 'CS4' as a prefix to the post title? Anyway. I'm using _sans font for my flash work, because i want the font to display as the default _sans font on the device/platform. Why in CS4 (not checked earlier versions, but im sure CS3 didnt do this) is the (font) 'Style' drop down greyed out?

View 2 Replies

CS4 :: Make _sans Font Bold?

Nov 12, 2009

When creating mobile apps I thought the best practise was to use _sans font, so that the device uses its' native device font when the app runs (for dynamic text, anyhow...)? So, I use _sans font for my app.  But why in CS3 could I make _sans font bold, but in CS4 I can't? Am I being stupid here....is there something obvious I'm missing?  The 'style' box is greyed out in CS4.

View 1 Replies

IDE :: Make _sans Font Bold?

Dec 1, 2009

In CS3, I could make _sans font bold. For some reason, in CS4 I can't and I'm not sure why?I'd like to use _sans so that the device my app runs on will use its native sans-serif font.To reproduce:

Create text box

Change font to _sans

Try and make font bold

I'm creating a Flash Lite app, so just to ensure it wasn't to do with that (or the device I'm creating it for) I created a normal Flash AS3.0 document and the bahaviour is exactly the same.I've emailled Adobe but no response.

View 8 Replies

Actionscript 3 :: HtmlText Is Showing Tags

May 20, 2011

I have a textfield created with AS3 as thus: (theDesc is a parameter passed through a function) [code]the problem is the textField is displaying every character. <p><strong> etc.Is there any extra encoding need done on my end?

View 2 Replies

ActionScript 3.0 :: Keeping Bold Attribute For Embedded Font?

Dec 4, 2008

I've got a bunch of dynamic and input text boxes. I want the display font to be Arial-bold. I don't have a genuine Arial-bold font so what I really want is Arial with a bold attribute. I've tried all of the following but the result is always just plain Arial:

1. Put dummy text in box, specify Arial, click Bold attribute, click Embed and include numbers and punctuation - run time result: plain Arial

2. Import Arial to library, give it the name f-Arial Bold, click the bold attribute box, check linkage and export for AS3 in first frame, get warning about class name (not sure why), put dummy text in box, specify f-Arial Bold*, click Embed and include numbers and punctuation - run time result: plain Arial

View 1 Replies

Actionscript 3 - Flash Dynamic TextFiled Font On BOLD

Jan 5, 2010

am using AS3 and i have one dynamic text filed. The properties

-Fontname "verdana"
-size "14"
-style "Bold"

it is shown the correct font in BOLD if there is no value.It will not show the correct font properties am not getting the bold style :(

View 4 Replies

ActionScript 3.0 :: Embed Both - Bold And Italic Styles Of A Particular Font?

Nov 15, 2010

How to embed font so it would have both styles - bold and italic.

When creating new font from drop down menu there are only either bold or italic or other style, but how to embed font with all styles?

View 0 Replies

ActionScript 3.0 :: TextField Not Showing As HtmlText When Using AddChild

Mar 16, 2009

I have an odd predicament that I'm trying to wrap my head around. I have a textField, that is populated by data from an xml file. It contains simple line html line break tags, and when I use the htmlText option, it doesn't seem to recognize those tags, even though they don't show up when I view it online. Here is my code:


Code:
//FLASHVARS CODE
var varName:String;
var paramObj:Object = LoaderInfo(this.root.loaderInfo).parameters;
for (varName in paramObj) {

[Code]......

I can't figure out how to make it render properly. If I choose a dynamic text field already on the stage it works fine, but then the scrollbar doesn't work. I read that a TextField automatically uses a scrollbar when it gets too long. Can anyone suggest a possible work around for this? I feel the answer is staring me in the face and I just can't see it.

View 7 Replies

ActionScript 3.0 :: TextField Not Showing As HtmlText When Using AddChild?

Apr 29, 2009

I have an odd predicament that I'm trying to wrap my head around. I have a textField, that is populated by data from an xml file. It contains simple line html line break tags, and when I use the htmlText option, it doesn't seem to recognize those tags, even though they don't show up when I view it online. Here is my code:

Code:

//FLASHVARS CODE
var varName:String;
var paramObj:Object = LoaderInfo(this.root.loaderInfo).parameters;

[code]...

I can't figure out how to make it render properly. If I choose a dynamic text field already on the stage it works fine, but then the scrollbar doesn't work. I read that a TextField automatically uses a scrollbar when it gets too long.

View 1 Replies

ActionScript 3.0 :: Bold Italic Font Face Doesn't Show Up?

Oct 13, 2009

I am putting the finishing touches on an as3 project (developped in flex for code and flash cs4 to create the UI) and I am running into a mysterious font issue.
 
1) I am loading in a swf file with the font outlines (empty dynamic textfields with embedded characters on the stage.  One text field for each regular / bold / italic / bold italic font styles).
 
2) I then load the swf and then in order to make sure that all font faces are properly available I list them in the output window with the following function:

[Code]....

View 3 Replies

ActionScript 3 :: Embedding Bold Font - TextLayout Fields / Format

Oct 19, 2011

I am having trouble embedding a font as bold using FB4. I am using TextLayout fields and TextLayoutFormat to do this and my code is as follows:

package {
import flash.display.Sprite;
import flash.text.AntiAliasType;
import flash.text.Font;
import flash.text.TextField;
[Code] .....

The font just displays as normal and the 'fontWeight' property is ignored.

View 1 Replies

Flex :: Display Part Of Text In RichText In Bold Font?

Nov 12, 2011

How do you make some parts of spark.components.RichText bold?[code]...

View 4 Replies

IDE :: Embedding Bold Font In Separate Text Field Not Working

Sep 15, 2010

Using:
-Adobe Flash IDE (CS3)
-AS3

First off let me say I did try creating an extra text field off of the main stage set to Bold, and it's Verdana so I'm not exactly "selecting" a second font file all together to be embedded. Instead I am just setting the textfield property Bold to ON.

SO FAR I am not sure what I am doing wrong, but it does not want to go Bold. Aside from using Flex, which I know nothing about.

View 1 Replies

ActionScript 2.0 :: HtmlText With An Embedded Font?

Jan 8, 2007

I have an html text field that I want to use as an ongoing chat field (dynamic) and since flash has alignment issues with images inside text, I thought I'd embed a nice picturesque font and then just code them apart

e.g <p><font face='_sans' size='12'>Hello </font><font size='21'> there</font></p>

The embedded font is the default font for the textbox, so only the non graphical text needs to have a font face. So in that example "Hello" would be in text and "there" would be the graphical font.

Problem is, after much trouble even getting the font to embed and appear, that the sans text never appears.Also, Iam constranied in that I have to publish as flash 6.

View 3 Replies

ActionScript 3.0 :: Bold And Italic Are Not Working For Normal Embed Font In Flex

Feb 2, 2012

I am using swf embed font[normal] in my flex application but if i apply bold or italic for the text,its looking normal only. let me know if you have any solution.

View 1 Replies

Html :: Bold And Regular Font In Dynamic Text Under A Mask In Flash ?

Feb 20, 2010

I have this text "my text is <b>bold</b> and regular".

I want "<b>bold</b>" to be... well, let's say... bold !

I have a mask layer under which there is a text field.

The text field shows htmlText, and i must embed chars. If not embedded, it doesn't display because of the mask. So the solution of importing 2 user fonts ( one bold and one regular) does not work.

View 1 Replies







Copyrights 2005-15 www.BigResource.com, All rights reserved