Hi All,

Thanks for the info! The outerDocument.methodName worked perfectly and the link that was provided was excellent.

Quick question Amy, forgive my nubeness, what do you mean by "Why not make this a method on the VO that you're using for your data property?"

Thanks,
Adrian

Amy wrote:

--- In [email protected] <mailto:flexcoders%40yahoogroups.com>, Adrian Williams <[EMAIL PROTECTED]>
wrote:
>
> 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?

Why not make this a method on the VO that you're using for your data
property?

HTH;

Amy

Reply via email to