Ola, estou desenvolvento um chat e preciso que aceite formatação html, ate
ai tudo bem esta feito, o conversa fica em um text area, ai é que esta o
problema não consigo passar para a proxima linha, ele sempre substitui oq
esta ali, o padrão seri "+=" mas isso não funciona, fiz um exemplo
simples(apenas para dar ideia do meu problema) e se puderem me ajudar,
 agradeço desde ja

<?xml version="1.0" encoding="utf-8"?>
<s:Application xmlns:fx="http://ns.adobe.com/mxml/2009";
      xmlns:s="library://ns.adobe.com/flex/spark"
      xmlns:mx="library://ns.adobe.com/flex/mx" width="100%" height="100%">
 <fx:Declarations>
  <!-- Place non-visual elements (e.g., services, value objects) here -->
 </fx:Declarations>
 <fx:Script>
  <![CDATA[
   import flashx.textLayout.conversion.TextConverter;
   public function enviar():void{
    //txtArea.textFlow=TextConverter.importToFlow(editor.htmlText,
TextConverter.TEXT_FIELD_HTML_FORMAT);
    txtArea.text+=editor.htmlText;

   }

   public function enviarHtml():void{
    txtArea.textFlow=TextConverter.importToFlow("Antonio diz "+txtHtml.text,
TextConverter.TEXT_FIELD_HTML_FORMAT);
    //txtArea.textFlow=TextConverter.importToFlow(editor.htmlText,
TextConverter.TEXT_FIELD_HTML_FORMAT);
   }
  ]]>
 </fx:Script>
 <mx:RichTextEditor id="editor" x="137" y="159" width="602" height="191"/>
 <s:TextArea id="txtArea" x="465" y="81" width="274" height="54"/>
 <s:Button x="747" y="159" label="enviar" height="191" click="enviar()"/>
 <s:TextArea x="32" y="81" height="54" width="337" id="txtHtml"/>
 <s:Button x="32" y="52" label="Enviar Texto com html"
click="enviarHtml()"/>
</s:Application>

-- 
"Pensar apenas ou desejar somente nunca levou ninguém a lugar nenhum. É
necessário também a ação" - William Shakespeare

-- 
Você recebeu esta mensagem porque está inscrito na lista "flexdev"
Para enviar uma mensagem, envie um e-mail para flexdev@googlegroups.com
Para sair da lista, envie um email em branco para 
flexdev-unsubscr...@googlegroups.com
Mais opções estão disponíveis em http://groups.google.com/group/flexdev

Responder a