Animate 2020: About JavaScript & CreateJS
Hello good afternoon! I have a question, I have a code in Action 3.0 I'm trying to convert to JavaScript but I'm not getting it. can you help me? Preciso que ele puxe um XML na animação, mas não está funcionando.
import flash.display.MovieClip;
stop();
var meuURL:XMLHttpRequest = new XMLHttpRequest("Name XML"+Math.random());
//var meuURL:URLRequest = new URLRequest("Name XML");
var arquivo:XML;
var infoXML:XMLHttpoader = new XMLHttpoader ();
infoXML.load( meuURL );
infoXML.addEventListener(Event.COMPLETE, verificaXML);
function verificaXML(evento:Event):void
{
this.arquivo = new XML(infoXML.data);
this.play();
}
var cont_n = 0;
var j = 0;
var boo:Boolean = true;
Thanks for listening.
