Hey,
I have a problem with assigning strings holding ascii codes into links.
This is what I am doing right now to force links to display character
instead of ascii code for that character:
public static function someFunction ( str ) : String
{
var modStr:String = str;
var r:String = String.fromCharCode(174);
var rIndex:Number = modStr.indexOf("®");
if ( rIndex > -1 )
{
modStr = searchAndReplace( modStr, "®", r);
}
trace("new string =" + modStr);
return modStr;
}
Does anybody know a better way of doing this? My solution is not
practical especially when I have lots of places which need such
implementation.
Thanks a lot,
misioFasol
--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com
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/