// I commented out this line of code
// where printImg is created
//printBox.addElement(printImg);
// I added this listener
printBox.addEventListener(Event.ADDED_TO_STAGE, function(e:Event):void {
trace("added to stage");
printBox.addElement(printImg);
});var fr:FileReference = new FileReference(); fr.save(printData, "TIGER.png");several different places and I can't get it to work. One thing I tried was creating a handler for addedToStage and included the above code, but the function was only called when the widget first loaded.