A Flash Developer Resource Site

Results 1 to 2 of 2

Thread: Printing Swf in AS3

Threaded View

  1. #1
    Registered User
    Join Date
    Aug 2011
    Posts
    1

    Unhappy Printing Swf in AS3

    Hi all i am facing some problem while printing an swf from another swf movie..
    i have two movies A & B, in which B will be loaded to A and will be printed from A using a Print btn in A. The swf B has many layers including vector and jpep files. when i load the movie B to Movie A, its coming properly but, when i give print only the jpeg image which is in the top layer of B, is coming.. i tried printing area of stage also. that also giving the same result.. what is the problem??
    here is the code that i have given

    print_btn.addEventListener(MouseEvent.CLICK,printC ontent);

    function printContent(evt:MouseEvent) {
    var printJob:PrintJob = new PrintJob();

    if (printJob.start()) {

    if (loader_mc.width>printJob.pageWidth) {
    loader_mc.width=printJob.pageWidth;
    loader_mc.scaleY=loader_mc.scaleX;
    }

    printJob.addPage(loader_mc);
    printJob.send();
    }
    }

    i have attached the two movies.. i am new AS3 and guys please help me!!
    Attached Files Attached Files

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  




Click Here to Expand Forum to Full Width

HTML5 Development Center