Incorporate the classic fonts TextField does not work, even with applied TextFormat

Hello.

I created an article which extends MovieClip and includes a TextField where TI where it will display the name of the element. I want to join the police but I have a problem because the text does not appear.

I read the description IncorporerPolices (http://help.adobe.com/en_US/FlashPlatform/reference/actionscript/3/flash/text/TextField.ht ml #embedFonts) and I formatted the TextField via a TextFormat instance with my chosen font.

My code:

import flash.display.MovieClip;

import flash.text.AntiAliasType;

import flash.text.TextField;

import flash.text.TextFieldAutoSize;

import flash.text.TextFormat;

SerializableAttribute public class point extends MovieClip {}

private var _sName:String = "";

private var _txtName:TextField = new TextField();

private var _nColor:uint = 0xAACC00;

private var _tfText:TextFormat = new TextFormat();

public void Item(s:String) {}

also tried to integrate here, but got the same result

s = _txtName.text;

_txtName.AutoSize = TextFieldAutoSize.RIGHT;

_tfText.font = "Helvetica";

_tfText.size = 30;

_tfText.color = _nColor;

_txtName.setTextFormat (_tfText);

_txtName.antiAliasType = AntiAliasType.ADVANCED;

_txtName.embedFonts = true;

addChild (_txtName);

}

If I remove the part to incorporate the text shows correctly. I am at a loss, what order of the elements of what I need to use to embed fonts properly?

Thank you.

1. you should have a font in your library.

2. it must have a class name (for example, HelveticaClass)

3. you should use something like:

helvetica var: make = new HelveticaClass();

_tfText.font = Helvetica.FontName;

Tags: Adobe Animate

Similar Questions

  • With the front camera, microphone does not work, but with the camera back, it works fine. Please give me solution

    whenever I have to video chat with anyone with front camera on they won't listen to me. Even when I record with fromt camera microphone does not work with the camera back, everything works correctly and even with siri, I can't talk more but when I take a call they can hear perfectly

    Get help with microphones on your iPhone, iPad and iPod touch...

  • My mobile mouse 3000 does not work even with new battery, no green light on USB, when connect to the system, it says unknow device USB

    the system says: one of the USB connected to the computer with multifunctioned, and windows does not recognize it.

    Hello

    · What is you receive the exact error message?

    Follow the steps in the links below and check if this can help: Troubleshoot failures in the response to the mouse or wireless keyboard: http://support.microsoft.com/kb/838398

    Troubleshoot the failure to find new mouse connected to your USB port: http://support.microsoft.com/kb/223256

  • calendar for the week of jQuery does not work in the new version of firefox v42.0

    Hello
    Thanks for your reply.
    IAM develop on the issue that iam facing knowledge, events on the calendar for the week of jquery does not work in firefox version iam 42.0 faced to the problem that iam unable to change back or delete nominations that are displayed.
    For example if try clicking on one of the appointment generally a popup comes to change or to restore or remove the appointment but iam not getting that. But this feature does not work in lower versions of firefox (version 32.0 for example). Please check the jquery week calendar demo following URL looks like this:
    http://robmonie.github.IO/jQuery-week-calendar/full_demo/weekcalendar_full_demo.html

    I've just rescheduled lunch 12:00-12:15, so it seems to work on 42 Firefox on Windows.

    What is the latest version, where it has worked for you?

    Have you tested Mode Firefox safe to rule out the possibility of an extension conflict? See: Firefox in Safe Mode troubleshooting questions.

  • Bought two of the iTouch, one for my wife and one for me. In the Notes his has the "" symbol for the formatting and mine does not work. Any suggestions?

    I bought the iTouch two at a time, one for my wife and one for me. In the application 'Notes' my wife shows the symbol "+" to the formatting and mine does not work. Any suggestion.

    Could you please include screenshots of the so-called issue?

  • the software sticky password does not work.

    the Sticky Password plugin does not work in Firefox 37.

    Changed the product forum this thread is in Thunderbird in Firefox so no need to create a duplicate thread.

    It is an Extension in Firefox and not a Plugin like Flash or Java.

    You're too test is based on the Beta channel (currently at 37.0b3), and the Extensions like these tends to do not support the current version at most which is Firefox 36. www.mozilla.org/Firefox/All/

    In the Sticky Password software you can go in "parameters - supported browsers and install the extension" because I think that may be the case there are updates? https://support.Mozilla.org/en-us/questions/948577

  • Firefox does not (Cup) of the lower edge and the right edge of the graph. IE10 does not work.

    Firefox does not (Cup) of the lower edge and the right edge of the graph. IE10 does not work.
    Office Windows 7 2009 service pack 1 Firefox 26 Internet Explorer 10
    Flash player version 11.9.900.170 plugin 11.9.900.170 activex version used by Firefox

    Problem began late November when Miniclip.com forced updated flash player to version above
    -C' was when they started to play a video advertising in the game box before you could start.

    Have screen shots of IE10 and Firefox26 side-by-side clearly showing the problem - how these can be downloaded for see you? E-mail? Web site? This place seems to be text only?

    In the meanwhile the grandchildren and self have learned to use IE10 instead of Firefox that we prefer.
    Their House of Windows XP has same Flash Player in Firefox and it works fine.

    Downloaded two screenshots on Media Gallery.

    You can not attach a screenshot in the first row who starts a thread, but you can do it in subsequent responses.

    Try disabling hardware acceleration in Firefox (you will need to close and restart Firefox).

    • Tools > Options > advanced > General > Browsing: "use hardware acceleration when available.

    See also:

    Reset the zoom of page on pages that are causing problems.

    • View > Zoom > reset (Ctrl + 0 (zero); 0 + Command on Mac)
  • The date and time does not work.

    I have an iphone 5 c.

    The date and time does not work. This is the second time.  The first time was about 3 to 4 months again and now again after upgrade to iOs9.3.1.

    Even after trying to change it manually, time slows down or stops.

    Everyone has problems with their date and time?

    • Try a forced reboot: hold down the House and on the buttons until the unit turns off. Ignore the cursor off if it appears. Once completed, if it does not start on it own, turn off power with the key On. In some cases, it also contributes to double click the Home button and close all applications before restarting.
    • Restore factory settings (no backup)
    • Make an appointment at your local Apple store to have it checked.
  • The new tab key does not work.

    The new tab key does not work when I click it. I reinstalled FF but with no luck - any suggestions would be appreciated.

    What can a problem with the Ask.com toolbar (Tools > Modules > Extensions)

    See:

  • Ejection of the Replicator Express - II does not work

    The duplicator button eject does not work. I have laptop series TECRA M. downloaded the driver for duplicator of toshiba website support and reinstalled but of no use. I searched in all the forums, but did not find any thread for this problem.

    If anyone has any idea on this issue, please help. The button eject everything does and do not see an option in Windows 7 to eject the PC I did with IBM lenovo laptop with a docking station.

    Is - this top hat of Toshiba laptop what do you use?
    I want to say I put t knowledge how it works on other laptops but why you think it should work in the same way on laptop, you used before?

    You can remove your Tecra of docking station using gear hand placed on the upper side right?
    What happens after doing this?

    By the way: If you check the specs of this under system requirements port replicator s Win7 are not.

  • I keep seeing pop up ads powered by '' cn tatami '' whenever I have to navigate using Safari or open a link on the FB Adblocker app does not work for this. Any suggestions? There is no option to cross the pop-up ad that it redirects to various Web sites.

    I keep seeing pop up ads powered by '' cn tatami '' whenever I have to navigate using Safari or open a link on the FB Adblocker app does not work for this. Any suggestions? There is no option to cross the pop-up ad that it redirects to various Web sites.

    Cache and history of the site Clear settings - Safari -.

    (1232)

  • Why the Polish support page does not work?

    Why the Polish support page does not work?

    http://PL.consumer.Toshiba.EU/PL/support/home/support_home?

    I think the error message is pretty clear:

    + Service temporarily unavailable +.
    + The server is temporarily unable to process your request due to downtime or maintenance capacity problems. Please try again later. +

  • How can I get the airplay icon to appear? Changing the settings of firewall does not work

    How can I get the airplay icon to appear? Changing the settings of firewall does not work

    Hello Drjoe378,

    I understand that you do not see the AirPlay icon in iTunes on your Mac. If you have verified that your firewall is disabled or that the problem occurs regardless of the status of your firewall, there is a little more that can help return your ability to connect to AirPlay devices.

    1. Make sure you have the latest version of iTunes and Apple TV software.
    2. Connect your computer and other devices on the same network Wi - Fi. If you are using Ethernet, connect the two devices on the same router or hub. If you use the Wi - Fi and Ethernet, plug your device AirPlay the same router that your computer uses for Wi - Fi.
    3. Restart your computer, device AirPlay and network router.
    4. Because some Airplay devices include a power switch for AirPlay option, look for the option in the settings and make sure that the feature is enabled. Refer to the user guide of the device for more information.

    Use AirPlay to stream content from iTunes on your computer wireless
    https://support.Apple.com/en-us/HT202809

    All my best.

  • Microsoft Security Essentials - the planned-out scan does not work.

    In addition to the question about the scheduled scan output after upgrade to Windows 7 to McAfee.Microsoft Security Essentials series instead of McAfee. The scan-out plan does not work.

    Support McAfee tried to straighten my computer of conversation I understood the problem of the update disc. I want to ask a question to the update command:? many problems were very pushed us all after your update. How now to get out of this dung under the name Toshiba upgrades?

    Hey Buddy,

    To be honest I don t know what you re talking about exactly. What has to do with Microsoft Security Essentials McAfee?

    As far as I know it s recommended using a security program only. You must use a Microsoft or McAfee, but not both!

  • Webcam on the Satellite A200-175 does not work - error code 10

    Hi all

    I bought a Satellite A200-175 yesterday and I am trying to use the webcam, but it does not work. I searched the forum for possible solutions, but so far I have not found anything that solves my situation.
    The laptop came with a preinstalled Vista OS, but the software of the webcam was not preinstalled. So I downloaded the latest Toshiba download page doftware and installed.
    Subsequently, it still does not work and so I changed drivers for generic Microsoft (based on the advice of the forum).

    I tried to reinstall drivers (several times), but that did not help. Device Manager keeps giving me the error code 10 (device cannot be started).

    I'm a bit of idea, so any help would be appreciated!

    Hello Franca

    It's very strange because I installed the recovery image on notebooks P200 and U300 (both with the webcam) and I didn't notice any problem. After the first boot the cam will be recognized as new hardware and installed correctly.

    Have you installed some Messenger like Yahoo or MSN and try to use it with one of them?

Maybe you are looking for

  • Hey there... (I'm not very good in English... but I'll try)

    Hello.. I want to help here... I have just updated my firefox to 8.0.1 and I have a problem... the problem is one of the site whenever I go... I'll be... upward in the name of the site where I am... and for a small cm (around the low-er) I can't put

  • Is satellite L505 - 10 p - really an Express card slot?

    Hello In the features of the Toshiba L505 - 10 p, an Express card slot is mentioned. I feel a little stupid for asking this, but where is this slot machine? I see something that looks like this above the entrance to Esata, but it is closed. How to op

  • Graph of the special palette combinations

    Hello! I have a chart that displays some sliders and wave. Is it possible to assign a combination of special keys for the chart controls palette? Say I want to zoom in on the graph, then I could press 'z' on my keyboard and then the zoom depending on

  • Hotmail "disconnection failed! enable cookies from third party by which your browser settings. "__

    When you try to sign out of hotmail, during the last two weeks, I've been unable to log and get the message "disconnection failed!  We could not sign you out because your browser appears to be blocking third-party cookies. Close all browser windows t

  • Export of all fields in Windows Live Mail

    When I try to export contacts in Live Mail under the comma separated values (.) CSV option), only some fields are listed in the export.  For example the field called "another significant" is not listed as one that is to be exported.  Similarly, if I