In this i like to tell about how to print a movie clip from flash AS2.0.
for this just create a movie clip what it has to print. name it as your wish.
and copy the below code and past it in the frame.
function print_page() {
var my_pj = new PrintJob();
var myResult = my_pj.start();
if (myResult) {
myResult = my_pj.addPage("img_mc2", null, {printAsBitmap:true}, 1);
my_pj.send();
delete my_pj;
trace("asdasdasdasd");
}
}
In the button put the code as
on(release){
print_page();
}
A sample file is in the below link
download rar file zip file
Do u want to search anything in my site just try out the Google search Above next to the head.
Don't forget to leave a comment about this
7 comments:
thanks man. This is really nice. But how do you make it work in AS3?
Hey great work...
more detail was expected...
Very nice, saved my bacon.
Cheers!
Super and Good Job
Thanks a ton. It saved my neck:))
Thanks, Great works!
Still works! Never delete these, some of need to repair old flashies (old browser apps turned into AIR desktop apps, loading SWF content from servers) :D
Post a Comment