tags:

views:

707

answers:

2

Hi,

A simple problem: If i use escape characters for a property such as

<mx:Image  id="img" toolTip="\\foo{\\bar}"

It wont validate toolTip and therefore not compile.

What is the solution ?

A: 

Damn ... flex uses { so i have to escape it.

coulix
+1  A: 

You can use ActionScipt for example in a creationComplete event handler and assign you tooltip and you won't have the same constraints as in MXML.

But you also can avoid these constraints in MXML by using CDATA:

<mx:Image id="img" source="foo.jpg" width="50" height="50">
<mx:toolTip>
 <![CDATA[\foo{\bar} or any usually forbidden characters as <, >, &, "'"...]]>
</mx:toolTip></mx:Image>
Jérémy Reynaud
Rahul Garg