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
Similar Posts:
Nov 12, 2011
How do you make some parts of spark.components.RichText bold?[code]...
View 4 Replies
Sep 20, 2010
I basically can't figure out how to make dynamic text Bold.I have a String that holds text which is passed to it from an XML file's attributes. (It is my understanding that you can't use CDATA <b> in an XML file's attributes. If I'm wrong, please show me how) I have a TextField which I want to display this string in BOLD text. I tried the following and it doesn't work.[code]
View 2 Replies
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
Sep 14, 2010
-Adobe CS3 Web Premium. -Compiling using AS3. I'm pulling in some text values from an external XML file for a "next" button and I set the font to bold when I made it Verdana. I'm not sure why but it still is normal verdana when I compile it.
I've found several posts similar to mine saying I need to embed the bold version of the font, but I don't have the option of purchasing or creating a bold Verdana. Since it is just Verdana, is there not a method I can use to simply bold the text?
View 1 Replies
May 29, 2009
Take a look at this demo, how do they accomplish the Inline Changes feature? To me it looks like they are floating a movieclip over the textarea. What I can't figure out is how they anchored the movieclip to stay in the correct position. If you type something before the movieclip it moves position along with the text, the movieclips even move to the next line when the text word wraps. Does anyone have an idea?
View 1 Replies
Oct 19, 2011
I need to underline particular character of the tab header(like Account) A has to be underlined. We are using tab navigator and canvas container controls to create the tabs in our screen( Canvas label has to be underlined).
View 1 Replies
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
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
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
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
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
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
Aug 10, 2010
textAB is a dynamic textfield. How to make a[0] bold and to keep a[1] normal?
receiveLoad.onData = function(src) {
var a:Array=src.split(",,");
textAB.text=a[0]+newline+a[1];
View 9 Replies
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
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
Aug 28, 2007
I've been developing a piece of code that looks for keywords inbetween tags, and then stores these into an array (hlword) I am now trying to get it so that when it finds these words, it makes the word bold and changes the colour.
[Code]....
The code in orange is what I have been working on in an attempt for it to change the Textformat - Is this going a long the right lines?
View 1 Replies
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
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
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
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
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
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
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
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
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
Apr 26, 2009
i neeed to create a text box with bold letter. my coding is as follows.
but it always shows bold, even i gave tf1.bold = false.
[Code]....
Note: where options[0][0] is an array has all the properties bold = true/false, color = 0x----.
View 1 Replies
Jul 6, 2010
I opened up a file that was created in cs3 flash with cs5 flash and we have some text that is bold in our actionscript code. now when i load that file with cs5 the bold text drop's out of bold and is just plain text. Does anyone know if there is a quick fix for this because what was there before the <b></b> is not working now.
View 1 Replies
Sep 10, 2010
<a href='asfunction:loadText,"+msgA[0]+",,"+msgA[0]+newline+msgA[1]+newl ine+msgA[2]+'Contact: '+msgA[3]+"'>"+msgA[0]+
How do I make "Contact" appear as Bold text?
View 11 Replies
Sep 9, 2009
I have a dynamic text field with a very simple external text loader.this text field just contains t list of people...
Code:
function textLoadComplete(event:Event):void
{
clientList.text = textLoader.data;
[code]....
But now a want the first letter of every line in bold or 2 point sizes bigger.I know I can only embed one text style - and bold would be an additional style, right?But it's only a simple list of words - no links - no other extras.
View 2 Replies