Rafael2k
June 26th, 2009, 10:02 AM
ok
i made a class to load an XML and when i call Load() method a Event is triggered But doesn't reach the EventListener.
i not sure why this happening :deathstar:
i have this on my FLA file
import FichaTecnica.XML.*;
import FichaTecnica.Estruct.*;
function UpdateFields(e:XMLLoaderEvent):void{
if(e.params.tipo=='FichaTec'){
txt_entfed.text = oXML.FichaTecnica.EntidadFederativa;
}
throw new Error("ORLY????=");
}
var oXML:XMLLoader = new XMLLoader(this.loaderInfo.parameters);
this.addEventListener(XMLLoaderEvent.XML_LOADED,Up dateFields);
oXML.Load();
Event LAunch
private function ParseFichaTecnica():void {
...
if(!this.dispatchEvent(new XMLLoaderEvent(XMLLoaderEvent.XML_LOADED,{tipo:'Fi chaTec',url: sLinUrl+'?l='+sLin+'&e='+sEst}))){
throw new Error("error al enviar datos");
}
}
i made a class to load an XML and when i call Load() method a Event is triggered But doesn't reach the EventListener.
i not sure why this happening :deathstar:
i have this on my FLA file
import FichaTecnica.XML.*;
import FichaTecnica.Estruct.*;
function UpdateFields(e:XMLLoaderEvent):void{
if(e.params.tipo=='FichaTec'){
txt_entfed.text = oXML.FichaTecnica.EntidadFederativa;
}
throw new Error("ORLY????=");
}
var oXML:XMLLoader = new XMLLoader(this.loaderInfo.parameters);
this.addEventListener(XMLLoaderEvent.XML_LOADED,Up dateFields);
oXML.Load();
Event LAunch
private function ParseFichaTecnica():void {
...
if(!this.dispatchEvent(new XMLLoaderEvent(XMLLoaderEvent.XML_LOADED,{tipo:'Fi chaTec',url: sLinUrl+'?l='+sLin+'&e='+sEst}))){
throw new Error("error al enviar datos");
}
}