using the added event listerner
working in a canvas project. when i use the following code, the pic loads fine, but i don't get the trace alert.
var page1Pic = new createjs.Bitmap("page1.0.png")
root.addChild(page1Pic);
page1Pic.addEventListener("added", picAdded);
function picAdded(event){
alert("Trace");
// my goal here would be to start loading a second picture
};
if i use the "click" event listener, as in the following code, i get the trace alert.
var page1Pic = new createjs.Bitmap("page1.0.png")
root.addChild(page1Pic);
page1Pic.addEventListener("click", picAdded);
function picAdded(event){
alert("Trace");
};
what gives?
is there a better way to load one pic and display it before starting to load the next pic?
