HtmlText, li, outdent

I am setting htmlText in a Flex application through XML. The
<li> tags are coming through fine -- bullets and indenting.
But I want to OUTDENT the bullets instead of the standard Indent.
I tried setting li in the stylesheet -- I got warning
messages that the tag wasn't supported.
Is there any way to format li tags as outdented?
Thanks for your help! I really need this
functionality.

Flex 3 has limited HTML support:
Anchor tag (<a>)
Bold tag (<b>)
Break tag (<br>)
Font tag (<font>)
Image tag (<img>)
Italic tag (<i>)
List item tag (<li>)
Paragraph tag (<p>)
Text format tag (<textformat>)
Underline tag (<u>)

Similar Messages

  • HTTPService or mx:RichTextEditor isn't working well - htmlText

    Hello
    I'm working with  the component <mx:RichTextEditor/>
    I have a big  problem after the HTTPService send the code and stores it in database.
    Every time I  catch the htmlText from RichTextEditor,  he is putting a strange tag. I need to clean these tags.
    I send this HTML  code (htmlText from RichTextEditor) and store in the database.
    In  another moment I want to retrieve this code and throw in a TextArea.- this is the objetives, but  I had a problem with this.
    Look my code:
    <mx:RichTextEditor id="ds_noticia" title="Descrição da notícia"
                            width="80%" htmlText="{dgNotRequest.selectedItem.dsNews}" />
    <mx:Button id="submit" label="{'ADD'}"  click="finish()" />
    //Script:
    private function concluir():void{
          newsService.send();
    <mx:HTTPService id=" newsService " url=" class/class_news.php"
                resultFormat="object" result="newsHandler(event)" fault="faultHandler(event)" method="POST" >
                <mx:request xmlns="">                   
                                                 <ds_noticia><![CDATA[{ds_noticia.htmlText}]]></ds_noticia>
                </mx:request>
    </mx:HTTPService>
    Whit firebug I can see the post:
    ds_noticia<TEXTFORMAT LEADING="2"><P ALIGN="LEFT"><FONT FACE="Verdana" SIZE="10" COLOR="#0B333C" LETTERSPACING="0" KERNING="0"><B>Introdução as tecnicas inter latifundiarias</B></FONT></P></TEXTFORMAT><TEXTFORMAT LEADING="2"><P ALIGN="LEFT"><FONT FACE="Verdana" SIZE="10" COLOR="#0B333C" LETTERSPACING="0" KERNING="0">Aplicabilidade e manutenbilidade da gestão de requisito de isotopo por molécula astridente:<B></B></FONT></P></TEXTFORMAT><TEXTFORMAT LEADING="2"><P ALIGN="LEFT"><FONT FACE="Verdana" SIZE="10" COLOR="#0B333C" LETTERSPACING="0" KERNING="0"><B></B></FONT></P></TEXTFORMAT><TEXTFORMAT LEADING="2"><P ALIGN="LEFT"><FONT FACE="Verdana" SIZE="10" COLOR="#0B333C" LETTERSPACING="0" KERNING="0"><B>Números</B></FONT></P></TEXTFORMAT><TEXTFORMAT LEADING="2"><P ALIGN="LEFT"><FONT FACE="Verdana" SIZE="10" COLOR="#0B333C" LETTERSPACING="0" KERNING="0">A tecnologia foi adotada pela Cast há mais de dois anos e chegou a ter mais de 200 servidores virtuais. </FONT></P></TEXTFORMAT><TEXTFORMAT LEADING="2"><P ALIGN="LEFT"><FONT FACE="Verdana" SIZE="10" COLOR="#0B333C" LETTERSPACING="0" KERNING="0"></FONT></P></TEXTFORMAT><TEXTFORMAT LEADING="2"><P ALIGN="LEFT"><FONT FACE="Verdana" SIZE="10" COLOR="#0B333C" LETTERSPACING="0" KERNING="0">O projeto de virtualização demorou seis meses para ficar pronto e foram gastos quase R$ 600.000,00 na compra de equipamentos, software, instalação e treinamento.</FONT></P></TEXTFORMAT><TEXTFORMAT LEADING="2"><P ALIGN="LEFT"><FONT FACE="Verdana" SIZE="10" COLOR="#0B333C" LETTERSPACING="0" KERNING="0"></FONT></P></TEXTFORMAT><TEXTFORMAT LEADING="2"><P ALIGN="LEFT"><FONT FACE="Verdana" SIZE="10" COLOR="#0B333C" LETTERSPACING="0" KERNING="0">Sem a virtualização, a Cast gastaria com renovações e novas aquisições, isso sem considerar o aluguel de espaço físico e custos com energia.</FONT></P></TEXTFORMAT><TEXTFORMAT LEADING="2"><P ALIGN="LEFT"><FONT FACE="Verdana" SIZE="10" COLOR="#0B333C" LETTERSPACING="0" KERNING="0"></FONT></P></TEXTFORMAT><TEXTFORMAT LEADING="2"><P ALIGN="LEFT"><FONT FACE="Verdana" SIZE="10" COLOR="#0B333C" LETTERSPACING="0" KERNING="0"><B>Resultados</B></FONT></P></TEXTFORMAT><TEXTFORMAT LEADING="2"><P ALIGN="LEFT"><FONT FACE="Verdana" SIZE="10" COLOR="#0B333C" LETTERSPACING="0" KERNING="0">Desde a implementação da virtualização foi possível reduzir o tempo de atendimento de serviços de dias para horas.</FONT></P></TEXTFORMAT><TEXTFORMAT LEADING="2"><P ALIGN="LEFT"><FONT FACE="Verdana" SIZE="10" COLOR="#0B333C" LETTERSPACING="0" KERNING="0"></FONT></P></TEXTFORMAT><TEXTFORMAT LEADING="2"><P ALIGN="LEFT"><FONT FACE="Verdana" SIZE="10" COLOR="#0B333C" LETTERSPACING="0" KERNING="0">Essas ações são importantes para a empresa, a sociedade e, principalmente, para o planeta. </FONT></P></TEXTFORMAT><TEXTFORMAT LEADING="2"><P ALIGN="LEFT"><FONT FACE="Verdana" SIZE="10" COLOR="#0B333C" LETTERSPACING="0" KERNING="0"></FONT></P></TEXTFORMAT><TEXTFORMAT LEADING="2"><P ALIGN="LEFT"><FONT FACE="Verdana" SIZE="10" COLOR="#0B333C" LETTERSPACING="0" KERNING="0"><B>Fonte: </B></FONT></P></TEXTFORMAT><TEXTFORMAT LEADING="2"><LI><FONT FACE="Verdana" SIZE="10" COLOR="#0B333C" LETTERSPACING="0" KERNING="0">Gilson Fabio Robles Bernichi - Administrador de Banco Dados</FONT></LI></TEXTFORMAT><TEXTFORMAT LEADING="2"><LI><FONT FACE="Verdana" SIZE="10" COLOR="#0B333C" LETTERSPACING="0" KERNING="0">James Lima da Silva - Coordenador de Suporte ao Desenvolvimento</FONT></LI></TEXTFORMAT><TEXTFORMAT LEADING="2"><LI><FONT FACE="Verdana" SIZE="10" COLOR="#0B333C" LETTERSPACING="0" KERNING="0">Leonardo Amorim de Araujo – Coordenador de Infraestrutura e Segurança</FONT></LI></TEXTFORMAT>
    If I could save this code, it would be  perfect!
    BUT the answer, after HTTPService send the content and it is saved into database
    now the HTTPService show other code, this is not the same first code sanded!
    ds_news           = '<TEXTFORMAT LEADING=\"2\"><P ALIGN=\"LEFT\"><FONT FACE=\"Verdana\" SIZE=\"10\" COLOR=\"#0B333C\" LETTERSPACING=\"0\" KERNING=\"0\"><B>Introdução as tecnicas inter latifundiarias</B></FONT></P></TEXTFORMAT><TEXTFORMAT LEADING=\"2\"><P ALIGN=\"LEFT\"><FONT FACE=\"Verdana\" SIZE=\"10\" COLOR=\"#0B333C\" LETTERSPACING=\"0\" KERNING=\"0\">Aplicabilidade e manutenbilidade da gestão de requisito de isotopo por molécula astridente:<B></B></FONT></P></TEXTFORMAT><TEXTFORMAT LEADING=\"2\"><P ALIGN=\"LEFT\"><FONT FACE=\"Verdana\" SIZE=\"10\" COLOR=\"#0B333C\" LETTERSPACING=\"0\" KERNING=\"0\"><B></B></FONT></P></TEXTFORMAT><TEXTFORMAT LEADING=\"2\"><P ALIGN=\"LEFT\"><FONT FACE=\"Verdana\" SIZE=\"10\" COLOR=\"#0B333C\" LETTERSPACING=\"0\" KERNING=\"0\"><B>Números</B></FONT></P></TEXTFORMAT><TEXTFORMAT LEADING=\"2\"><P ALIGN=\"LEFT\"><FONT FACE=\"Verdana\" SIZE=\"10\" COLOR=\"#0B333C\" LETTERSPACING=\"0\" KERNING=\"0\">A tecnologia foi adotada pela Cast há mais de dois anos e chegou a ter mais de 200 servidores virtuais. </FONT></P></TEXTFORMAT><TEXTFORMAT LEADING=\"2\"><P ALIGN=\"LEFT\"><FONT FACE=\"Verdana\" SIZE=\"10\" COLOR=\"#0B333C\" LETTERSPACING=\"0\" KERNING=\"0\"></FONT></P></TEXTFORMAT><TEXTFORMAT LEADING=\"2\"><P ALIGN=\"LEFT\"><FONT FACE=\"Verdana\" SIZE=\"10\" COLOR=\"#0B333C\" LETTERSPACING=\"0\" KERNING=\"0\">O projeto de virtualização demorou seis meses para ficar pronto e foram gastos quase R$ 600.000,00 na compra de equipamentos, software, instalação e treinamento.</FONT></P></TEXTFORMAT><TEXTFORMAT LEADING=\"2\"><P ALIGN=\"LEFT\"><FONT FACE=\"Verdana\" SIZE=\"10\" COLOR=\"#0B333C\" LETTERSPACING=\"0\" KERNING=\"0\"></FONT></P></TEXTFORMAT><TEXTFORMAT LEADING=\"2\"><P ALIGN=\"LEFT\"><FONT FACE=\"Verdana\" SIZE=\"10\" COLOR=\"#0B333C\" LETTERSPACING=\"0\" KERNING=\"0\">Sem a virtualização, a Cast gastaria com renovações e novas aquisições, isso sem considerar o aluguel de espaço físico e custos com energia.</FONT></P></TEXTFORMAT><TEXTFORMAT LEADING=\"2\"><P ALIGN=\"LEFT\"><FONT FACE=\"Verdana\" SIZE=\"10\" COLOR=\"#0B333C\" LETTERSPACING=\"0\" KERNING=\"0\"></FONT></P></TEXTFORMAT><TEXTFORMAT LEADING=\"2\"><P ALIGN=\"LEFT\"><FONT FACE=\"Verdana\" SIZE=\"10\" COLOR=\"#0B333C\" LETTERSPACING=\"0\" KERNING=\"0\"><B>Resultados</B></FONT></P></TEXTFORMAT><TEXTFORMAT LEADING=\"2\"><P ALIGN=\"LEFT\"><FONT FACE=\"Verdana\" SIZE=\"10\" COLOR=\"#0B333C\" LETTERSPACING=\"0\" KERNING=\"0\">Desde a implementação da virtualização foi possível reduzir o tempo de atendimento de serviços de dias para horas.</FONT></P></TEXTFORMAT><TEXTFORMAT LEADING=\"2\"><P ALIGN=\"LEFT\"><FONT FACE=\"Verdana\" SIZE=\"10\" COLOR=\"#0B333C\" LETTERSPACING=\"0\" KERNING=\"0\"></FONT></P></TEXTFORMAT><TEXTFORMAT LEADING=\"2\"><P ALIGN=\"LEFT\"><FONT FACE=\"Verdana\" SIZE=\"10\" COLOR=\"#0B333C\" LETTERSPACING=\"0\" KERNING=\"0\">Essas ações são importantes para a empresa, a sociedade e, principalmente, para o planeta. </FONT></P></TEXTFORMAT><TEXTFORMAT LEADING=\"2\"><P ALIGN=\"LEFT\"><FONT FACE=\"Verdana\" SIZE=\"10\" COLOR=\"#0B333C\" LETTERSPACING=\"0\" KERNING=\"0\"></FONT></P></TEXTFORMAT><TEXTFORMAT LEADING=\"2\"><P ALIGN=\"LEFT\"><FONT FACE=\"Verdana\" SIZE=\"10\" COLOR=\"#0B333C\" LETTERSPACING=\"0\" KERNING=\"0\"><B>Fonte: </B></FONT></P></TEXTFORMAT><TEXTFORMAT LEADING=\"2\"><LI><FONT FACE=\"Verdana\" SIZE=\"10\" COLOR=\"#0B333C\" LETTERSPACING=\"0\" KERNING=\"0\">Gilson Fabio Robles Bernichi - Administrador de Banco Dados</FONT></LI></TEXTFORMAT><TEXTFORMAT LEADING=\"2\"><LI><FONT FACE=\"Verdana\" SIZE=\"10\" COLOR=\"#0B333C\" LETTERSPACING=\"0\" KERNING=\"0\">James Lima da Silva - Coordenador de Suporte ao Desenvolvimento</FONT></LI></TEXTFORMAT><TEXTFORMAT LEADING=\"2\"><LI><FONT FACE=\"Verdana\" SIZE=\"10\" COLOR=\"#0B333C\" LETTERSPACING=\"0\" KERNING=\"0\">Leonardo Amorim de Araujo ? Coordenador de Infraestrutura e Segurança</FONT></LI></TEXTFORMAT>'
    who can help me ?
    Who can imagine what is happened?
    Who can understand why the flex put  a tag (/) always before the sing (“)?
    Thank you for help me

    Thanks!!!!
    This problem isn't with Adobe Flex. This problema is because PHP configuration at PHP.ini
    When on, all ' (single-quote), " (double quote), \ (backslash) and NULL characters are escaped with a backslash automatically.
    "Quando ligada, qualquer ' (aspas simples), "      (aspas duplas), \ (barra invertida) e NULL      será colocado uma barra-invertida antes (' vira \') automaticamente".
    Is a tecnique of incripiting by PHP but this feature has been DEPRECATED as of PHP 5.3.0. As my Case.
    LOOK the steps
    1.       Check php.ini into server:
    a.       Acess: /etc/php5/apache2/php.ini (In my case, i'm working with Linux-Umbuntu)
    2.       Verify the part that mentioned about eMagic quotes. It need be stay like fallow example:
    ; Magic quotes
    ; Magic quotes for incoming GET/POST/Cookie data.
    magic_quotes_gpc = Off
    ; Magic quotes for runtime-generated data, e.g. data from SQL, from exec(), etc.
    magic_quotes_runtime = Off
    ; Use Sybase-style magic quotes (escape ' with '' instead of \').
    magic_quotes_sybase = Off
    ; Automatically add files before or after any PHP document.
    auto_prepend_file =
    auto_append_file =
    ; As of 4.0b4, PHP always outputs a character encoding by default in
    ; the Content-type: header.  To disable sending of the charset, simply
    ; set it to be empty.
    ; PHP's built-in default is text/html
    default_mimetype = "text/html"
    default_charset = "utf-8"
    ; Always populate the $HTTP_RAW_POST_DATA variable.
    ;always_populate_raw_post_data = On
    3.       If necessary and diferent,  disable the magic Quotes in php.ini: Put (OFF) in the place where is (ON)
    We need change this because:
    Inconvenience, if the property is on, it will put in a strange caracter (\) before ("). It is bat when you need to save html code to keep the format of the text.
    it change important datas into database
    This feature has been DEPRECATED as of PHP 5.3.0. Relying on this  feature is highly discouraged.
    The magic_quotes_gpc directive may only be disabled at the system level, and not at      runtime. In otherwords, use of ini_set() is not      an option.
    FONTE: http://www.php.net/manual/en/security.magicquotes.php
    thanks again. good luck

  • Get all links from htmltext

    Hi,
    I have a htmltext wich I cast to XML. Now I need to read all
    of the A tags of the html,something like myxml.*.A, but nothing
    seems to work.
    Do you know how to read all links?
    Thanks

    Try this:
    var allTags: XMLList = myxml..a;

  • How to get text's position in htmlText

    Dear All:
    I include some text into htmlText from a xml file and the
    text has serval paragraph,I want to add
    one grey rectangle background to every paragraph and need to
    get coordinate of ever paragraph.
    who can tell me how to realize it ?I'll appreciate for any
    reply.
    Best Regards
    Jacky

    Dear All:
    I include some text into htmlText from a xml file and the
    text has serval paragraph,I want to add
    one grey rectangle background to every paragraph and need to
    get coordinate of ever paragraph.
    who can tell me how to realize it ?I'll appreciate for any
    reply.
    Best Regards
    Jacky

  • 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.

  • Flex 4.5 mobile - inline CSS in htmlText

    I want to change one word of text to bold and change the text color, but my htmlText is not rendering:
    <?xml version="1.0" encoding="utf-8"?>
    <s:View xmlns:fx="http://ns.adobe.com/mxml/2009"
    xmlns:s="library://ns.adobe.com/flex/spark"
    title="ReminderPro Basic" backgroundColor="0xCCFFCC"
    creationComplete="init();">
    <fx:Script>
      <![CDATA[
       import spark.components.supportClasses.StyleableTextField;
       private var greetingText1:String = "<span style='color: #FF0000; font-weight: bold'>ReminderPro</span> <span style='color: #660066'>makes it easy to create customizable alarms and reminders.</span>";
       [Bindable] private var greetingText2:String = "Great when you need an alarm that repeats, such as a reminder to check something in the over.";
       [Bindable] private var greetingText3:String = "Keep your kids accountable when limiting video game usage.";
       private function init():void{
        StyleableTextField(greetingTA1.textDisplay).htmlText = greetingText1;   
      ]]>
    </fx:Script>
    <s:layout>
      <s:VerticalLayout gap="20" paddingTop="50" paddingLeft="30"
       paddingRight="30" paddingBottom="50"
       horizontalAlign="center"/>
    </s:layout>
    <s:TextArea id="greetingTA1" width="100%" borderVisible="false"
      selectable="false" editable="false" skinClass="skins.CustomTextAreaSkin1"
      textAlign="center"/>
    <s:TextArea id="greetingTA2" width="100%" borderVisible="false"
        selectable="false" editable="false" skinClass="skins.CustomTextAreaSkin1"
        color="0x660066" textAlign="center" text="{greetingText2}"/>
    <s:TextArea id="greetingTA3" width="100%" borderVisible="false"
        selectable="false" editable="false" skinClass="skins.CustomTextAreaSkin1"
        color="0x660066" textAlign="center" text="{greetingText3}"/>
    <s:Spacer height="20"/>
    <s:Button label="New Reminder" click="navigator.pushView(views.NewReminderView)"/>
    <s:Spacer height="20"/>
    <s:Button label="Saved Reminders" click="navigator.pushView(views.SavedRemindersView)"/>
    </s:View>

    Hi Gregory,
    this is mobile project, yes?
    if you try that way it will work I think:
    private var greetingText1:String = "<font color='#FF0000'><b>ReminderPro</b></font> <font color='#660066'>makes it easy to create customizable alarms and reminders.</font>";
    http://help.adobe.com/en_US/flex/mobileapps/WS19f279b149e7481c-3c2dbaa612bb06a5ea2-8000.ht ml
    regards,
    Peter

  • Launch a PDF from htmlText

    Hi - I need to launch a PDF in a blank window - or at least
    give the user the choice to "download" it from my app to their
    desktop.
    The attached code shows how I got it to work using getURL and
    an onRelease command...but I need to get the same to work from a
    text field. On rolling over the text appears in the field as shown.
    When I rollover the btn I get the hand cursor - not so with
    the text link. When I rollover the text I get an "I" beam...if that
    matters.
    The attached code is on the same frame, same layer - so I
    can't imagine that the path to the pdf would be different. I
    couldn't use getURL on the text so I tried what you see below.
    How can I do this?
    TIA your help.
    JL

    kglad - Thanks for that. I meant RollOut. That's funny. In
    one of these little modules I've made - I HAD to use onRollOut. All
    I did was repeat the onRollover code under onRollOut - otherwise
    the text would disappear when the user left the hit zone of the
    button. I did as you suggest and the text stays put on the roll
    out. I'll have to dig that old file up to see what I did that was
    different.
    AND - as far as that link to a PDF - the reason I was getting
    the "I" beam over the links in the text had nothing to do with the
    code in the htmlText. I had a "vagrant" textField overlaying the
    one I was trying to interact with. It was blocking me from
    clicking. So the code in the htmlText above WILL work and DOES work
    afterall.
    Thanks for your help.
    JL

  • How do you get a TextField.htmlText to display a character?

    I'm trying to have a dynamic text field display htmlText and
    I've run into a bug/problem where the text field will NOT display
    the < character (less than sign). In fact, unless I escape that
    character like: \<, the text field stops displaying ANYTHING
    after a < as well.
    var tff:TextFormat = new TextFormat();
    tff.size = 12;
    tff.color = 0x000000;
    tff.align = "left";
    mytextField.ptf.type = "dynamic";
    mytextField.ptf.multiline = true;
    mytextField.ptf.html = true;
    mytextField.ptf.embedFonts = false;
    mytextField.ptf.selectable = false;
    mytextField.ptf.autoSize = "left";
    mytextField.ptf.htmlText = myHTMLString;
    mytextField.ptf.setTextFormat(tff);
    mytextField is a clip on the stage that has a dynamic text
    field in it. it's set to Arial and Use Device Fonts.
    the results when
    var myHTMLString:String = "<i>this</i> is a
    <b>sample piece</b> of html text with a \<
    character."
    displays:
    this is a
    sample piece of html text with a \ character.
    and when
    var myHTMLString:String = "<i>this</i> is a
    <b>sample piece</b> of html text with a <
    character."
    displays:
    this is a
    sample piece of html text with a
    I presume that it's having problems displaying the <
    character because it's confusing it with the start of an html tag.
    How do you escape the < character so it can be displayed?
    I tried url and html encoding it (&lt; and %3C) but got
    the same results

    http://www.adobe.com/cfusion/knowledgebase/index.cfm?id=tn_15863

  • Convert Web Page to PDF formatting problem - 1st line of each paragraph outdented

    Hi Folks,
    I get a formatting problem when I convert any web page to PDF using the 'Convert Web Page to PDF' option - the 1st line of each paragraph is outdented.
    eg if i convert http://helpx.adobe.com/acrobat/using/whats-new-acrobat-xi.html I get this:
    I get the same problem using IE 9, Chrome (latest) or Firefox 30.0. I don't get it converting a Word doc to PDF.
    I'm using Adobe Acrobat XI Pro on a PC running Windows 7.
    Is there a simple setting somewhere I am missing?
    Any help much appreciated!

    Are you using "Adobe PDF" or "PDF or XPS?" I sounds like "Adobe PDF," but trying to be sure. Have you updated your Acrobat to the latest version? If not, try that.

  • Problem using relative sizes on a HTMLtext

    Hi
    I have a problem using relative sizes on a HTMLtext on Flash
    ActionsScript
    2.0
    Something like:
    htmltext= '<font size="+5">TITLE</font>Text
    Praragraph...'
    (+5 in normal HTML means is 5 points bigger than the standard
    text.)
    I create the the textArea i set the size and everything if I
    do it by
    actionscript everything works fine except when i setup the
    htmltext, the
    text disspears so I need to re-set the embeded font with:
    myTextFormat.font = Varfont;
    textBox.embedFonts = true;
    textBox.setTextFormat(myTextFormat);
    But using this lines I lose the previous size. that i
    assigned before when i
    created the textarea. And goes to a standard size... dont
    know why, i am
    using a different TextFormat.....
    And If i want to use the size i was using , all the text
    becomes the same
    size (but is the size that I want)...
    If I create the text area manually using the gui, it works
    well.
    ¬_¬
    >-------------------------------------------------------------------------------------<
    The main problem is... why the the text dissapears when i set
    a new html
    text???
    >-------------------------------------------------------------------------------------<
    Thanks.

    1. Really there are a few functions that i skiped yesterday:
    3. The font is linked and embeded in library.
    public function setHTMLText(texto:String):Void {
    textBox.html = true;
    textBox.htmlText = texto;
    public function setEmbedFont(__font) {
    _font = __font;
    _embed = true;
    setTextStyle(__font);
    public function setTextStyle(__font:String, __bold:Boolean,
    __underline:Boolean, __italic:Boolean) {
    var myTextFormat:TextFormat = new TextFormat();
    myTextFormat.font = _font;
    textBox.setTextFormat(myTextFormat);
    public function setTextSize(__size:Number) {
    var myTextSize:TextFormat = new TextFormat();
    myTextSize.size = _size;
    textBox.setTextFormat(myTextSize);
    Kind of constructor:
    autotext_txt.setTextSize(20);
    //1 if I activate this one the text will dissapear after
    asigning a new
    text. And I will need to apply the embed font again.
    autotext_txt.setEmbedFont("Arial2");
    autotext_txt.setHTMLText(This is a text (big text) | <font
    size="-5"
    color="#dddddd"> Small Text</font>');
    autotext_txt.setEmbedFont("Arial2");
    Why dont u have a try?
    Thanks,
    J
    "kglad" <[email protected]> escribió en
    el mensaje
    news:elo6bk$pu3$[email protected]..
    > 1. where's Varfont defined?
    > 2. htmtext should be htmlText.
    > 3. have you defined a linkage id for a library font?

  • Xml file and htmlText box doesn't work

    Hi,
    i have a action script that read a xml file and put the content of this file in a
    htmltext box, but when come inside the xml file a code like this"<font color='#003399'>Test</font>" the box (htmltext) appears empty.
    my code
    this.my_txt.embedFonts = true;
    this.my_txt.html = true;
    this.my_txt.htmlText =myTextos;
    The variable "myTextos" load the content from xml ...but it doesn't appears in my htmltext box
    How can i fix this?
    obs: When i erase the tag <font color='#003399'></font> in xml the variable "myTextos" appears correctly in my htmltext box.

    Look my xml file:
    <?xml version="1.0" encoding="utf-8"?>
    <sm>
    <item><![CDATA[<p align="center"><b>Recordações do Escrivão Isaías Caminha</b></p>
    <font color='#003399'>Leiva era o chefe</font>, era a inteligência do grupo, pois, além de poeta, tinha todos os preparatórios para o curso de dentista.
    <p><align="right"><b>Fonte:</b> BARRETO, Lima. <i>Recordações do Escrivão Isaías Caminha</i>. Rio de Janeiro: Fundação Biblioteca Nacional. Disponível em:
    http://www.dominiopublico.gov.br. Acesso em 19 mar. 2008.
    </p>
    ]]></item>
    </sm>
    why my dinamic box (in flash 8, action scrpit 2) doesn't interpret the tag <font color='#003399'>?

  • As3 htmlText problem

    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. Has anyone else had this issue?

    thanks kglad,
    ok I embedded fonts and it's staying the way it should be but still can't figure out paragraph breaks and leading issue. Not even sure if the way i'm doing it is the best /most efficient way of creating this map?
    here is all my code:
    var alabama_btnInfo = "<b>John Smith<br>(555) 123-4567</b><br><font size=10>Northern Alabama</font><p><b>Mary Smith<br>(555) 123-4567</b><br><font size=10>Southern Alabama</font>";
    var arizona_btnInfo= "<b>Your Name<br>(555) 123-4567</b><br><font size=10>Entire State of Arizona</font>"; and
    alabama_btn.addEventListener(MouseEvent.CLICK, showInfo);
    arizona_btn.addEventListener(MouseEvent.CLICK, showInfo);
    function showInfo(evt:MouseEvent):void {
        stateInfo.htmlText = this[evt.currentTarget.name+"Info"];
    and here is what the map looks like now with the spacing issues when i click on alabama-

  • HtmlText not working

    I am using the following to load a file that I have put some
    html code <b> that is not being rendered as html. This is the
    script I am using. Am I missing something?
    myData = new LoadVars();
    myData.onLoad = function(){
    content_pc.htmlText = this.var1;
    myData.load("pp.txt");
    stop();
    Thanks

    VernMan,
    > I am using the following to load a file that I have put
    some
    > html code <b> that is not being rendered as html.
    This is
    > the script I am using. Am I missing something?
    >
    > myData = new LoadVars();
    > myData.onLoad = function(){
    > content_pc.htmlText = this.var1;
    > };
    > myData.load("pp.txt");
    > stop();
    Is your text field dynamic? Is it set to render text as
    HTML?
    myData.onLoad = function() {
    content_pc.html = true;
    content_pc.htmlText = this.var1;
    David
    stiller (at) quip (dot) net
    Dev essays:
    http://www.quip.net/blog/
    "Luck is the residue of good design."

  • Htmltext background color

    Hi.
    My problem is: I need support for styling text background color inside htmlText property of a Text (or TextArea) control, for text that is marked up with html tags.
    I am aware that Flex's htmltext only supports a subset of actual HTML tags:
    <font color='#ff0000'>the text</font>                       is supported
    <font backgroundColor='#ffffff'>the text</font>      is not supported
    And this is a problem for me because I absolutely need to be able to change the background color for certain words in the text. I searched a lot for a solution with no success. The only thing I see that supports background color is the TextField object, but I have no clue how I would implement it in the same manner as the Text or TextArea control. Does anyone have any suggestions?
    (compounded with this is that rather than use:  <font color='#ff0000' backgroundColor='#ffffff'>the text</font>, the text is marked up with <span id='group1'>the text</span> tags, and these CSS IDs are being processed with a stylesheet object in actionscript. So ideally, the solution should also work with stylesheets, but I can work around it if I'm forced to resort to hardcoding in the HTML tags.)
    Thanks for your attention.

    Thanks, but I want to change the background color only in one
    word, not all of the text.

  • Image cannot be displayed (as htmltext) when published for Air, android and iphone

    Hi,
    I am using Adobe Flash CS5.5 (AS3) and am building an online rss reader which loads a rss(xml) feed as htmlText containing title, description (with html formatting, linkage and image).
    My rss format is roughly based on the online sample found at  *** http://movies.msn.com/rss/topcelebs
    ***sample code as given below***
    <description><![CDATA[<div><a href='http://movies.msn.com/celebs/celeb.aspx?c=153441&affid=100055'><img src='http://entimg.s-msn.com/i/150/Movies/Actors/Sheen_TD00988581054_150x200.jpg' title='Tyler Demogenes/Retna Ltd.' style='float:left;border:none'></a>
    <p>A leading man who has displayed a knack for action, comedy, and dramatic roles, "Charlie Sheen" is nearly as well known for his offscreen exploits as for his acting, though after suffering through scandals that would have ended many performers' careers, he overcame bad press and bad habits to enjoy a major comeback on television in the late '90s. "Charlie Sheen" was born Carlos Irwin Estevez to actor "Martin Sheen" (born "Ramon Estevez") and his wife, Janet Templeton, in 1965. By all accounts, young... [<a href='http://movies.msn.com/celebs/celeb.aspx?c=153441&affid=100055&mp=b'>more</a>]<br clear=all></div>]]></description>
    Success story
    All text and images are displayed from online as htmlText when published as SWF
    The problem/requirement
    Images are NOT displayed when published as AIR 2.6, AIR for Android or AIR for iphone
    Searched the net, but no success. The images are not visible/loading when the rss application is installed on mobile devices (Android and iPhone)
    Please help.
    Thanks in advance.

    Hi Colette
    Are you saying that there should be .hhc, .hhk, .hhp, etc. files for each topic?
    Those are project files and you would not see one for each topic. There is one (maybe more, depending on what you are doing) for each project.
    One thing you may wish to try is to enable the "Use lowercase file names" option in your SSL recipe.
    After you do this, generate and publish again.
    Cheers... Rick
    Helpful and Handy Links
    RoboHelp Wish Form/Bug Reporting Form
    Begin learning RoboHelp HTML 7 or 8 moments from now - $24.95!
    Adobe Certified RoboHelp HTML Training
    SorcererStone Blog
    RoboHelp eBooks

Maybe you are looking for