« back
public static const START:String = "PrintEvent.onStart";
public static const COMPLETE:String = "PrintEvent.onComplete";
public static const CANCEL:String = "PrintEvent.onCancel";
Print.getInstance().addEventListener(PrintEvent.START, printStartHandler);
function printStartHandler(event:PrintEvent) {
// use this to prepare your content for printout (for example, set white text to black etc.)
}
Print.getInstance().addEventListener(PrintEvent.COMPLETE, printCompleteHandler);
function printCompleteHandler(event:PrintEvent) {
// use this to recover your content after printout (for example, set black text back to white etc.)
}
Print.getInstance().addEventListener(PrintEvent.CANCEL, printCancelHandler);
function printCancelHandler(event:PrintEvent) {
// use this to recover your content after printout (for example, set black text back to white etc.)
}