got the same issue on adobe forums as well, but no solution.

http://forums.adobe.com/message/3770312#3770312

On Thu, Jun 30, 2011 at 1:07 AM, kanu kukreja <[email protected]> wrote:

> Hello Everyone,
> <-------------------text.mxml------------------->
> <?xml version="1.0" encoding="utf-8"?>
> <s:Application xmlns:fx="http://ns.adobe.com/mxml/2009";
>    xmlns:mx="library://ns.adobe.com/flex/mx"
>    xmlns:s="library://ns.adobe.com/flex/spark"
>    creationComplete="init()">
> <s:layout>
>  <s:VerticalLayout/>
> </s:layout>
>
> <fx:Script>
>  <![CDATA[
> import flash.text.engine.FontWeight;
>  import flashx.textLayout.conversion.TextConverter;
>  import flashx.textLayout.elements.ParagraphElement;
> import flashx.textLayout.elements.TextFlow;
>  import spark.utils.TextFlowUtil;
>  private var hi:String="hello world"
> private var cnt:int=10;
>  var markup:String="kanu";
> private var text:TextFlow;
>  private var levelName:String = "family"
>  //private function clickBtn(event:MouseEvent):void
> public function init()
>  {
> trace("here");
>  markup += "wadhwa";
>  if(levelName == "family"){
> markup +="<span fontSize='15' color='#ff0000' fontFamily='Verdana'>"+ hi +
> "</span> (<span fontSize='12' color='#007fc5' fontFamily='Arial'>"+cnt+") >
> </span>";
>  trace("string::"+markup)
> }
>
> text=TextFlowUtil.importFromString(markup,TextConverter.TEXT_FIELD_HTML_FORMAT);
>  }
>  ]]>
> </fx:Script>
>
> <s:RichText>
>  Hello
> <s:span fontSize='16'>BIG NEW</s:span>
>  World!
> </s:RichText>
>  <!-- Or the TextFlow child tag. -->
> <s:RichText id="rTxt" textFlow="{text}"/>
>  <!--<s:Button click="clickBtn(event)"/>-->
> </s:Application>
>
> Facing issue with span & textflow. If i do the below, it works fine. But if
> i do the way i have mentioned above, it doesn't show anything on the
> screen.
> rTxt.textFlow
> =TextFlowUtil.importFromString(markup,TextConverter.TEXT_FIELD_HTML_FORMAT);
>
> Any pointers on this would be very appreciable and helpful for me.
>
> Thanks in advance
> Kanu Kukreja
>
>

-- 
You received this message because you are subscribed to the Google Groups "Flex 
India Community" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/flex_india?hl=en.

Reply via email to