sam85281
asked on
Printing in Flash
Hi,
I understand all the normal printing functions in flash.
I need to be able to print 1 frame of a movie using printNum();. I know that I can put a #p label to do that, but I have multiple locations where that would be, and I only want to print one designated location at a time, not everywhere there would be #p.
Any way to do this???
Thanks,
-Sam
I understand all the normal printing functions in flash.
I need to be able to print 1 frame of a movie using printNum();. I know that I can put a #p label to do that, but I have multiple locations where that would be, and I only want to print one designated location at a time, not everywhere there would be #p.
Any way to do this???
Thanks,
-Sam
Are you using flash mx 2004?
ASKER
Yes 2004 Pro
-Sam
-Sam
depedningon the nature of the mc you are printing from you could always make each frame you want printed (at separate times) an mc with a unique instance name and use:
print(target)
to print that specific one...
billystyx
print(target)
to print that specific one...
billystyx
Then you can add any frame from any movieclip to a print job, without setting any frame label:
var my_pj = new PrintJob();
if (my_pj.start()){
// the last parameter is the frame to print
my_pj.addPage("your_clip", {xMin:0,xMax:400,yMin:0,yM ax:400},{p rintAsBitm ap:true}, 3))
my_pj.send();
}
delete my_pj;
var my_pj = new PrintJob();
if (my_pj.start()){
// the last parameter is the frame to print
my_pj.addPage("your_clip",
my_pj.send();
}
delete my_pj;
good one:)
ASKER
Yea if I'd known I was going to add printing capability to my app, I would have done it in movie clips.
Everything I need to print is on the main timeline, hence the reason I need to use printNum() instead of print();
At this point in the project, moving all the content from the main timeline to movieclips would be a big re-path the actionscript project. Hoping to avoid that.
Any other ideas? :) If not I guess I'll just have a big project to keep me out of trouble for a while.
-Sam
Everything I need to print is on the main timeline, hence the reason I need to use printNum() instead of print();
At this point in the project, moving all the content from the main timeline to movieclips would be a big re-path the actionscript project. Hoping to avoid that.
Any other ideas? :) If not I guess I'll just have a big project to keep me out of trouble for a while.
-Sam
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
That's just beautiful Negatyve. Thanks!
-Sam
-Sam