Thanks for the help Apostolos.

But the problem is somewhere in the asp page...



On 12/16/05, Apostolos Manolitzas <[EMAIL PROTECTED]> wrote:
> > > [..]
> > > > 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");
> > >
> > >
>
> Hi,
>
> try using an example like this:
>
> // taken from: http://www.kirupa.com/web/xml/XMLspecificIssues3.htm
> import mx.utils.Delegate;
> class foo {
>   var xmlData:XML;
> function loadXML(_xmlurl:String) {
> xmlData = new XML();
> var classRef:Object = this;
> xmlData.ignoreWhite = true;
> xmlData.onLoad = Delegate.create(this, parseXML);
> xmlData.load(_xmlurl);
> }
> function parseXML() {
> trace(xmlData.toString());
> }
> }
> _______________________________________________
> Flashcoders mailing list
> Flashcoders@chattyfig.figleaf.com
> http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
>
_______________________________________________
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Reply via email to