hi Dan,
i'm testing your code and this operates correctly:
//Flash
import mx.utils.Delegate;
var xml:XML = new XML();
xml.ignoreWhite = true;
xml.load("site.xml");
xml.onLoad = Delegate.create(this, onLoadXML);
function onLoadXML(success:Boolean):Void {
if (success) {
var temp:String = this.xml.firstChild.childNodes[0].firstChild.nodeValue;
text_txt.htmlText = temp;
}
}
function testing(param:Number) {
trace(param);
}
//XML
<?xml version="1.0" encoding="iso-8859-1"?>
<site>
<para2><![CDATA[<p align="center">blah blah blah, <a
href="asfunction:testing,1">RSVP today!</a></b></font></p>]]></para2>
</site>
regards
Leandro Amano
On 5/10/07, Dan Wade <[EMAIL PROTECTED]> wrote:
Hello,
After my xml is generated I have a node:
para2><![CDATA[<p align="center">blah blah blah, <a
href="asfunction:testing,1">RSVP today!</a></b></font></p>]]></para2>
I have a htmlEnabled text field which I populate with the above node, but
I
can't get the testing() function to fire using asfunction.
Is the syntax correct here or am I missing something?
Tia,
Dan
_______________________________________________
[email protected]
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com
--
--
Leandro Amano
Digital Bug
Chief Creative Officer
Adobe Certified Expert
Adobe Certified Instructor
Adobe User Group Leader
_______________________________________________
[email protected]
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com