10 Replies Latest reply on Mar 22, 2007 5:09 AM by thismonkey

    Off stage printing

    thismonkey
      I have a director movie from which I wish to print. I have created the image I wish to print, which is made up of several sprites, and put a border sprite around this. What I wish to be able to do is to print this group of sprites from off stage. The user should never see them appear on screen. I have previously used code along the lines of:

      stageImage = (the stage).image
      spriteImage = stageImage.crop(sprite(83).rect)
      member("printimage").image = spriteImage

      to take a section of the stage and store it as a cast member which I can then print. However because I want my section to be taken from offstage I am unsure how to do it. I have tried taking using the sprite(83).rect to define the image but this doesn't work.
      Any help will be most appreciated.
        • 1. Re: Off stage printing
          Level 7
          The PrintOMatic xtra makes printing from Director a much more
          straightforward experience than the built in printing capabilities. You
          can easily set up a print out a single member (regardless of if it is on
          stage or not) or a series of members...
          • 2. Re: Off stage printing
            thismonkey Level 1
            Hi Mike, cheers for your suggestion.

            My issue is that what Im printing is feedback to a users test. So the members I print will vary depending on their results. I basically have 2 table of results. One on screen which incorporates graphics and a 2nd plain black and white table off screen which is the one I wish to print.

            I can specify which sprite channels I want to print, or as I mentioned I have a border around the table so I was hoping to be able to 'grab' everything that is within the stage window inside that border to store as a cast member and then print that member, however as the border sprite is off stage Im not sure how to store this as a member.

            I think my main problem is how to grab selected sprites from the current frame, which are off stage, and print them.

            Im not sure if this has made my issue any clearer.

            Once again, many thanks for your help.
            • 3. Re: Off stage printing
              thismonkey Level 1
              Another issue is that the combined size of the table of sprites I which to print is bigger than my stage so I cant simply place it on stage and print the stage either.

              The on screen feedback is displayed over 3 screens where as the printed feedback puts all 3 pieces into one big table (hence being bigger than stage size) and this is what I want to print.

              I have used printomatic before, but I cant simply amend cast members to the document as they need to print out in the correct location or else the feedback (and ticks/crosses) will not line up/be relevant. Also a problem with printing off individual sprites, hence I need to grab a 'screenshot' of the table from off stage, store it as a cast member which I can then print.

              Im trying to give as much info as possible as I am running out of ideas.
              • 4. Re: Off stage printing
                Level 7
                thismonkey wrote:
                > Another issue is that the combined size of the table of sprites I
                > which to print is bigger than my stage so I cant simply place it on
                > stage and print the stage either.
                >
                > The on screen feedback is displayed over 3 screens where as the
                > printed feedback puts all 3 pieces into one big table (hence being
                > bigger than stage size) and this is what I want to print.
                > I have used printomatic before, but I cant simply amend cast members
                > to the document as they need to print out in the correct location or
                > else the feedback (and ticks/crosses) will not line up/be relevant.
                > Also a problem with printing off individual sprites, hence I need to
                > grab a 'screenshot' of the table from off stage, store it as a cast
                > member which I can then print.

                I could be wrong, but I suspect Director doesn't bother trying to render
                sprites which are completely off the stage.

                > Im trying to give as much info as possible as I am running out of
                > ideas.

                Could you create the table as an HTML document on disk and then use an xtra
                (e.g. buddyAPI) to print that? Assuming, of course, you don't need it to be
                Shockwave-safe.

                Otherwise, it looks like you're in for a lot of tedious positioning with
                Print-O-Matic.

                Andrew


                • 5. Re: Off stage printing
                  Level 7
                  I don't think you should be any different than the rest of us and escape the
                  hassle of assembling printable pages using Print-O-matic;)

                  But Print-O-matic is the way to go hands down.

                  --
                  Craig Wollman
                  Lingo Specialist
                  Word of Mouth Productions
                  212-928-9581

                  www.wordofmouthpros.com
                  "thismonkey" <webforumsuser@macromedia.com> wrote in message
                  news:er49ct$h7q$1@forums.macromedia.com...
                  > Another issue is that the combined size of the table of sprites I which to
                  > print is bigger than my stage so I cant simply place it on stage and print
                  > the
                  > stage either.
                  >
                  > The on screen feedback is displayed over 3 screens where as the printed
                  > feedback puts all 3 pieces into one big table (hence being bigger than
                  > stage
                  > size) and this is what I want to print.
                  >
                  > I have used printomatic before, but I cant simply amend cast members to
                  > the
                  > document as they need to print out in the correct location or else the
                  > feedback
                  > (and ticks/crosses) will not line up/be relevant. Also a problem with
                  > printing
                  > off individual sprites, hence I need to grab a 'screenshot' of the table
                  > from
                  > off stage, store it as a cast member which I can then print.
                  >
                  > Im trying to give as much info as possible as I am running out of ideas.
                  >


                  • 6. Re: Off stage printing
                    thismonkey Level 1
                    Right, if Director doesn't render the off stage images then I think I shall probably try this a different way, I had thought this might be a 'quick and easy' way to do what I wanted, but it doesn't seem to be.

                    Cheers again for the help.
                    • 7. Re: Off stage printing
                      Level 7
                      PrintOMatic does allow you to place the members arbitrarily when you put
                      the printout together. You can give it a loc and it will move the
                      member to that location. I have used it before to line things up fairly
                      easily. Using the drawPicture function, I believe.
                      • 8. Re: Off stage printing
                        thismonkey Level 1
                        I had to go about this in a long-winded and less suitable route than I wanted...

                        Basically I placed the pages to be printed on the stage... had to be over 2 frames as it was too high for 1 frame.

                        I then created castmembers with the stage as the border, then appended both images from the cast to a document then printed it with Printomatic,.

                        The downfall is that the user notices a 'flash' of white as we quickly skip through the pages that are to be printed. But as I can't print from off-stage there doesnt seem to be a way around this, without creating a document with buddyapi and then printing that.

                        Ah well...
                        • 9. Re: Off stage printing
                          BSpero Level 1
                          thisMonkey,
                          Maybe a little late, but I have had great success printing by sending text to a flash sprite. I can leave it offstage, fill in dynamic text fields as I go, and I have a lot of control over format, etc. You have to use Flash and know it a bit, but it works well. Uses the lingo printAsBitmap(). Just a thought.
                          • 10. Re: Off stage printing
                            thismonkey Level 1
                            Thats an excellent idea! I shall try that if I ever try this sort of thing again. Many thanks for that...

                            Matt