Friday, April 17, 2009

Print a movie clip in flash

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:

Anonymous said...

thanks man. This is really nice. But how do you make it work in AS3?

Anonymous said...

Hey great work...
more detail was expected...

Anonymous said...

Very nice, saved my bacon.
Cheers!

Logeshkumar P said...

Super and Good Job

Anonymous said...

Thanks a ton. It saved my neck:))

Anonymous said...

Thanks, Great works!

Mikis said...

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