Jose Maria Barros schrieb:
Im having some problems loading an XML file into flash. The client
inserts in the databse some elements and then an ASP page creates the
xml file and flash reads it.
[..]
Here is the code that i use in flash:
//XML
ementa_xml = new XML();
_root.myEmenta = new Array();
ementa_xml.load("ementa2.xml");
ementa_xml.onLoad = startEmenta;
ementa_xml.ignoreWhite = true;
_root.main11.ementa_txt = "";
Here is a problem: You define the XML.onLoad-action AFTER loading the
XML. In any way you must define
ementa_xml.onLoad = startEmenta;
before you call
ementa_xml.load("ementa2.xml");
Regards,
Roman.
--
-------------------------------------------------------------------
gosub communications gmbh | fredersdorfer str. 10 | 10243 berlin
t [030] 29 66 88 81 | f [030] 29 66 88 84 | http://www.gosub.de
-------------------------------------------------------------------
_______________________________________________
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders