Dynamic text disappears when clicking bold button.

Dear friends,
I have dynamic text inside a movieclip, that I can make it rotate.
the dynamic text properties are : anti-alias for anmations and I emdedded all characters.
When I click on the bold button the the text disappears.
bold_btn.addEventListener(MouseEvent.Click, on_bold);
function on_bold(e:MouseEvent):void
     var my_format:TextFormat = new TextFormat();
     my_format.bold = true;
     my_mc.my_txt.setTextFormat(my_format);
How can I solve this problem.

the easiest (and not very elegant way) is to add textfields that contain those fonts (and embed them).  you can remove your textfields from the display list or otherwise, make them not visible on-stage.

Similar Messages

  • How to hide a TextField when clicking another button

    Hello!
    I've been able to generate a TextField to appear when clicking a button, but when I click on another button, to display some more information, I still have the first TextField displayed.  I've had a look around, but not been able to find anything to help me with getting the first to disappear.  Can anyone provide any ideas for this?
    The code I'm using for displaying the TextField is:
    button10.addEventListener(MouseEvent.CLICK, fl_ClickToPosition);
    var fl_TF:TextField;
    var fl_TextToDisplay:String = "Send disply to the right screen/projector";
    function fl_ClickToPosition(event:MouseEvent):void
    fl_TF = new TextField();
    fl_TF.autoSize = TextFieldAutoSize.LEFT;
    fl_TF.background = true;
    fl_TF.border = true;
    fl_TF.x = 300;
    fl_TF.y = 100;
    fl_TF.text = fl_TextToDisplay;
    addChild(fl_TF);
    Many thanks in advance

    all your buttons should call the same function. 
    because each button probably triggers different text to be displayed, you can use an object or dictionary to associate the buttons and their text:
    // execute these two lines and your function once at the start of your app
    var dictionary:Dictionary=new Dictionary(true);
    var fl_TF:TextField;
    function fl_ClickToPosition(event:MouseEvent):void
    if(fl_TF&&fl_TF.parent){  /
    fl_TF.parent.removeChild(fl_TF);
    fl_TF=null
    fl_TF = new TextField();
    fl_TF.autoSize = TextFieldAutoSize.LEFT;
    fl_TF.background = true;
    fl_TF.border = true;
    fl_TF.x = 300;
    fl_TF.y = 100;
    fl_TF.text = dictionary[e.currentTarget];
    addChild(fl_TF);
    ////////// and for each button use something like:
    button10.addEventListener(MouseEvent.CLICK, fl_ClickToPosition);
    dictionary[button10] = "Send disply to the right screen/projector";

  • Why does added text disappear when I move the cursor

    After adding text to an unprotected .pdf file the text disappears when I move the cursor and want to add a second box of text. The text in the first box reappears when I double click on the space where the box was. How do I set the text so that it remains visible and printable?

    Hi,
    I think the data in the PDF file was filled-in using MAC preview.
    One option is to ask the user to fill the file again using Adobe Reader or Acrobat.
    Or else refer to following link:
    http://acrobatusers.com/actions-exchange/pdf2fdf_auto-save
    Regards,
    Anoop

  • How can I make a table cell extend beyond the page?  The text disappears when the cell becomes larger than the page.

    How can I make a table cell extend beyond a page?  The text disappears when the cell becomes bigger than the page.  I want the table to continue to the next page.

    As a student, you might be able to get Office for Mac from the college bookstore at a substantial discount. Otherwise, I think your best option for documents that need to be shared with Office users is to get one of the free Office clones such as LibreOffice.

  • Text disappears when updating story

    When the designer updated a few Incopy stories in the Indesign file, the text disappeared. Anyone seen this before?

    Text disappearing when you update a TOC is usually a symtom of havint put the TOC in the main story thread. The TOC must be in a separate story, not thread to anything else, becasue updating replaces the entire story.

  • How to switch to another page when clicking a button

    I have a main frame consits of many button.What I need to do when click
    a button,it switch to another page?
    Thanx....

    Try this, it should work.
    // not tested
    JButton linkButton = new JButton("<html><a href=\"http://forum.java.sun.com\">link to<br>forum</a></html>");

  • How to display the details of particular order when click on button in sapui5

    Hi Experts,
        How to display the details of particular order when click on button in sapui5?
    I Have a requirement that is i want display all the list of orders coming from backend as shown in image below
    then in that i have a button when i press the button  it need to display the details of particular order as shown in image below
    Please help me .
    Thanks & Regards
    chitti

    Does anyone know how to display the index of current desktop?
    Brute force - - I have written the number of the Desktop directly onto the wallpaper picture I am using for each Desktop  (easy to do with Preview).
    All Desktops are using different wallpaper photos, so they are easily recognized by the color scheme, and in the upper left corner is the number.
    Regards
    Léonie

  • Microsoft Expression Encoder 4 crashes when clicking Start button to begin live smooth streaming to a publishing point created in Windows Server 2012

    Microsoft Expression Encoder 4 crashes when clicking Start button to begin live smooth streaming to a publishing point created in Windows Server 2012, I've got the following error. Can anyone help me with this? Thanks in advance!
    Nombre del evento de problema:    CLR20r3
      Firma del problema 01:    encoder.exe
      Firma del problema 02:    4.0.4276.0
      Firma del problema 03:    4eafa0d7
      Firma del problema 04:    mscorlib
      Firma del problema 05:    4.0.30319.18408
      Firma del problema 06:    52310b91
      Firma del problema 07:    3e69
      Firma del problema 08:    0
      Firma del problema 09:    System.InvalidCastException
      Versión del sistema operativo:    6.2.9200.2.0.0.272.7
      Id. de configuración regional:    3082
      Información adicional 1:    5861
      Información adicional 2:    5861822e1919d7c014bbb064c64908b2
      Información adicional 3:    dac6
      Información adicional 4:    dac6c2650fa14dd558bd9f448e23afd1
    Lea nuestra declaración de privacidad en línea:
      http://go.microsoft.com/fwlink/?linkid=190175
    Si la declaración de privacidad en línea no está disponible, lea la declaración de privacidad sin conexión:
      C:\Windows\system32\es-ES\erofflps.txt

    2014-12-17 16:05:41  Msg 5170, Level 16, State 1, Server \\.\pipe\Microsoft##WID\tsql\query,  Line 2
    Cannot create file 'C:\Windows\WID\Data\SUSDB.mdf' because it already exists
    Looks like somebody forgot to remove the database from the last time WSUS was installed.
    Lawrence Garvin, M.S., MCSA, MCITP:EA, MCDBA
    SolarWinds Head Geek
    Microsoft MVP - Software Packaging, Deployment & Servicing (2005-2014)
    My MVP Profile: http://mvp.microsoft.com/en-us/mvp/Lawrence%20R%20Garvin-32101
    http://www.solarwinds.com/gotmicrosoft
    The views expressed on this post are mine and do not necessarily reflect the views of SolarWinds.

  • Text Disappears when on top of an HTML overlay

    Text Disappears when on top of an HTML overlay. This is a very simple file. It's not even part of an MSO. The text is disappearing when I view in both the desktop content viewer and the iPad.
    I've tried converting to outlines, doubling the layer, copying and pasting back into. Nothing. Any suggestions

    You might also try creating the html and leaving a space for you existing text. Select transparent background for you overlay and the text should be visible.

  • When using Typewriter tool, text disappears when I click out of box...

    Hi!
    I'm sure I've seen this question addressed here before but I cannot make the "Search" work.  Every time I search I get "no results" even when I search for something as obvious as PDF.
    So please forgive me posting a question that I'm pretty sure has been answered in the past...
    When I use the Typewriter tool to type some text, and then I click out of the text box that the Typewriter tool created, the text that I typed disappears.  If I double-click on the typewriter text box then the text reappears.  Then if I click out, the text disappears.  And so on...
    How do I make that text stay "viewable" even when I click out of the typewriter text box?
    Thank you so much!!
    Diane

    Hi Larry!!
    Here is an image where the box with the Typewriter text (the word "test) is "activated", with the comments list showing down below but without the "test" comment in the comment list being highlighted.  At the green "plus sign arrow" in the upper-right corner is the word "test".
    Now below is an image where the box with the Typewriter text (the word "test") is not "activated" (but you can see the blue box where the word "test" should be showing), with the comments list showing down below, with the "test" comment highlighted, and the "Comments" dropdown menu so that you can see what's black in the dropdown menu.
    When I clicked on the "test" comment in the comment list, the word "test" went away in the upper-right corner and the blue box showed up instead.
    Am I showing what you need to see or should I show something different?
    Thank again so much!!
    Diane

  • How to change dynamic text on mouse click of an object

    Here is my Project File.
    I'm wanting to change dynamic text when an object is clicked.
    I created 3 dynamic text boxes under "Selected Colors" and gave them instance names of selected_roof_color, selected_trim_color and selected_wall_color.
    When the user clicks a color (ie Arctic White) and then clicks say the roof, I want the "Selected Color" to display "Arctic White" to the right of "Roof:". 
    The colorable areas on the building have been given instances of roof, walls and trim.
    I used this tutorial to change in the textbox underneath the colors when you mouse over a color.
    Thank you for your assistance.

    My first button color is Arctic White and it has an instance of arcticwhite.
    The actionscript for the Arctic White Button is:
    on (release) {
        _root.fillColor = 0xf3f5f4;
        _root.brush.gotoAndStop(1);
    The roof button has an instance of selected_roof_color and my dynamic text field where I want "Arctic White" to appear is given an instance of selected_roof_text.
    Using your suggestion, my main Actionscript now has the following
    roof.addEventListener(MouseEvent.CLICK,roof);
    function roof(e:MouseEvent):void{
    selected_roof_text.text="roof";
    Looks like I've still got something incorrect as the selected_roof_text isn't changing when I click a color onto the roof.
    Can you explain what the F in "roofF" is?  Is that a typo?

  • Why the Text disappears when I rotate it using Free Transform Tool?

    Hi,
    My Text is visible before rotating it to verticle position using Free Transform Tool. But when once it is rotated to verticle position the text disappears from the Stage. And it is not an animated Text as well? What is the problem?
    Thanks.

    If the textfield is manually placed on the stage, you should be able to select the textfield and click the button for Embedding that is in the Properties panel.

  • Why image background is not at center desktop when click fullsceen button

    hi. I'm building fullscreen button. and when i click to run fullscreen image it in left not center.
    background image in application i make it by skinclass. it run normal and at center desktop when run but when click fullsreen it not
    and fullscreen:
        private function init():void {
                    fullScreenState = stage.displayState;
                private function btn_click(evt:MouseEvent):void {
                    if (btn.selected) {
                        fullScreenState = StageDisplayState.FULL_SCREEN;
                    } else     {
                        fullScreenState = StageDisplayState.NORMAL;
                    try {
                        stage.displayState = fullScreenState;
                    } catch (any:*) {
    and button:
    <s:ToggleButton id="btn"            
                            click="btn_click(event);"
                            width.trangchu="121" x.trangchu="401" y.trangchu="-27" height.trangchu="95" />
    Can u help me please?

    I don't know how to fix your problem, but just wanted to say
    that I wholeheartedly agree with kglad.
    I am working on a project now that needs to have a custom
    scroll bar that I can incorporate with dynamic text fields that
    need to be scrolled.
    Four days ago, I decided to save some time and just use and
    modify the UIScrollBar Component.
    ALL SORTS OF LITTLE BUGS EVERYWERE.
    After messing with it for an entire weekend, I decided to
    just bite the bullet and write my own scrollbar class.
    Here is what happened for me when I decided to write my own
    class.
    own class --------------------vs------------------- component
    took 4 hours ------------------------- took 3 days until quit
    3 mc's in the library to modify if you want
    ------------------------ I don't even want to count the
    to change the look --------------------------- amout of mcs u
    gotta change
    can change width of scrollbar on the fly -------------------
    can't change width of a vertical sb
    added an autoscroll function that starts
    ------------------------------ no such function
    scrolling down slowly upon page load
    increase file size by a few kilobytes ---------------------
    increase filesize by like 30kb
    NO BUGS -------------------- BUGS EVERYWERE.
    Lesson I had to learn: Components waste more time than I did
    on my World of Warcraft phase.
    They are good for designers who have limited scripting
    knowledge, just be aware that they can be very buggy. There are
    lots of third party developers that sell menu components and the
    like. You may want to look in that direction if you absolutely must
    use components and the included ones aren't working for you.

  • Calling URL when click on buttons using web dynpro - ABAP

    Hi All,
    I am new to web dynpro application development and i am facing issue when i try to test my application.
    simple require when i click on button i should direct the to one of url say 'http://www.google.co.in/' my application is activate with no error but when i test the application i am getting below error , can someone please provide me the solution or way out.
    The URL http://ides47:8062/sap/bc/webdynpro/sap/zwa_calling_url/ was not called due to an error.
    Note
    The following error text was processed in the system N6Q : Access via 'NULL' object reference not possible.
    The error occurred on the application server IDES47_N6Q_62 and in the work process 0 .
    The termination type was: RABAX_STATE
    The ABAP call stack was:
    Method: IF_WDR_CONTEXT_MENU_HANDLER~CONTEXT_MENU_CALLED of program CL_WDR_INTERNAL_WINDOW_ADAPTERCP
    Method: IF_WDR_CONTEXT_MENU_HANDLER~CONTEXT_MENU_CALLED of program CL_WDR_INTERNAL_WINDOW_ADAPTERCP
    Method: IF_WDR_ADAPTER_EVENT_HANDLER~HANDLE_EVENT of program CL_WDR_CONTEXT_MENU_HANDLER===CP
    Method: IF_WDR_CLIENT~GET_CLIENT_UPDATES of program CL_WDR_CLIENT_SSR=============CP
    Method: EXECUTE of program CL_WDR_MAIN_TASK==============CP
    Method: IF_HTTP_EXTENSION~HANDLE_REQUEST of program CL_WDR_MAIN_TASK==============CP
    Method: EXECUTE_REQUEST_FROM_MEMORY of program CL_HTTP_SERVER================CP
    Function: HTTP_DISPATCH_REQUEST of program SAPLHTTP_RUNTIME
    Module: %_HTTP_START of program SAPMHTTP
    HTTP 500 - Internal Server Error
    Thanks,
    Parab

    Hi ,
    It seesms something you are missing. It would be easy for us if you could paste your code which you have written in the Action of Button.
    Sample code for your reference :
    METHOD onactionget_url .
    data lo_window_manager type ref to if_wd_window_manager.
    data lo_api_component  type ref to if_wd_component.
    data lo_window         type ref to if_wd_window.
    lo_api_component  = wd_comp_controller->wd_get_api( ).
    lo_window_manager = lo_api_component->get_window_manager( ).
    CALL METHOD lo_window_manager->CREATE_EXTERNAL_WINDOW
      EXPORTING
        URL            = 'http://www.google.co.in/'
        MODAL          = ABAP_FALSE
        HAS_MENUBAR    = ABAP_TRUE
        IS_RESIZABLE   = ABAP_TRUE
        HAS_SCROLLBARS = ABAP_TRUE
        HAS_STATUSBAR  = ABAP_TRUE
        HAS_TOOLBAR    = ABAP_TRUE
        HAS_LOCATION   = ABAP_TRUE
      RECEIVING
        WINDOW         = lo_window.lo_window->open( ).
    ENDMETHOD.

  • Dynamic text shifts when style changes

    I have some dynamic text fields that are set up so that when
    you rollover them (actually a button behind them), their formatting
    changes. This is done with some basic actionscripting, setting up 2
    different text format variables and attaching one or the other to
    the text field when a button is rolled over. The only thing that
    changes is color. When the text first appears all is well. But when
    you rollover the text and the color changes, on certain browsers an
    extra space can get inserted at the beginning of a new line, sort
    of like the old bug where text wrapping messes up and moves a space
    down to the beginning of a line. This happens on IE 6 and 7 and
    Safari, not Firefox. The player is 9. THanks.

    Did not, I was happier with the browser's display than with
    the embedded font version. May try it just to see if problem
    remains. Seems like something I should be able to avoid without
    having to embed though.

Maybe you are looking for

  • Upgrade from 11.2..0.1 to 11.2.0.3  (linux )

    hi guys, just feeling confuse from all the read up notes on upgrading from 11.2.0.1 - 11.2.0.3. The part where it mention that on the target database, one have to: 1. download and install oracle 11g r2 in a new oracle home. and make sure there are no

  • Exception block insert

    I am just wondering if it's except-able to put and insert in the exception block? What I would like is if date2 is null kick off an error. if there are no records where date2 is null then go ahead and insert the new record. Is this common practice or

  • Erasing duplicate pictures in iPhoto

    How can one automate the erasing of duplicate photo's in an existing iPhoto Library database?

  • The iPad shuts down when the cover is closed so I can't get mail message or Skype alerts?

    Didnt do it at first but now when the ipad cover is closed it wont alert me to mail or massages etc. Done everything I can think of but to no avail. Perhaps I have changed a setting without realising it... Can any one help with that one?

  • Stop podcast auto sync between iTunes

    Hi There, I have an itunes account on an old windows machine attached to my NAS, that holds all my music and film - sharing it with my apple tv, my wifes itunes account etc. with home sharing. On my macbook I use the same apple id to have a portalble