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


Similar Posts:


Flex :: Change Font Color Of A Part Of Text In TextArea?

Aug 19, 2010

I am using actionsript 3 and flex 3.5. Is there any way to change the font color of a part of text in TextArea control without using "htmlText" property?

For example I have a string "dog, cat, fish". I want to change the color of "cat" word to red.

View 2 Replies

ActionScript 1/2 :: Make Part Of The Text Bold?

Sep 23, 2010

TheProfileRoot.EngineeringText.text = "Level " + PlayerEngineerLevel + " Engineer - level up in " + PlayerReqEngineer + " xp"; I want the "Level " + PlayerEngineerLevel to be bold. And the rest to be plain.

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

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

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

ActionScript 2.0 :: Loaded Text File - Cannot Bold Or Change Font Color

Mar 26, 2003

I have loaded text on flash from an external txt. file. But when it comes to adding html to the files such as "font face" or to simply bold the text it won't work, I have check to have the html clicked on Flash, but the text just wont change.

View 9 Replies

ActionScript 3.0 :: Display Bold Text In A Dynamic Text Field Fed By An Xml File?

Nov 2, 2011

I have a dynamic textfield being populated with an xml files' content. I then have a css stylesheet loaded into format the text. This all works great, but what doesn't work is the ability to bold some of the words in that text. I have both the regular and bold versions of the font embedded into the swf, I can test out just a bold block of text and it works fine. The css is also working as it will change the size of the text that I tell it to. Everything is working, but for some reason I am not able to get the bolder version of the font to display in the same text box as the regular one. I have also tried to change fonts but had the same outcome.

View 2 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

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

Actionscript 3 :: Getting Bulleted, Bold, Embedded Text To Display In Flash CS5

Sep 29, 2011

I'm trying to get Flash to display a bulleted list using bold embedded fonts.

What I'm finding is that I can get bold fonts with bullets, but not embedded. Or embedded fonts with bullets that aren't bold, or bold embedded fonts without bullets.

This is incredibly frustrating (as well as annoying).

I'm embedding the fonts in the library and exporting them via actionscript. Here's my code...

var tf:TextField = new TextField();
tf.multiline = true;
tf.width = 100;
tf.x = 200;

[Code]....

The above code produces the regular font embedded bulleted list.

If I change the bulletTF.font line to bulletTF.font = myFontBold.fontName The font goes bold and the bullets go away.

View 1 Replies

ActionScript 3.0 :: Font Embedding - Strange Space On Top, Also Dont See Bottom Part Of Text?

Apr 19, 2010

I have a program and use there dynamic text. For this text i use special font CAMPFIRE.ttf.A lot of users dont have this font on their pc but i want then they open my .swf and see this font.For this i use next code:

var fooFont:foo = new foo();
var format:TextFormat = new TextFormat();
format.font=fooFont.fontName;[code]................

but i dont see my dynamic text correct. I see strange space on top, also dont see bottom part of text.pic preview: All code here:
package {[code].........

View 14 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 3 :: Programmatically Set "Faux" Bold And Italic Font Styles In Flex?

Feb 4, 2012

I have a client that I build a business card "builder" application for in Flex. All the text elements that users add to the stage are Flex spark TextArea. I have a list of fonts that we allow the user to set on the text areas and some of the fonts included do have Bold and Italic versions of the font. The others that do not I simply disable these options in the control panel so the user doesn't have the option to click bold or italic buttons.

Photoshop does something similar if you load a font that doesn't have Bold or Italic options they disable the dropdown that would allow you to select these options in the text pallet http://grab.by/bOTC

When bold and italic aren't an included font face then Photoshop as a couple of buttons for applying Faux Bold and Italic to the font. Basically they programmatically thicken up the font face or slat it to make it look italic.

I've tried just setting fontWeight and fontStyle on the fonts that don't have bold or italic included in the embedded fonts and the result usually is a "web safe" font shows instead of the selected font or nothing at all happens.

I am wondering if there is a programmatic way that anyone has found that will do this in Flash / Flex. Basically thicken the font face or tilt it slightly to look italic. My guess is this would be pretty difficult and not worth the time and effort to the client but would be a neat thing to figure out and have a solution for.

View 2 Replies

ActionScript 2.0 :: Switch The Text To Display In An Arial Device Font Text Field?

Feb 19, 2010

Is there a way to detect if a dynamic text field that has basic english characters embedded can't display some foreign text, japanese for example?

So I can then switch the text to display in an arial device font text field.

Sorry if this has been answered b4, but I can't find it if it has.

View 0 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

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

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 :: 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

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

Calibri Font Display Is Unclear If Text Is Read From Xml File

Nov 14, 2009

when the flash file reads text from a xml file, the font display is unclear. when the text is embedded in the flash, it appears clearly

problem in detail -

i am unable to resolve this problem despite my best efforts. see '~about.fla'. it has been decompiled from a swf file as the original source code was not available (can this be causing the problem?). the xml folder resides in the same folder as '~about.fla'. it contains 'about.xml'. you can download these files at [URL]
 
i discovered a problem - if you view 'about.swf' - when you click on 'history' link, you can see that the text is distorted. this text is read from the xml file. but is you click on the 'key people' link, you can see that the text appears perfectly. this text is embedded in the flash itself.

i have given the screenshots 'text is unclear.jpg' and 'text is clear.jpg' to further explain my query.

View 2 Replies

Calibri Font Display Is Unclear If Text Is Read From Xml File?

Jan 28, 2007

i am unable to resolve this problem despite my best efforts. please see '~about.fla'. it has been decompiled from a swf file as the original source code was not available (can this be causing the problem?). the xml folder resides in the same folder as '~about.fla'. it contains 'about.xml'. you can download these files at discovered a problem - if you view 'about.swf' - when you click on 'history' link, you can see that the text is distorted. this text is read from the xml file. but is you click on the 'key people' link, you can see that the text appears perfectly. this text is embedded in the flash itself

View 2 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 :: RichText Vs Label Control

Apr 16, 2011

I have a flex project where I uses the spark RichText control quite extensively, there are places where it is possible for me to replace RichText with the Label control - (The rich text occurred due an import from Flash Catalyst). My question is, is there any space/performance advantage in using Label over RichText, since Label seems like a much lighter option, I am building a web app, size matters.

View 3 Replies

Flex :: Autosize - RichText/RichEditableText Autosizing?

Mar 21, 2011

In the past, I used the flash.text.textField object something like this:

tf = textField();
tf.autoWrap = true
tf.autoSize = "left"
tf.width = 100;

[Code]...

I'm coding this, so if you have some suggestions, please post them in code, not MXML.

but UITextfield is not a TLF component and the example for RichText does not cause the RichText height to grow with the text. What I need is a component that I can set the width, add TLF formatted text and get the height of the component once it has rendered. Just like a TextField does when you add text.

View 3 Replies







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