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:

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

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

    ReplyDelete
  3. Very nice, saved my bacon.
    Cheers!

    ReplyDelete
  4. Thanks a ton. It saved my neck:))

    ReplyDelete
  5. Thanks, Great works!

    ReplyDelete
  6. 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

    ReplyDelete