Bug: Copying and pasting a htmlText ignores embed font???

- Adobe Flash Pro CS4
- Reproducible in Flash player 9 and 10
There seems to be a bug when copying a string value from a "htmlText" textfield and then pasting it in a standard "text" textField, and then adding that text back into the htmlText textField, which in turn no longer displays any new text.
For example:
1. Type "hello" in input textField, and press [Send] button
2. "hello" appears in the display textField (as htmlText)
3. From the display textField, copy the word "hello" and paste it into the input textField.
4. Press [Send]
5. Now, if embedFont was enabled and assuming that there is a ArialReg font class defined via library, the display textField does not show the 2nd "hello" message, and it no longer display anything new. This is because it was not able to show the text that was embedded as another font. You can tell this by turning off embedFont. Repeat steps 1-4, note that the 2nd "hello" font differs to the 1st "hello" font - which caused the bug as per above.
Source code (requires ArialReg and fl.controls.Button defined via Library):
//Copy and paste into your main timeline.
import flash.events.Event;
import fl.controls.Button;
var enableEmbed:Boolean = false;
var format:TextFormat = new TextFormat();
format.font = new ArialReg().fontName;
format.bold = false
format.size = 12
format.color = 0x000000;
format.align = TextFormatAlign.LEFT
format.underline = false
var _chatBox:TextField = new TextField();
_chatBox.multiline = true;
_chatBox.selectable = true;
_chatBox.wordWrap = true;
_chatBox.multiline = true;
_chatBox.embedFonts = enableEmbed;
_chatBox.antiAliasType = "advanced";
_chatBox.tabEnabled = false;
_chatBox.mouseEnabled = true;
_chatBox.defaultTextFormat = format;
_chatBox.width = 260
_chatBox.height = 300
_chatBox.type = "dynamic";
_chatBox.x = 10;
_chatBox.y = 30;
_chatBox.mouseWheelEnabled = false
_chatBox.background = true;
_chatBox.border = true;
format = new TextFormat();
format.font = new ArialReg().fontName;
format.bold = false
format.size = 12
format.color = 0x000000;
format.align = TextFormatAlign.LEFT
format.underline = false
var _chatInput:TextField = new TextField();
_chatInput.multiline = true;
_chatInput.selectable = true;
_chatInput.wordWrap = true;
_chatInput.multiline = true;
_chatInput.embedFonts = enableEmbed;
_chatInput.antiAliasType = "advanced";
_chatInput.tabEnabled = false;
_chatInput.mouseEnabled = true;
_chatInput.defaultTextFormat = format;
_chatInput.width = 200;
_chatInput.height = 50;
_chatInput.type = "input";
_chatInput.x = 10;
_chatInput.y = _chatBox.y + _chatBox.height + 5;
_chatInput.mouseWheelEnabled = false;
_chatInput.background = true;
_chatInput.border = true;
var _chatSendBtn:Button = new Button();
_chatSendBtn.y = _chatInput.y;
_chatSendBtn.x = 215;
_chatSendBtn.width = 55
_chatSendBtn.height = _chatInput.height;
_chatSendBtn.addEventListener(MouseEvent.MOUSE_UP, onChatSendBtn);
_chatSendBtn.label = "Send";
this.addChild(_chatBox);
this.addChild(_chatInput);
this.addChild(_chatSendBtn);
function onChatSendBtn(mE:MouseEvent):void
    if (_chatInput.text != "")
        _chatBox.htmlText += _chatInput.text;       
        _chatInput.text = "";

Note:
_chatBox.htmlText += _chatInput.text;       
_chatBox.setTextFormat(format);
will resolve the problem, but it introduces another bug - Using setTextFormat does not allow bold and regular font for embedFonts for htmlText, however defaultTextFormat does. As I need both bold and regular font for the textField, I can't use that workflow.

Similar Messages

  • Bug: Copy and Paste shortcuts still don't work

    Copy and Paste shortcuts still don't function.  I have to manually go to the menu to copy and paste.  Is this being addressed? This is a basic function used often.
    Mac OS X 10.7.5
    Adobe Story Plus: Build 1196
    When I started software AIR updated.
    Appreciate the help.
    Best,
    Randy

    Hi Randy,
    Can you please let us know if you still observe this issue after upgrading to latest version of Adobe AIR?
    You can download the latest version of AIR from: http://get.adobe.com/air

  • Copy and Paste like other browsers

    Whenever I copy and paste something it keeps the font size, color, and the url if I copy a link. I would it just to copy plain default text size, and no url when I highlight and copy. It's annoying having to copy, paste into notepad, copy, paste where I want it at.
    == This happened ==
    Every time Firefox opened

    You're welcome.
    You can download the beta, but you should remember that it is still a beta version and that there are still bugs that need to be resolved. The beta versions are released as test versions to make it possible to get as many bugs fixed as possible before the final release.
    Make sure that you create a new profile exclusively for the 4.0 beta version and create a desktop shortcut with -P "profile" appended to the target to launch that profile to avoid the beta version from corrupting the Firefox 3.6.x profile.<br />
    The Firefox beta version install by default in their own program folder and do not replace the currently installed Firefox 3.6.x release.
    * http://kb.mozillazine.org/Testing_pre-release_versions
    * http://kb.mozillazine.org/Creating_a_new_Firefox_profile_on_Windows
    * http://kb.mozillazine.org/Shortcut_to_a_specific_profile
    * http://kb.mozillazine.org/Using_multiple_profiles_-_Firefox

  • How can I copy and paste something which is written in hindi font in photoshop?

    I want to create an image with some text written on it. The text which is to be written is in Hindi language and I have that text in a ms word file. But I don't know Hindi typing so the only option I have is to copy and paste that text from ms-word file as it is. Now the problem is the same font is working in ms-word file properly but as I soon as I copy it to Photoshop with the same font enabled, it is showing something weird boxes. In short, Hindi font is working for ms-word but same Hindi font is not working for Photoshop particularly in case of copy and paste. Not only one font, I tried many of them but problem is the same for every font. Please help. Proper answer will be greatly appreciated.

    hatstead Thanks a lot for your quick reply, but this is not what I want! Actually when I posted the picture with Hindi font I forgot that you don't know the Hindi language. Actually in the picture I want something which is written on the right hand side to the equal sign ('='). Problem is when I copy it from ms word file or notepad file with same font enabled in the Photoshop, Photoshop automatically converts it to something which is written on the left hand side to equal sign ('='). Believe me I have done everything in last 24 hours to fix this problem but unfortunately none of the solution worked. I also used "Place" option to import the ms word file but again unfortunately Photoshop doesn't allow text files or .doc file format to be placed. So the thing is I want something which is written right hand side but when I copy it to Photoshop, Photoshop automatically converts it into something which is written on the left hand side. I hope you got the crux. Please help!!

  • How do I copy and paste text style for multiple video tracks?

    hello,
    I am creating multiple video tracks with text.  I want to easily copy and paste the style, i.e., Font, Color, Size - rather than having to scroll down the giant list of fonts to find the one I want, then change the color, then change the size - each and every time.  This is arduous.
    I tried copy / paste of one text onto a new video track, but when I type in a different word, it alters the original.
    I have 9 tracks of video for 9 different texts that will pop in and out of my video.  I would like to be able to copy/paste then just change the text.  This would save me a huge amount of time.

    paulrudophmusic
    I know of no way to alphabetized the Adobe Styles that come with the program.
    If you had the time and the inclination, you could rename them all to force them to appear alphabetically, but that does not seem all that practical.
    But, if your interest is in the Styles that you save and you do not hit the Reset File List, the new Styles will be at the bottom of the list and you can name them so that they appear that alphabetically at the bottom of the whole Styles list. But that does not address the matter of you having to scroll to the bottom of the Styles list.
    In some instances, some things that you think that you cannot do in Premiere Elements obvious features, can be done by computer keyboard shortcuts. I check the keyboard shortcuts under the Edit Menu/Keyboard Customization and unfortuately did not find any that would be applicable to this situation.
    As for your changes in one text file popping up unwantedly in another text file, that is because you have text files with the same name. Look into creating duplicates (with different file names) in Project Assets at the onset.
    ATR

  • When I copy and past text in a chat window there is a line of information that appears that describes the font and other information related to the pasted information. How do I stop that from displaying?

    When I copy and paste this is what appear: @font-face { font-family: "Arial"; }@font-face { font-family: "MS 明朝"; }@font-face { font-family: "MS 明朝"; }@font-face { font-family: "Cambria"; }p.MsoNormal, li.MsoNormal, div.MsoNormal { margin: 0in 0in 0.0001pt; font-size: 12pt;

    Make sure that the editor that you use to compose the text is in plain text mode.
    *http://en.wikipedia.org/wiki/List_of_text_editors
    *http://en.wikipedia.org/wiki/TextEdit

  • Copy and Paste Bug for Windows 8.1

    Hi while copying over my music library I recently discovered a bug with copy and paste. Say that you want to copy music from folder a to folder b. Folder b already contains some of the music files in folder a. So you when you select all of the files in folder
    a and copy them over to folder a, as soon as the system encounters a duplicate file it will inform the user if it wants to replace the file or skip it. In that same dialogue box at the bottom there is a check box that by clicking it the user is telling the
    system to do the same for all of the next conflicting files. To my understanding what that should do is if the user says that the system should ignore all of the conflicting files, then for all of the conflicting files that it finds those files should be ignored,
    and all of the other non-conflicting files should not be ignored. However, that is not the case, when there is a conflicting file and the box is checked then the system ignores all of the files after the file that was conflicting. That is to say that after
    the first conflicting file in folder a no other non-conflicting files from folder a will be copied into folder b.
    Has anyone else ran into that issue? 
     

    same problem with me !

  • Shortcut-Bug in Bridge CS6 for Mac / Bridge cant' copy and paste metadata

    The cmd-keys / shortcuts doesn't work in the file info panel btw. in the xmp / iptc fields (e.g. cmd+c, cmd+v, ...) of Adobe Bridge CS6 (Mac OS 10.6.8 and 10.7.3). You are not able to cut and paste info from one box to another like previous versions.
    This bug only appears in the file info window (opened via alt+i) in Bridge CS6 - if you edit information or metadata in the file info panel in Photoshop CS6, the shortcuts or copy and paste from one field to another works.
    The shortcuts also work under Windows (tested under Vista).
    I noticed this minor bug already one in the Photoshop CS6 Beta more than one months ago. I hoped that this was corrected in the official test version, but unfortunately it is not. Although it is a minor bug, it is IMHO a basic function and would be very helpful in my daily work. Bridge CS6 and ACR 7 are very good and meet my expect ions or needs - it is too bad, that such a small thing is making working with the application a little bit annoying.
    It would be nice, if you could forward this to Adobe engineers that they can fix it.
    Thanks so much!

    Thanks! If there is a workaround or simple solution, I would be very glad if you could inform me.
    Christian
    (signature removed by the Admin)
    Am 14.05.2012 um 13:49 schrieb FrankBiederich:
    Re: Bridge CS6 Mac XMP File Info Panel Bug: can't copy and paste metadata
    created by FrankBiederich in XMP SDK - View the full discussion
    Thanks for your report; we'll look into it.
    Frank
    Replies to this message go to everyone subscribed to this thread, not directly to the person who posted the message. To post a reply, either reply to this email or visit the message page: Re: Bridge CS6 Mac XMP File Info Panel Bug: can't copy and paste metadata
    To unsubscribe from this thread, please visit the message page at Re: Bridge CS6 Mac XMP File Info Panel Bug: can't copy and paste metadata. In the Actions box on the right, click the Stop Email Notifications link.
    Start a new discussion in XMP SDK by email or at Adobe Forums
    For more information about maintaining your forum email notifications please go to http://forums.adobe.com/message/2936746#2936746.
    Message was edited by: Arpit Kapoor

  • Bridge CS6 Mac XMP File Info Panel Bug: can't copy and paste metadata

    The cmd-keys / shortcuts doesn't work in the xmp file info panel btw. in the xmp / iptc fields (e.g. cmd+c, cmd+v, ...) of Adobe Bridge CS6 (Mac OS 10.6.8 and 10.7.3). You are not able to cut and paste info from one box to another like previous versions.
    This bug only appears in the xmp file info window (opened via alt+i) in Bridge CS6 - if you edit information or metadata in the file info panel in Photoshop CS6 copy and paste from one field to another works.
    The shortcuts also work under Windows (tested under Vista).
    I noticed this minor bug already one in the Photoshop CS6 Beta more than one months ago. I hoped that this was corrected in the official test version, but unfortunately it is not. Although it is a minor bug, it is IMHO a basic function and would be very helpful in my daily work - it is too bad, that such a small thing is making working with the application a little bit annoying.

    Thanks! If there is a workaround or simple solution, I would be very glad if you could inform me.
    Christian
    (signature removed by the Admin)
    Am 14.05.2012 um 13:49 schrieb FrankBiederich:
    Re: Bridge CS6 Mac XMP File Info Panel Bug: can't copy and paste metadata
    created by FrankBiederich in XMP SDK - View the full discussion
    Thanks for your report; we'll look into it.
    Frank
    Replies to this message go to everyone subscribed to this thread, not directly to the person who posted the message. To post a reply, either reply to this email or visit the message page: Re: Bridge CS6 Mac XMP File Info Panel Bug: can't copy and paste metadata
    To unsubscribe from this thread, please visit the message page at Re: Bridge CS6 Mac XMP File Info Panel Bug: can't copy and paste metadata. In the Actions box on the right, click the Stop Email Notifications link.
    Start a new discussion in XMP SDK by email or at Adobe Forums
    For more information about maintaining your forum email notifications please go to http://forums.adobe.com/message/2936746#2936746.
    Message was edited by: Arpit Kapoor

  • Bug in copy and past in nokia n97 fw 21.0.045 prod...

    bug in copy and past in nokia n97 fw 21.0.045 product code: 0575743
    the bug
    iam make phone number in notes
    then copy the number
    when go to
    contact and then past it the number not past ?
    copy number from notes to contact not work !

    Copy and Paste from Notepad to Contacts works fine here.   Try rebooting your handset.
    Nokia N8 on O2-UK
    Firmware 022.014

  • Ios8 copy and paste / Digital AV Cable / internet dropping and other bugs!

    hello -
    so like everyone else else there is a number of bugs I am running into. so here's my list- Yes I've tried to restore, so I am praying that the ios8 update will contain these fixes:
    - copy and paste doesn't work between applications- but it's sporadic! (issue originally found when copying from a webpage to an email, then into notes from another webpage)
    - my Apple lighting to digital AV cable doesn't "read/transfer" to the TV
    - internet randomly drops for a few seconds to minutes for no apparent reason the it being an iPhone 6
    - Facebook and other internet heavy apps like Associated Press are extremely lagging or give me an error unable to connect to server
    - randomly freezes while taking pictures or taking notes- it won't even let me shut down
    - voicemail set up doesn't  work
    I am sure there are more bugs but haven't seen them or I've forgotten about them! If anyone else has these problems please check the box that you do have the same issue. Also any known resolutions would be appreciated!
    With Joy,
    Christina

    Another file?
    Do you mean folder? Inside or outside iPhoto?
    I'm trying to copy photos to a Sony Digital Photo Frame.
    Select the photos you want to use.
    Export them to a folder on the Desktop. File -> Export
    Add that to the device.
    This User Tip
    https://discussions.apple.com/docs/DOC-4921
    has details of the options in the Export dialogue.

  • Copy and Paste InDesigne gives inserted graphic, not object!? Bug or "feature"?

    When I copy and paste any object in Indesign (Vectorgraphics, Rectangle, Textarea, everything) it isn't pasted as another object, it's paster as an inserted Graphic. I use Creative Cloud, updating automatically. Is this a new "feature" or a bug? Copying and pasting an Object -> i want an object again (editable and with the same color etc) and not an inserted graphic. Can I change any settings for that or something? never had this problem before!
    I would really appreciate your help as it's really uncomfortable in the workflow even though i could understand it would increase performance and reduce data volume.

    I have problem like this with indesign cs6 and windows 7, when i copy and paste frames it paste as there is graphic inside with a content grabner, my work around is from windows start>all program >go to indesign and run as administrator. Hope this may help.

  • Copy and paste adjustment  problem/ possible bug.

    Hi all
    I have just encountered a very strange problem/ possible bug.
    I have been working on a file in photoshop cs5 that had come from lightroom 5.3. This was then saved (automaticaly becomes tiff file in Lightroom). I then wanted to make some more adjustments to it in lightroom (using local adjustment clarity). I then tried to copy the settings of the adjustment brush  from the tiff to the original raw file. This is where it gets very strange. The adjustments are copied but they are rotated ccw by 90 degrees!  I can replicate this every time.
    Could someone else try to see if this problem exists on their catalogs or if its a corrpution problem my end.

    Noted on the bug, thanks.
    1762hd wrote:
    Hi Geoff
    Heres the summary for bug report - please note this bug also affects radial filter/healing brush and crop
    Scenario
    1 open a portrait raw image in photoshop using render using lightroom (I am using cs5)
    2 back in lightroom make a change using the - adjustment brush/ radial filter/healing brush or crop - to the newly created tiff image.
    3 copy and paste this adjustment to the original raw file.
    problem
    all effects are rotated.

  • Copy and paste ignores track text edit preview settings?

    Hi all,
    Working with FM9 and another editor that requires me to copy and paste from FM9 into the other.
    Enable and use tracking text edits in FM9.
    Preview Final to hide the edits.
    Copy and paste a paragraph that contains edits.
    When I paste into the target text editor, the "deleted" text is also displayed.
    Any way to prevent text hidden with a condition tag (which is how the tracking changes are marked) from being copied?
    -g

    I'm pretty sure the answer is no, not in FM itself. The only way would be to create a finalized FM doc with the changes accepted prior to copy / paste.
    It would be possible with a Framescript, though -- something like this:  the user copies the text,  hits a specified function key, the script pastes the text onto a special reference page, deletes the "deleted" text, recopies the text and then it beeps so that the user can then paste into the target editor.
    More info about Framescript at http://www.framescript.com and on the user group at
        http://groups.yahoo.com/group/framescript-users/

  • APEX Bug: Web Sheets - Data Grid Copy and Paste

    In Web Sheets:
    Create Data Grid > Copy and Paste
    Upload this data set (copy and pasted from Excel 2007):
    A     B     C
    1     2     3
    4     5     6This will create a data grid with three columns (A, B, and C).
    Upload this data set (i.e. in the 2nd row of data, B and C don't contain any values):
    A     B     C
    1     2     3
    4This will create a data grid with only 1 column, A. B and C were not created.
    Oracle XE
    APEX 4.0.2
    Martin
    http://www.talkapex.com

    Hi Martin ,
    I tried the same thing which u said n its working Perfectly fine .
    I m getting all the columns & both the rows along with data .
    Regards,
    Nandini Thakur.

Maybe you are looking for