On Mar 31, 2005 4:03 PM, Wilfred LEUNG <[EMAIL PROTECTED]> wrote:

> I would like to add a char font:webdings char code:235 unicode:61675 in a 
> field in the datagrid, as a prefix for a date.

[snip]

> I tried but can use only the chr(ascii) where ascii is just not enough

chr() is deprecate in favour of String.fromCharCode() since Player 5.

> My questions:
> 
> 1, how to insert a unicode directly? Like unicode(61657)

textObject.text = String.fromCharCode(61657) + "Dec 31, 2005";

> 2, how about specify a font and code for one character and then specify 
> another font and string on one cell in the datagird.

Create two Label objects and place them adjacent to each other.  The
first Label object would contain the special character in Webdings
font.

 <mx:Label text="{String.fromCharCode(61657)}" fontFamily="Webdings" />

Or you could use a plain old htmlText:

  <mx:Text>
    <mx:htmlText>
      <![CDATA[
      <font face="webdings">&#61675;</font>Dec 31, 2005
      ]]>
    </mx:htmlText>
  </mx:Text>

Manish


 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/flexcoders/

<*> To unsubscribe from this group, send an email to:
    [EMAIL PROTECTED]

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/
 



Reply via email to