In frame 1 of my AS2 .swf:
import com.classes.ParseXML;
var xml:ParseXML = new ParseXML("xml/site.xml");
xml.addEventListener("Finished", this.init)
function init(){
// run init
}
After I run through a few functions in that class I would like to dispatch an event to the swf like I did in AS2:
//ParseXML class
//declaring variables and such
private static var evtDisDependancy = EventDispatcher.initialize(ParseXML.prototype);
//inside some function
this.dispatchEvent({type:"Finished"})
Now, apparently a lot has changed in AS3. Could someone please explain to me how I would dispatch this same type of event in AS3 … or if there is new logic that I need to learn?
Thank you!