How can I use the bold/italic characters for embedded fonts (AS2 in CS3)?

Hey everybody,

I have a shared file fonts.swf containing a variety of fonts that use my main swf. I have a movieclip in the fonts.swf file that is exported for sharing life. In my main swf file, I have the fonts.swf imported for execution via a movieclip. This works very well and allows me to use the fonts in the fonts.swf file in my main swf. All my text fields are dynamic and created or updated by ACE. I use the following method to style my text boxes (extra code removed for conciseness, it's just so you can see the overall methodology):

fieldTextFormat = new TextFormat();
fieldTextFormat.font = "fontid."
fieldTextFormat.bold = true;

maintext.styleSheet = myCSS;

maintext.embedFonts = true;

mainText.html = true;

maintext.setTextFormat (fieldTextFormat);

The problem is that I can't put in bold/italic etc. I can obviously add a version of each font bold/italic in my file fonts.swf without problem, and if I use the relevant identifier so I can get the dynamic text field all in bold. What I can't work is how to assign a font embedded separately as the "BOLD" another version police? So, when I put either. fieldTextFormat.bold = true or use of < b > in the html code, the "BOLD" version appears (and even with the italics).

I would really appreciate pointers someone can give me one on that I'm not really sure which way to turn, I have searched high and low on the net but can only find references to AS3 and embedding manually each font in a textfield style hidden on stage, I don't want to do what I use a shared font library (unless it is possible to do it via a library of) fonts shared!).

Thanks a lot for your help.

Dave

To use correctly the bold and italic style you need to incorporate a separate policy for each in the library and set the style police in the font properties.

With the TextFormat all text is placed on a police, it takes so the following then:

txtExample.htmlText is "I am"BOLD" I'm italic I am by default".

There is no other way to use the face property make text html to have different text styles in a TextField.

("bold" and "italic" are the IDS of binding to the library)

Tags: Adobe Animate

Similar Questions

  • How can I activate the bold/italic text formatting in the module of blog on the Web site?

    For some reason, I can't figure out how to activate more options on our blog of text formatting. We used a model of muse blog module. I customized the module to apply fonts, we used on our Web site. The body of the text on the blog is Lato.

    Link to the blog: Coupar Consulting

    When we're going to write a post, you can use the bold/italic options and it appears in the editing window, as shown in the screenshot below:

    Screen Shot 2014-11-07 at 12.31.07 PM.png

    The police is not correct, but because I placed the police in the module to use Lato it shows as lato when you publish, see overview below (don't note any text in bold or in italics):

    Screen Shot 2014-11-07 at 12.32.32 PM.png

    What Miss me?

    Thanks in advance!

    Use your browsers console and inspect the tool. It becomes very easy.

    address, caption, cite, code, dfn, em, strong, th, var, optgroup

    {

    font style: inherit;

    Police-weight: inherit;

    }

    Line 34 ish in French - http://www.couparconsulting.com/css/site_global.css?3869595648

    This overides the fat police style on fort.

  • How can I use the same e-mail for PC and laptop program?

    Hi, I recently bought a laptop and would be able to open, read, send and store my emails, exactly as I do on my PC. We use windows mail. I can do currently using webmail, but I want to be able to do in exactly in the same way as on the PC. Any ideas please? I have Windows Vista on my PC and Windows 7 on my laptop.

    Thank you

    The problem is that Windows 7 comes with no e-mail program installed.  You can use Windows Mail, but you will need to hack (see http://www.techspot.com/vb/topic137494.html).  Pushes Microsoft Windows Live Mail as the alternative, but many can't find any favourable and it is full of annoying bugs, then you might want to explore other possibilities of e-mail.  Outlook is another alternative.  Regardless of the e-mail client, you need go to tools | Accounts | Mail | Properties | Advanced (or the equivalent in another program) and set it to keep a copy of messages on the server on both computers so that each can receive the same messages and then on one set to delete messages after a number of days (so they don't accumulate).

    Steve

  • How can I save the eps AI CS4 for a 3rd party with CS3 file when my previous version was CS?

    I think I'm supposed to make a "Save as", but when I do that, I'm unable to select CS3 in option, given that my previous version was CS. Any help would be greatly appreciated!

    File > save as. Choose EPS, and then click Save. Version will be on the next screen. But if you send the file to a user of Illustrator, is a format better. Smaller.

  • I bought an iphone 4 on ebay but it's locked, icloud so I am not able to use it, and the previous owner is available to remove the device from their account: How can I use the appliance?

    I bought an iphone 4 on ebay but it's locked, icloud so I am not able to use it, and the previous owner is available to remove the device from their account: How can I use the appliance?

    You can not. Try to return the unit and get your money back. There is absolutely no way for you to unlock the device,

  • How can I use the speed dial on my Motorola W490?

    How can I use the speed dial on my motorola W490? I have followed the instructions on the manual book, but did not work.

    The result, I received the screen is "unauthorized."

    Pls help. THX.

    Desiree-

    Can you tell us what steps you took to set your speed dial and use it?

    W490 User Guide

    On page 61, you can find information about adding dial numbers to speed up and 62 mentions how you dial. For example if you have saved your Uncle Paul as Dáil speed 3, you simply hold the button 3 to call this contact.

    Mark

    Support Forums Manager

  • How can I use the same graph of façade in several events in a structure of the event?

    I want to display my sensorDAQ signals in a graph.but I have more than one event in the case where the structure to acquire the signal and display it in the first round of graph.the is to acquire signals from threshold and its shown in the graphic as a feedback.after the first event is executed, I'll call the second event, where the other signals are acuired and compared with signals from threshold of event 1 my question is how can I use the same control on front panel in more than two events in the structure of the event? Please answer me I am stuck.

    Hello

    I have attached here an example of doing the same thing using local variables and shift registers. Take a peek inside. Shift register is always a better option than local variables.

    Kind regards

    Amine31

    (Bravo to give good answers, mark it as a solution if your problem is resolved)

  • How can I use the copy of Windows XP from the desktop on the laptop?

    loading xp with a different product code

    I have a laptop that works under XP. I lost track of the original disc. I also have an office which was under XP but Win 7 is working now. I have the XP installation disc. How can I use the drive of the desktop on the laptop?

    I dought you would get away with it. Try kb892130

    Or the pc on a xp boot cd, reinstall xp with xp cd.

  • When I try to send and receive e-mail using Windows Mail, it wants to use a made up connection. How can I use the wireless connection?

    Windpws Mail & Wi - Fi

    I just installed a TalkTalk wireless router which seems to have installed correctly. However when I try to send and receive e-mail using Windows Mail, she wants to use a made up connection. How can I use the wireless connection? Thank you very much, Dianthus MJ.

    Go to tools | Accounts | Mail | Properties | Connection and check or change the connection properties.  You will need to remove the account and then add it again, but try first and also check tools | Options | Connections.

    Steve

  • How can I use the Media Center to watch video content on my smart TV

    Separated from this thread.

    How can I use the Media Center to watch live video content on my smart TV with Wifi. I couldn't find the instructions to do with Media Player, which I did not

    Separated from this thread.

    How can I use the Media Center to watch live video content on my smart TV with Wifi. I couldn't find the instructions to do with Media Player, which I did not

    do you mean WiFi Direct or WiDi (wireless display)? If WiDi, you need Intel WiDi software installed on a compatible computer.

    What brand of TV and the exact model? If you have Windows Media Center on your computer, you should have Windows Media Player. You can have it disabled in programs, but you can reactivate.

  • How can I use the signature keys in my bweb application works

    Hi all

    How can I use the signature keys in my web work BlackBerry application, I'm looking for video, guide, documentation, step-by-step flow link

    Finally how to properly test it on a Simulator before giving the cod to the words App validation team

    Thanks for your time

    Hello

    Have you seen the guides posted here?

    https://bdsc.webapps.BlackBerry.com/HTML5/documentation/ww_publishing/signing_your_app_1920008_11.ht...

    What stage are you having problems with?

    Erik Oros

    BlackBerry Development Advisor

  • Hello, how can I find the best internet connections for my windows seven? I use my cell phone internet phone with a usb cable.is there any software from microsoft to help me?

    Hello, how can I find the best internet connections for my windows seven? I use my cell phone internet phone with a usb cable.is there any software from microsoft to help me?

    Hello

    The fastest internet connection depends on your internet speed provided by her Internet (ISP) Service provider. Therefore, contact them to receive a best speed of the internet.

    For more information:

    How to increase the speed of navigation: 7 ways to work faster on slow connections

    http://www.Microsoft.com/atwork/remotely/connections.aspx#fBid=TN-_TCHYDMB

    10 tips to help improve your wireless network

    http://www.Microsoft.com/athome/Setup/wirelesstips.aspx#fBid=1vrPRuhAhAg

    Internet Explorer is slow? 5 things to try

    http://Windows.Microsoft.com/en-us/Windows/help/Internet-Explorer/slow-five-tips-to-boost-performance

    It will be useful.

  • How can I use the "fnd_user_pkg.updateuser" package to disable users in bulk?

    Hello

    How can I use the "fnd_user_pkg.updateuser" package to disable users in bulk?

    in EBS R12.1.3, oracle 11g.

    Please see the request for information of the user

    -------------------------------------------------------------------------------------

    SELECT

    SEPARATE

    FU. USER_NAME

    FULL_NAME EMPLOYEE_NAME

    , TO_DATE (LAST_LOGON_DATE, "dd/mm/rrrr") LAST_LOGON_DATE, end_date, FU.start_date

    OF FND_USER FU, PER_ALL_PEOPLE_F PERX

    WHERE 1 = 1

    AND PERX. PERSON_ID = FU. EMPLOYEE_ID

    AND SYSDATE BETWEEN PERX. EFFECTIVE_START_DATE AND PERX. EFFECTIVE_END_DATE

    AND PERSON_TYPE_ID! = 1118 - excluded candidates iRec

    AND LAST_LOGON_DATE < = TO_DATE (December 31, 2012 ', "dd/mm/rrrr") and end_date is null

    ORDER BY TO_DATE (LAST_LOGON_DATE, "dd/mm/rrrr") / / desc

    ------------------------------------------------------------------------------------

    Concerning

    Ngoyi

    Hello

    You need to do the opposite of what the code in the discussion below is:

    fnd_user_pkg. UpdateUser - End Date remove users

    Kind regards

    Bashar

  • How can I use the DC Acrobat Customization Wizard to include an Adobe ID sign in?

    How can I use the DC Acrobat Customization Wizard to include an Adobe ID sign in?  I want my users to install through our deployment tools without having to enter an email address and password after launching the software for the first time.  Thank you.

    This feature has always existed. In the Customization Wizard screen, fill in all fields and don't forget to click on "Grant offline Exception." This avoids having users connect to activate the product because the product is activated by the administrator on behalf of all users.

    HTH,

    Ben

  • Help! For an assignment, I need to use InDesign 2014 to make a digital item. I have the CC with 2015. How can I get the version of 2014 for my Mac

    Help! For an assignment, I need to use InDesign 2014 to make a digital item. I have the CC with 2015. How can I get the version of 2014 for my Mac

    Sorry, I can not explain this. It is not sensible.

    Try going to your cloud creative desktop App. Click on the "gear" icon > Preferences > General. Sign out and then sign in using your Adobe ID and see if it looks different.

Maybe you are looking for

  • Groups of tabs does not

    Tab groups stop working today, by clicking on the tab button groups or 'Ctrl + Shift + E' do nothing. Using FF 9.0.1

  • Satellite A300 - 1 L 0 - display compatibility question

    Hello! One of my friends got a Toshiba Satellite A300 - 1 L 0 Notebook with broken screen.On Ebay that he was lucky to get a laptop Toshiba A300-1HP, which is optically identical to his book and regarding the roadmap Toshiba product has almost the sa

  • Satellite C650: How to disable the spell checking in Windows 7?

    How can I activate the spelling checker on the new laptop to my son so that he will leave to ask me to do?Toshiba C650 with Windows 7. Especially for Facebook and e-mail.

  • Something not right apple Mac.

    Think I accidentally deleted something and while working - it's not the same as in: I had files in the trash that I have out - here are on desktop as no idea what to do with them: iphone7, 1_rah rah Restore.ipsw, iTunes Library Extras.itdb iTunes Lib

  • Updated HP 7 more 1302

    I updated my HP 7 more last night while something was wrong after installation and reboot. but now since I've had to turned it off and tried to make it back on this morning, it just sticks All I see on the HP screen inside powered by android. so, wha