A Flash Developer Resource Site

Results 1 to 3 of 3

Thread: Printing Movieclips On Top of One Another

  1. #1
    Junior Member
    Join Date
    Aug 2011
    Posts
    6

    Printing Movieclips On Top of One Another

    Hello,

    I am building a map which has different layers on it, all on top of one another, all 700x700px and all movieclips. I have a print button (PrintUp) which sends the movieclips to be printed, however when I print, they don't sit on top of one another, they come out separately. How can I get them to print on top of each other like they are in the swf?

    The two movieclips are "Background" and "Grass"
    Both 700x700 and exactly the same X&Y.

    Here is the code below:

    PrintUp.addEventListener(MouseEvent.CLICK,Print);
    function Print(e:MouseEvent):void
    {
    var printJob:PrintJob = new PrintJob();
    if (printJob.start())
    {
    if (Background.width>printJob.pageWidth) {
    Background.width=printJob.pageWidth;
    Background.scaleY= Background.scaleX;
    if (Grass.width>printJob.pageWidth) {
    Grass.width=printJob.pageWidth;
    Grass.scaleY= Grass.scaleX;
    }
    printJob.addPage(Background);
    printJob.addPage(Grass);
    printJob.send();
    }
    }

  2. #2
    Junior Member
    Join Date
    Aug 2011
    Posts
    13
    have you tried converting the movieclips to bitmaps before they're printed?

  3. #3
    Junior Member
    Join Date
    Aug 2011
    Posts
    6
    The movieclips are overlayed (seen here: www.touchandgouk.co.uk/new) and need to have opacity working, would the bitmap not just create white where there is opacity?

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