Print Individual Frames

I know that to specify a printable page you select the frame and name the thing #p. What I want to know is…

I have multiple frame that should print out separately when the user clicks various buttons. If I specify these frames (there are three) as #p I will get a duplicate frame name warning and all three frames would be printed. How do I specify a printable frame yet stop them from printing out all together. The user should be able to specify the information of their choice that they want printed. Bet its dead easy but I just can’t thinK!

Well I’ve always ignored the duplicated frame label warning. After all, it’s only a warning, and it won’t stop the program from running.

But then, the way I print stuff out is to have a separate movie containing what I want printed, then load this into a hidden placeholder movie. Call the placeholder ‘holder’ for example and stick this code on it:

<I>onClipEvent (load) {
onClipEvent (data) {
if (this.getBytesTotal()>0 && this.getBytesTotal() == this.getBytesLoaded()) {
print("_root.holder", “bmovie”);

Then attach this next bit to the print button:

<I>on (release) {
loadMovie(“moviename.swf”, “/holder”);

That should work OK. And you can run a check on this second bit of code to determine which movie you want to load and print, if you get me.

Help Kit!

The print button actives the printing but nothing is printed on the page. The visibility like in your code is set to zero nothing prints out. Nightmare! Help!


Have you got a bounding box or something on the bit you want to print? That’s the only thing I can think of that might f*** it up a bit.

So where I’ve written

<I>print("_root.holder", “bmovie”);</I>

play around with the ‘bmovie’ bit in normal mode, see if you can get it to work that way.

I’m not too great with printing from Flash. :x

I’ll play around and see what I can come up with thanks. Theres just 2 problems left to deal with now, this printing and my interactive flash map! I have even less of a clue when it comes to that! I’m just going to die when I’m doing this.

I can’t figure out the controls for zoom in and zoom out. I could probably figure it out for pan up down left and right though. Any ideas?

I wanna know what big big freak specified that when you want to print out specific frames then you must have a #p frame name. I mean you should be able to select frames. I mean like “PrintAll” or “PrintFrame()” and then specify which **** frame you wanna print. I mean is it really that hard?

All I wanna do is have frames printed, but only specific frame that the user wants. So I either print none, or all the frames labeled #p, many of which the user will not want. I hate printing in flash!

And text boxes! Theres another thing. Why in hell cant you print a dynamic text box if it has an instance name, I mean if its got something to identify it on the page then why can’t you print the **** thing!? Ooooh! I’m so frustrated!

I had the same problem and I got a solution naming with different names all the frames I needed to print

Instead #P all the frames I named: 1, 2, 3, 4…

and it worked


I am also wondering how to print specific frames. I have tried to name the frames 1, 2, and so on, but it didn’t work. All frames are printed. Does anyone know what I need to do? I can eventually post my .fla if you need it…

I’ve attached a set of files in a zip that might be able to help. It’s a lot easier to see what’s going on by using those than it is to explain. :slight_smile:

If you’ve got any problems picking these apart though, post the fla etc and we’ll see what we can do… :slight_smile:

Long time no chat Kit. Hows things with you? Still with Churchill? Is that an “oooohh yes” or an “oooooh no no no no”?