Hmm...I encountered something similar a while back but couldn't solve
it. Have you solved this yet? 

--- In [email protected], "Christian Cheng" <[EMAIL PROTECTED]>
wrote:
>
> Hi guys,
> 
> Consider the ff. code:
> 
> <?xml version="1.0" encoding="utf-8"?>
> <mx:Application xmlns:mx="http://www.adobe.com/2006/mxml";
layout="absolute">
>   <mx:Script>
>     <![CDATA[
>       [Bindable]
>       private var htmlText:String = "<li>A list item.</li>";
>     ]]>
>   </mx:Script>
>   <mx:Canvas x="10" y="10" width="584" height="200"
backgroundColor="#ffffff">
>     <mx:Text x="10" y="10" width="564" height="85"
htmlText="{htmlText}"/>
>     <mx:Text x="10" y="105" width="564" height="85"
> htmlText="&lt;li&gt;Another list item.&lt;/li&gt;" id="t"/>
>   </mx:Canvas>
>   <mx:Button x="10" y="218" label="Button" click="htmlText='&lt;p&gt;A
> paragraph.&lt;/p&gt;'; t.htmlText='&lt;p&gt;Another
> paragraph.&lt;/p&gt;'"/>
> </mx:Application>
> 
> Click on either list item displayed before clicking on the button.
> Notice that the Text instance you clicked retains the bullet point
> after its htmlText property has been changed.
> 
> Searched for "li", "htmltext", "click", and/or "list item" in Yahoo!
> Tech and in the Adobe Bug System but couldn't find any helpful posts
> or reports.  Anyone encountered (and hopefully solved this problem)
> before?
> 
> Attached are the MXML and SWF files for your convenience.
> 
> Thanks,
> Chry
>


Reply via email to