aniebel,
[quoted text, click to view] > Does the fact that I'm parsing this XML have anything to
> do with the fact that the mailto: function does not work?
It shouldn't. Let's see what you've got in your code.
[quoted text, click to view] > This is the function in Flash:
> function fMailTo(email)
> {
> getURL("mailto:" + email);
> }
So far, that looks fine. The above assumes that a string is being
passed into the fMailTo() function as a parameter, and that the parameter is
an email address.
[quoted text, click to view] > This is an attribute from my XML: ...
> which, after being parsed and when traced appears like
> this in the output window:
> <a href='asfunction:fMailTo,anyname@anydomain.com'> ...
When this hyperlink is clicked, asfunction, will invoke the fMailTo()
function and pass it the parameter anyname@anydomain.com -- at least, it
should. I would add a trace() statement inside the fMailTo() function to
make sure a) the function is being triggered at all and b) is receiving the
email address as expected. (The @ symbol might, for example, need to be
escaped, though I don't think that would be necessary.)
[quoted text, click to view] > going into a dynamic text field with the following properties applied:
> phoneList_txt.html = true;
> phoneList_txt.htmlText = sList;
So far, so good.
[quoted text, click to view] > sList is where all names, email addresses, etc. are
Is sList is an array? If so, you would need to pull a particular
element from that array, right? Something like ...
phoneList_txt.htmlText = sList[0];
Could that be it?
David Stiller
Adobe Community Expert
Dev blog,
http://www.quip.net/blog/ "Luck is the residue of good design."