ActionScript 3.0 :: Embedding Helvetica Bold (continued)?

Dec 4, 2009

Problem: although I'm embedding Helvetica Neue 75 Bold, flash displays Helvetica 55 Roman. note that it's not Helvetica Neue 55 Roman, but Helvetica 55 Roman. So a completely different Font family that I don't even happen to have installed.

I'm assigning text to a dynamic textfield using myField.text = "My text that I added dynamically.". Once this is done, if you examine the myField.htmlText property you will notice that Flash has added a bunch of crap:

<TEXTFORMAT LEADING="2"><P ALIGN="LEFT"><FONT FACE="Helvetica 55 Roman" SIZE="20" COLOR="#000000" LETTERSPACING="0" KERNING="0">My text that I added dynamically.</FONT></P></TEXTFORMAT>

Notice in particular the <FONT FACE...> tag which is what I believe is causing the problem - it's hard-coding the Helvetica 55 Roman font in there. Where the heck is that even coming from? And more to the point, how to get rid of it?Before you suggest a RegExp, I tried that and it doesn't work. I can strip out the <FONT> tag, but when you then re-apply the new string and trace out the .htmlText property again, that <FONT> tag is back!

Code:
var txt = String(txtQuestion.htmlText).replace(/<FONT[^>]+>(.+)</FONT>/, "$1");
txtQuestion.htmlText = txt;
trace(txtQuestion.htmlText);

Also, note that this ONLY occurs for multiline text fields. As soon as you switch to single line, everything is perfect (except that it's not multiline!!)

View 5 Replies


Similar Posts:


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 :: Embedding Fonts But Text Getting Bold

Oct 18, 2010

When Embedding fonts in as3 the text getting bold is there any way to rectify it.

View 2 Replies

Actionscript 3.0 :: Embedding Fonts XML CSS Bold Italic?

Oct 23, 2008

I've been trying everything with this issue so thought I'd put it out there to see if anyone can offer a solution or even advise if this is possible or not.This is the scenario:

I dynamically create a textField. I load an external CSS file into a stylesheet. From an XML file I load HTML content into the textField via .htmlText I have added the font to the library and have made it available for Export for ActionScript The HTML has spans with classes eg:

<span class="boldText">Flash Flash Flash</span>

The CSS states:

.boldtext {
font-family:Anivers;
font-style:italic;

[code]....

The font I'm using does not have any other family members like bold or italic Here is the problem. Leaving embedFonts = false things work just fine. But obviously I need to embed this font so all can see it. As soon as i set embedFonts = true I no longer get bold or italic.Is this a case of because the font does not have a bold or italic the system it just rendering, or am I just missing something? For example the checkboxes in the font's properties where you can choose bold and italic. I tried these but no luck.

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

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

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 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 :: Helvetica A Screen Font?

Nov 14, 2006

The graphic designer has ordained that Helvetica be used for a Flash project.

However, using embedded Helvetica in dynamic text fields yields less than desirable results.

Basically, some edges of the text appear blurry (despite setting the antialias to Advanced).

Just wanted to know whether the Helvetica font was meant to be a screen font or strictly a print font.

View 1 Replies

ActionScript 3.0 :: Text - Rollover State To Be HELVETICA REGULAR

Oct 25, 2010

Let's say I have a button called HOME, and in this button the word home is in HELVETICA FONT REGULAR STYLE. Now, Helvetica has lots of styles.Say I want the rollover state to be HELVETICA REGULAR. How can I do that with actionscript? My BTN instance name is "home", and my text field instance inside the btn is "home_txt".

and some general question: is it better just to create buttons for each category, or just create one general button, and reuse it giving a different instance name every time? Like, should the word HOME be a button, or should I add a rectangle button underneath it and change the instance name accordingly?

View 1 Replies

Professional :: Continued With Looping Tween

Apr 23, 2010

I have a problem tweening in a loop because I'm calling an image purely through AS3:

[Code]..

View 2 Replies

ActionScript 3.0 :: Menu Rotates The Other Images Resize And Get Smaller ... Continued

Jul 23, 2009

still progressing with the rotating menu, I am trying change the values so that I can position correctly but I can't seem to tweak it? as the menu rotates the other images resize and get smaller, I think its somewhere within the script that is doing this, I would like it not to resize as it rotates away from center. but I can't seem to find what is making it do this? is this making any sense, i have been changing these values, but not quite working; values I have been looking at on the circleMenu.as at line 38

[Code]...

View 29 Replies

Actionscript 2.0 :: Carousel With Buttons - Continued - Move Only When Press A Button

Jul 24, 2008

, i want to make a carousel -type gallery like the one from the tutorial but with a slight variation: i want it to move only when i press a button.(move left when i press the left arrow and to the right when i press the right).And i want it to move by one image at a time and i want to know which image is to the front(i've created a dynamic text field called imgName).I hope i'm explaining this correctly and i'm attaching an example with two arrows with no actions on them.

View 11 Replies

ActionScript 1/2 :: Continued Trouble Making Button Hot Spot Invisible After Click?

Aug 12, 2009

i have a few buttons that use loadmovienum to load a few clips into levels. The code on each button is something similar to:
 
on(release){    loadMovieNum("print_index.swf",1);printbutton._visible = false;webbutton._visible = false;illusbutton._visible = false;threedbutton._visible = false;retouchbutton._visible = false;}
 
But because the print_index movie slowly scrolls across the stage rather than immediately replace it, there is a moment where the button turns completely invisible after the click. Perhaps the bigger problem is that it doesnt make any of the accompanying buttons invisible like it is supposed to- only the one that is clicked.

View 3 Replies

Embed "bold" Versions Of Verdana To Make Bold With AS?

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

ActionScript 2.0 :: Bold, Italic And Bold/italic Won't Embed?

Jul 18, 2009

I've imported four fonts into the Library and used Linkage to enable Export for Actionscript. The fonts are the four versions of Trebuchet MS:

Trebuchet MS
Trebuchet MS Bold
Trebuchet MS Bold Italic
Trebuchet MS Italic

They are named like this in the Library and for example the 'Bold Italic' version has both 'bold' and 'italic' selected in its properties.

Then I drew a dynamic textfield and selected for it's font 'Trebuchet MS Bold Italic*' so that the embed font was used. I also embeded the glyphs for 'Basic Latin' and 'Latin 1'.

Then I used this code to fill it with text:

ActionScript Code:
my_txt.embedFonts = true;
my_txt.text = "This is a sample";

The text is placed, however, it is always in the Trebuchet MS regular font. Also when I click the bold and italic icons in the Property Bar, the font won't go bold/italic. The same for just bold and just italic. It only turns bold/italic when I delete all font symbols accept the Bold Italic one.

View 9 Replies

Professional :: How To Use Faux Bold

Jan 5, 2011

I was given a fireworks png design that makes use of century gothic text with a faux bold applied. I can get a bold version of century gothic in flash, but this is thicker than the faux version. Can I force faux bold?

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

ActionScript 2.0 :: Xml Bold - Let Li And B Working?

Mar 21, 2005

[Code]....

What do i need more for let li and b working?

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

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

ActionScript 3.0 :: Do Home_btn In Bold When Click

Dec 3, 2008

I am creating a website in flash and have made a button based on a text string (e.g a "Home" button) when user click this button I want to make the text "Home" in bold" so the user can se where he is on the page How can I do this in Actionscript 3 I have tried using the button method "home_btn.setStyle(..)" and a lot of other things but I can't seem to get it to work.

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

ActionScript 1/2 :: Make A[0] Bold And To Keep A[1] Normal?

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

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

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







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