Y'all,
Here's a frustrating one....I have this function defined:
public function convertEmailToMailto(emailAddy:String):String
{
var mailtoEmailAddy:String ;
mailtoEmailAddy = '<a href="mailto:' + emailAddy + '">'
+ emailAddy + '</a>';
return mailtoEmailAddy;
}
And am referencing it like this:
<mx:itemRenderer>
<mx:Component>
<mx:Text
htmlText="{convertEmailToMailto(data.emailAddress)}"/>
</mx:Component>
And am getting the error "Call to a possibly undefined method
convertEmailToMailto". It's probably something stupidly simple, but I
can't seem to see the forest for the trees. Help anyone?
Thanks,
Adrian