Using printAsBitmap, how to print multiple pages individually

Posted on 2008-01-31
Medium Priority
Last Modified: 2010-08-05
I have a Flash 8 program in which each different frame gives the user the opportunity to manipulate different objects to create an image. I.e frame 2 gives objects A,B+C to play with. Frame 3 gives objects D,E+F to play with etc.

When they have created that image, they can print it. I need them to be able to print only the current page, no matter what frame they decide to enter. It contains transparent images so im using printAsBitmap with the following code

on (release) {
      printAsBitmap(0, "bmovie");

By default, it trys to print all frames in the movie. If i apply the frame label #p, it will print only the current frame but i can only use that frame label once. I.e if i apply #p label to a second frame, it prints both frames with the #p label.

Can anyone help?
Question by:CondoPAFC
LVL 23

Accepted Solution

Zeffer earned 2000 total points
ID: 20805206
I don't see how you can do it with code but a lateral approach would be..
Create movieclips containing the contents of each frame
Use only one frame on the main time line
load the movieclips from the library ..using attachMovie.. to the stage..on demand
when print is used there is only one (the current) frame and selected movie that can print

Author Closing Comment

ID: 31427020
Thanks Z, that worked well.

Featured Post

Get 10% Off Your First Squarespace Website

Ready to showcase your work, publish content or promote your business online? With Squarespace’s award-winning templates and 24/7 customer service, getting started is simple. Head to Squarespace.com and use offer code ‘EXPERTS’ to get 10% off your first purchase.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

This is a very simple example to help those of you who are still migrating from AS2 to AS3 understand the redesigned event model in AS3. In AS2.0, event functions (that is, the function to be performed when an event is fired) were stored as a pro…
In my long career of working as an actionscript developer, I had spent sleepless night often working hard to solve some small problems which actually took a lot of my development time; later found out the solutions to be a line or two. Here are s…
In this tutorial viewers will learn how to create a basic motion tween animation in Flash Open a new document in Flash: Draw/import an image: Press CTRL + F8 to convert it into a graphic symbol: Select a frame (how long you want the tween to last): …
The goal of the tutorial is to teach the user how to select which audio input to use. Once you have an audio input plugged into the laptop or computer, you will go into the audio input settings and choose which audio input you want to use.

627 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question