"But I'm still wondering if it can be processed directly in mxml? Especially if the variable with the binding changes, I need it to be updated in the text component."
Hichem
, , , htmlText:
<mx:Script>
<![CDATA[
function sayHello(userName:String):String
{
var text:String = "<![CDATA[<img src='assets.OrangeRect' align='left' hspace='0' vspace='4'/> Bonjour " + userName + " ]]>";
return text;
}
]]>
</mx:Script>
<mx:Text id="bodyText" styleName="bodyText" htmlText="{sayHello(UserData.name)}" />
- MXML, , .