Actionscript 3 :: Flash CS5: Combining Bold And Regular Text In A Textfield?

Sep 20, 2010

I am trying to combine bold and regular text in a textfield but how do I embed an font family and not just a single style of a font?See example of how I embedded a font, you can only choose one style: "regular", "bold", "italic" or "bold italic" at once:However, when you try to embed the text (via the IDE settings or actionscript) how do you set the font to be the entire family?

View 1 Replies


Similar Posts:


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 3.0 :: Bold And Regular Text With Embedded Fonts CS4

May 12, 2009

Anybody know the trick to getting both bold and regular text in a dynamic text field? I can do it with system fonts no problem (using htmlText), but the client wants copy to be Futura Medium and Futura Bold. I'm pretty sure this isn't the first time anyone's had to do this.

View 1 Replies

Actionscript 3 :: Textfield With Arial Regular And Arial Bold Does Not Work Together In Flashcs5?

Aug 17, 2011

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:I change the text of two fields using c.txt1.text="changed text90";mc.txt2.text="changed text90";

View 3 Replies

ActionScript 2.0 :: Making Text Bold In Textfield?

Jan 29, 2010

I want to make an imported text from a textfile be bold.ow do I do it?This is what it looks like now:

this.createTextField("my_txt", 10, 10, 10, 80, 100);
my_txt.setNewTextFormat(new TextFormat("Arial",12,0xCC6600));
boldFormat = new TextFormat();

[code].....

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

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 2.0 :: Combining Arrays Into A Textfield?

Oct 21, 2005

I've successfully loaded my xml and created three arrays to hold the news article date, title and text, using the following code:

HTML Code:
var my_xml = new XML();
my_xml.ignoreWhite = true;
my_xml.onLoad = function(success) {

[code]....

How do I firstly get my arrays into a textfield with the format date,<br> title,<br> story, and secondly how do I deal with that horrible datestamp to make a recognisable uk date?

View 1 Replies

ActionScript 3.0 :: Combining Variable With Sting For Html Textfield

Sep 15, 2009

I'm using the following code to try and change the font size of a textfield dynamically using a varaible but I can't get size to use the variable as a value however all the other variables I combine with the string works as intended just not size ....

PHP Code:

var chSize = 50;
trace(msg);
insID.htmlText += "<font size="+chSize.toString(16)+" fontFamily='Tahoma' color="#"+newColor.toString(16)+"">"+msg+"</font>";

[Code].....

View 4 Replies

Actionscript 3 :: Change The Content Of A Regular Text Field Created With The Text Tool In Adobe Flash CS5?

Nov 21, 2010

I have made a movie clip which I export to ActionScript 3.

In this movie clip I have drawn a text field (area? well TEXT) using the plain "Text Tool".

After selecting the text, and after I have entered "0" to be displayed, I edit its properties. It's Instance Name, defined at the very top of the list I have written "score". The text engine is TLF Text and the text type "Read only".

When I have made a instance of the movie clip using AS3 I can't get the value of the text instance named "score" - when calling something like trace(getChildByName("score")) in the constructor I just get null.

I want to be able to get the value of the text "score", and I would also like to change its value.

Just how do I get the value from ActionScript? I don't want to have to create the text progamatically and position it, and I doubt that I have to.

View 1 Replies

CS5 :: Can't Make A Textfield To Bold In It

Jun 24, 2011

I've got an FLA which was originally created using CS3, and i've got a dynamic textfield in it that uses font "Gadget".If i open the FLA in CS3, it gives me option to toggle the BOLD option, and when i compile it, the font appears to be bold in the compiled swf.

When I open the same FLA in CS5 (version 11.0.2.489),

---> I don't get any option to make the font bold on the same textfield,

---> and when i compile it, the text remain the same, it does not show as bold.

View 5 Replies

ActionScript 3.0 :: Flash Text Fields / HTML Text / Bold?

Jul 5, 2010

I have a linked movieclip that contains two textfields.One of the textfields needs to have regular and bold text, so I thought I would use htmlText however it's only showing the regular font that I embedded?I made the textfield in Flash and called it "details".I also tried to make another textField in the symbol called, "invisi" and I set it not visible:invisi.visible = false;I embedded the BOLD version of the font in the invisi textfield, hoping this would make the "details" text field show the bold font...but no luck.

View 2 Replies

IDE :: Embedding Helvetica Bold Into Dynamic Textfield?

Nov 12, 2009

I have a single dynamic textfield containing NON-HTML text meant to be displayed in a single typeface: Helvetica Neue - 75 Bold. When I author on a Windows installation, the font displays as Helvetica Roman. When I author on the Mac, the font displays correctly as the boldface version.

how to embed multiple weights of a typeface so you can use HTML markup to, say, mix bold, italic and roman text in the same textfield. This is about manually embedding a single font, Helvetica neue 75 Bold into a dynamic textfield using the Flash IDE and it not working on Windows.

View 14 Replies

ActionScript 3.0 :: Using A Mixture Of Bold/italic Embedded Fonts In One Textfield?

May 21, 2010

I have an HTML string that uses bold and italic tags which I need to apply to a TextField. I need the font to be embedded though and I can't seem to find a way to do this. From what I've read it seems that Flash needs to use the actual bold/italic versions of the font rather than just changing it with HTML? In which case I can't do it all in one textfield because you can't change font? The only solution I found was a suggestion to use the [Embed()] method rather than the method I am using (embedding the font in a library symbol) but I don't think you can do that either with Flash CS3?

View 5 Replies

Flash :: Dynamic Text Lost Its Bold Styling?

Jun 16, 2011

In the Flash IDE, I have made a dynamic text field bold. When the Flash is compiled and run, the bold styling disappears. How do I retain the bold styling?

Top: IDE

Bottom: SWF

View 1 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 2.0 :: Text Format Input Text Bold Without Selecting Text?

Feb 4, 2009

Trying to format input text fields using format buttons in Actionscript has been challenging. I've been able to put some pieces together, however I am still missing some things. Here's my code:


Code:
function selectText() {
startSelect = Selection.getBeginIndex();[code].........

I need the ability to click the Bold button and it bolds or unbolds at the cursor so if I hit the bold button what I type from that point on will be bold until I hit the button again and then it goes back to regular. I am able to change it to bold or unbold by selecting the text and clicking the button but I also need to do it without selecting.

View 3 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 2.0 :: Combining Dynamic And Static Text?

Apr 14, 2011

I'm trying to display a score in CS4 using AS2.0. The score is out of 14, so the display should read "1/14", "2/14" etc. I've got some code that scores correctly, but would like the text box to incorporate the "/14" which is static text. If I sit a static text box next to the dynamic text box, it doesn't align properly. I've anti-aliased the text (Bitstream Vera Sans Bold), but the alignment is still not reliable, even checking type spacing, correct Y position on page etc. The code I have currently is:

var score:Number = 0;
function addScore() {
score++;
scoreBoard.variable = score;
}

I thought by altering the last line to

scoreBoard.variable = score + "/14";

but this doesn't work, the "/14" does not display.I've also tried scoreBoard.text = score + "/14"; In this instance, the "/14" is not displayed when the score is zero, then displays "1/14" when the score is 1, but then displays "a/14" when the score increases.

View 5 Replies

ActionScript 3.0 :: Combining Data From 2 XML Fields Into 1 Text Box

May 25, 2009

I have loaded an XML file and I am populating several text fields with the data. For the first name and last name fields, I would like to combine the data into one field for appearance sake, but for some reason, only the first name data is appearing when I run it. It seems to be truncating the last name. My code looks like this:PHP Code:Obj.Name.html Text= xmlFile.name.first +xmlFile.name.last;Do I have some syntax wrong? Is concatenation allowed in AS3?

View 2 Replies

Bold The Text When Change The Text By Setting The .text

Mar 3, 2010

I create a dynamic text object on my stage. I set the family to Arial and style to Bold. When I change the text by setting the .text to something else, the bold goes away and it just becomes Regular. How can I make it stay Bold?

View 1 Replies

IDE :: Bold Text In Dynamic Text Box Broken In CS4?

Jan 6, 2010

I'm trying to update an old CS3 project, which had a dynamic text field with HTML formatted text using the <b> tag to create bold text in places. In the CS4 version the bold text simply doesn't show up. It does in the CS3 version. I have embedded the font in both regular and bold varieties, both by using the offstage empty text field method, and the font in library method. I simply can't get it to work. I've seen other people having this problem with CS4 on other forums, but no solutions or workarounds as yet.

View 3 Replies

ActionScript 1/2 :: Can't Bold Text Why Not?

Aug 14, 2011

I've got a dynamic text field that I want to sometimes be bold, sometimes not. It's called "myTextField".I'm sending it a variable called "myText" and trying to bold it as follows:myTextField.text = "<B>" + myText + "</B>"

- The text field has the font embedded.

- I have some regular AND bold text in the text field in authoring

- The text field is set to receive HTML text in properties.

But it keeps putting "<B>" right in the text field before my variable and "</B>" after. What am I missing / not getting here?I know I've done this before, but can't find where.

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

AS2 ::Making A Dynamic Text Box Bold?

Aug 24, 2010

lets say theres a dynamic textbox with the name 'txt1'

i typed the code:
txt1.bold = true;

but it doesnt work, the text is still not bold,

View 1 Replies

Professional :: Bold In Dynamic Text

Nov 1, 2010

I have a dynamic text on my stage called text_txt I want to write the html code <b><u>test</b></u> so here is my code

[Code]...

View 15 Replies

ActionScript 3.0 :: Bold Text When Clicked?

Sep 30, 2009

I have a textfield that has a mouse click event, and when the user clicks on the text field, I would like to make the text bold, but the following code doesn't work:

ActionScript Code:
private function onTxtMouseClick(e:MouseEvent){
var el = sng.getChildByName(e.target.name);  // The text field[code].........

View 2 Replies

ActionScript 3.0 :: Text Becoming Bold When Set To Dynamic?

Jun 26, 2009

I have a text field in Flash (CS4, using AS3), the font is set to Helvetica Neue, and it looks fine as a static text field, but looks bold when it is set to dynamic. What causes this? Is there anyway around this problem (other than setting the field to static)? Is there a way to control tracking with TextFormat in AS3? You can control leading with the object, but I can't seem to find a way to put more space between letters.

View 2 Replies

ActionScript 3.0 :: Bold In Input Text Box?

Jan 6, 2011

I need to type text as Bold in the input text field. But when I given a single letter as a bold. Then the output is find as I expected.

View 1 Replies

Data Integration :: PHP Regular Expression Of URL In Text?

Feb 27, 2008

I have some text that is displaying from a database table and inside that text is a web address (i.e.,

[Code]...

View 1 Replies







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