PrintJob - Not Printing Multiple Pages
When I say "Not printing multiple pages", I mean that sometimes on slower computers or printers, it would appear that the spooling ends prematurely, while on other faster computers/printers, everything gets printed fine.
Any solution to this, cause honestly, I can't see it. I don't think it's the code, because it does print ok from my computer, but others can only print 10 of 30 pages, sometimes more, but rarely all. Appreciate any help!
ActionScript.org Forums > ActionScript Forums Group > ActionScript 3.0
Posted on: 07-22-2008, 02:06 PM
View Complete Forum Thread with Replies
Sponsored Links:
Problem Printing Multiple Pages With PrintJob
Can I have some help please?
I have a flash file that prints labels, this all works fine for single pages; however I would like to print multiple pages of the same movie clip (sticker_mc) which content changes when my function autoSet() is run. (autoSet() changes content of dynamic text fields of sub movie clips and also shows/hides some sub movie clip when required).
The code below prints multiple pages as I expected (2 pages, 3 pages, 4 pages etc as required), but the dynamic text fields data stay the same for each page as it is when initial print request is called.
The function autoSet() works perfectly (I run it manually without the print request), and when the print has completed the sticker_mc movie clip is displaying the data as it is intended.
Sticker_mc has four sub movie clips; in my testing I sent two pages to the printer, the first page has all four sub movies visible (as intended) and the second page prints with only two sub movies visible (as intended) but the dynamic text files which should of change remains the same as the first page. However the movie clip which is displayed on the screen once the print request has completed, has the correct data in the dynamic text fields. ??????????????
I hope this is understandable, I’ve spent a whole day playing with the code trying to sort it out and would dearly like some help before I start to cry!!!
Thanks
Russell
Attach Code
printLabel = function () {
var my_pj:PrintJob = new PrintJob();
if (my_pj.start()) {
var pagesToPrint:Number = 0;
if (my_pj.orientation == "portrait") {
// portrait page.
sticker_mc._rotation -= 90;
// This checks to see if variable “files” is bigger than 0, if it is it will loop addPage until complete (the function autoSet() reduces the
// variable “files” and changes the content of “sticker_mc”.
if (files>0) {
if (my_pj.addPage(sticker_mc, {xMin:0, xMax:600, yMin:0, yMax:700})) {
pagesToPrint++;
}
for (j=files j>0; j=files) {
autoSet();
if (my_pj.addPage(sticker_mc, {xMin:0, xMax:pWidth, yMin:0, yMax:pHeight})) {
pagesToPrint++;
}
}
} else {
if (my_pj.addPage(sticker_mc, {xMin:0, xMax:700, yMin:0, yMax:600})) {
pagesToPrint++;
}
}
sticker_mc._rotation += 90;
} else {
// my_pj.orientation is "landscape".
// landscape page.
if (my_pj.addPage(sticker_mc, {xMin:0, xMax:pWidth, yMin:0, yMax:pHeight})) {
pagesToPrint++;
}
}
if (pagesToPrint>0) {
my_pj.send();
}
}
delete my_pj;
};
View Replies !
View Related
Printjob Printing Blank Pages
i'm building a printing class.
it worked fine before i optimised the code with the for loop.
now, i get the desired output in the swf window but the printouts are blank.
i believe it has something to do with scope/children and what belongs where in the z order but i'm just guessing really.
any help is much appreciated.
thanks.
fla:-
<code>
import printing.PrintExample;
var gameData:Array = new Array("df","alice","10","5","8");
var Print:PrintExample = new printing.PrintExample(gameData);
addChild (Print);
</code>
as:-
<code>
package printing
{
import flash.display.*;
import flash.text.TextField;
import flash.text.TextFieldAutoSize;
import flash.events.*;
import flash.printing.*;
public class PrintExample extends Sprite
{
private var _printableContent:Sprite = new Sprite();
private var _textField:TextField = new TextField();
private var _nameField:TextField = new TextField();
private var _ageField:TextField = new TextField();
private var _gameField:TextField = new TextField();
private var _scoreField:TextField = new TextField();
private var printJob:PrintJob;
private var gameData:Array;
public var finished:Boolean = false;
private var fields:Array = new Array("_textField","_nameField","_ageField","_game Field","_scoreField");
public function PrintExample (_data)
{
gameData = _data;
for (var i:int = 0; i< gameData.length; i++)
{
addChild (_printableContent);
_printableContent.addChild (this[fields[i]]);
(this[fields[i]]).width = 400;
(this[fields[i]]).autoSize = TextFieldAutoSize.LEFT;
(this[fields[i]]).x = 20;
(this[fields[i]]).y = (i*20)+20;
(this[fields[i]]).text = gameData[i];
if (i==4)
{
finished = true;
}
}
printJob = new PrintJob();
printJob.start ();
if (finished == true)
{
trace ("finished");
printJob.addPage (_printableContent);
printJob.send ();
}
else
{
trace ("not finished");
}
}
}
}
</code>
View Replies !
View Related
PrintJob Multiple Pages
Help! the movieclip i am trying to print is too big for one page but printjob will only print one page at a time... someone please help me print out all of my movieclip content...
here is my code drawing on the movieclip.
for (t=0;t<result_lv.TotalWindows;t++){
printClip.attachMovie("quote", "quote"+t, printClip.getNextHighestDepth());
printClip["quote"+t]._y = s*40+90;
printClip["quote"+t]._x= 5;
printClip["quote"+t].windowNum.text = eval("result_lv.windowNum"+t);
printClip["quote"+t].styles.text = eval("result_lv.style"+t);
printClip["quote"+t].frame.text = eval("result_lv.frame"+t);
printClip["quote"+t].widthh.text = eval("result_lv.width"+t);
printClip["quote"+t].heightt.text = eval("result_lv.height"+t);
totalProducts=eval("result_lv.TotalProducts"+t);
s++;
for (z=0;z<totalProducts;z++){
printClip.attachMovie("display_mcc", "display_mcc"+t+z, printClip.getNextHighestDepth());
printClip["display_mcc"+t+z]._y = s*40+90;
printClip["display_mcc"+t+z]._x= 205;
printClip["display_mcc"+t+z].desc.text = eval("result_lv.product"+t+z);
printClip["display_mcc"+t+z].price.text = eval("result_lv.price"+t+z);
s++
}}
var printJob:PrintJob = new PrintJob();
if (printJob.start()) {
var numPages:Number = 0;
if (printJob.addPage(printClip))
{
numPages++;
}
delete printJob;
} else {
trace("PrintJob.start() failed");
}
View Replies !
View Related
CS3: PrintJob, Multiple Pages, Dynamic Textbox
I can see many are asking about the the printJob but I can't really find an answer for my problem...
I use this code:
PHP Code:
printBut.onRelease = function() {
var pageCount:Number = 0;
var my_pj:PrintJob = new PrintJob();
if (my_pj.start()) {
if (my_pj.addPage("txtMc", {xMin:0, xMax:600, yMin:0, yMax:800}, {printAsBitmap:false}, 2)) {
pageCount++;
}
}
// If addPage() was successful at least once, print the spooled pages.
if (pageCount>0) {
my_pj.send();
}
delete my_pj;
};
Inside "txtMc" (frame 2) is a dynamic textbox and it's content depends on the user. It prints fine but only one page no matter what.
Can anyone please tell me what I'm doing wrong???
Thz
View Replies !
View Related
Printing On Multiple Pages
I have a flash form with many fields. I want to allow the user to print this, so i have set up a print screen, the problem is when the user input is lengthy it scales everything onto one page. Is there any way to break this into multiple pages, withouth launching multiple print dialog boxes for the user.
ANy input would be great.
Thanks,
View Replies !
View Related
Printing Multiple Pages
I have TextArea that has text being populated from a xml file. I want to be able to print the contents of this TextArea, I have used the printjob function and I am able to print the the TextArea text. The problem is that where the printer starts a new page I am loosing text. Is there a better way of holding this information, to be better prepared for printing?
Thank you.
View Replies !
View Related
Printing On Multiple Pages
Hi
I have a movie which has a particularly large height. I need to print the content of this movie. I have used the printAsBitmap(target,"bmax") which prints the whole movie on one page BUT scaled down to fit. This makes the content too small to read. Width is not a problem but the height is. Is there a way to print this over multiple pages?
thanks
View Replies !
View Related
Printing Multiple Pages
My project consists of a main page.... and there is a button, clicking on it will load different swf files into the main page. Now if i say print from the main page.... I should be able to print all the printable frames from each swf.... along with the frame in the main movie.... right now iam able to load whichever is there in the screen... but i want to print all the swf files which are off the screen also....
Somebody help.....
View Replies !
View Related
Printing Multiple Dynamic Pages
Major problem that seems to be circulating on many groups, with no answer...
Importing loads of text via XML and want to print it out on multiple pages (instead of all the text getting crammed onto one page)...
Have a seperate movieclip with the multiple frames, each representing a printed page, all labelled #b, and each frame has it's own dynamic textfield.
Can update the textfield on the first frame of the movieclip, but can't seem to get to the textfields on any of the other frames in order for the print command to print the updated text...
any ideas?
PLEASE HELP!
smorrow
View Replies !
View Related
Unlimited Printing - Multiple Pages
At the end of a project I have a print facility which allows the user to print out all their collected input for review. The problem is that they can write in as much as they like in each section - therefore this means the variable at the end which collects all the input strings together at the end could be book length if they were bothered enough - but in general will certainly be multipage. How do I set it up so that flash will print all the text on as many pages as required? Thanks in advance.
View Replies !
View Related
Printing Multiple Pages - Actionscript Not Working
Hi all,
I've looked around the forum for a similar problem but can't seem to find it.
I'm working on a multipaged flash form for which I need to print out a large document with all the information collected in the form. In the various screens, I've used radio buttons to collect a lot of "yes/no" type information. When I go to print the document at the end, I've got little 'x' movie clips that are all set opacity = 0 and then have used actionscript to set opacity to 100 if the 'x' should appear.
The problem I can't solve - this is all working fine for the first page (frame) that is being printed, but all of the other pages (frames) won't show any of the 'x's. If I simply view the pages instead of printing them, all the 'x's are showing up fine. I'm using code like this:
Code:
if(_root.s1_sex == "male"){
male_x._alpha = 100;
}else if(_root.s1_sex == "female"){
female_x._alpha = 100;
}
I originally had the code for each page inside a movie for each page, but thought that that may be a problem, so tried putting all the code on the first frame of the movie before calling the print function, but that didn't seem to make a difference. To print I'm using:
Code:
print(_level0.container.printpages, "bmovie");
I *hope* this makes sense - I know it seems confusing... I'm restricted to AS2 because that's all I really know. I'd really appreciate any help that anyone can give me. I'm totally stuck!
View Replies !
View Related
Printing Multiple Pages Melts Flash
I know what you're thinking, who in their right mind would want to print that many pages in one sitting, well, my users for one. I have been working on an web-based print app that involves some fairly intense user controlled scale adjustments, and I've got it all working pretty well, but... when I try to print out something in the region of 300+ pages I get furnished with a rather tastefully placed error message saying:
"a script on this page is causing flash 9 to run slowly"
"Oh, that old chestnut" I hear you say "just fix by using setTimeout", well I'd love to, however the problem is whenever you reset the timeout, it bins what is in the printJob. Grrrr, has anyone found a work around for this or is it just a problem we have to endure until the bods at flash fix it.
View Replies !
View Related
Printing Multiple Pages Melts Flash
I know what you're thinking, who in their right mind would want to print that many pages in one sitting, well, my users for one. I have been working on an web-based print app that involves some fairly intense user controlled scale adjustments, and I've got it all working pretty well, but... when I try to print out something in the region of 300+ pages I get furnished with a rather tastefully placed error message saying:
"a script on this page is causing flash 9 to run slowly"
"Oh, that old chestnut" I hear you say "just fix by using setTimeout", well I'd love to, however the problem is whenever you reset the timeout, it bins what is in the printJob. Grrrr, has anyone found a work around for this or is it just a problem we have to endure until the bods at flash fix it.
View Replies !
View Related
Printing Multiple Pages Of A Scrollable Dynamic Text Box
I've seen a number of posts in this forum and others about how to print text out of a scrollable dynamic text box. Some people have come up with solutions like making another dynamic text box off-stage that is A4-size that contains the same text as the scrollable text box. The printJob() action then uses this text box as its target and prints a nice A4 page.
But what if there is so much text, it needs more than one A4 page to print? I've been searching for answers without much luck, but I did come across this:
ActionScript Code:
on (click) {//create PrintJob objectmyPrintJob = new PrintJob();//display print dialog boxmyPrintJob.start();var maxS:Number; //total number of lines in textAreavar botS:Number; //total number of lines visible in scroll box//loop through untill i have added a page for each scroll panefor (var i = 1; botS*i<=maxS; i++) {// add specified area to print jobmyPrintJob.addPage("_root.print_txta", {xMin:-36, xMax:612, yMin:-36, yMax:792}, {printAsBitmap:false});maxS = _root.print_txta.label.maxscroll ;botS = _root.print_txta.label.bottomScroll;//manually scroll the box_root.print_txta.vPosition = botS; }// send pages from the spooler to the printermyPrintJob.send();// clean updelete myPrintJob;}
Source: http://livedocs.macromedia.com/flash...=00001640.html
This would obviously be attached to a button, and is trying to print a text box named "print_txta" at the _root level. The trouble is, it doesn't work!.
I've tried changing it around a bit, like relocating the ending } of the loop, but still cannot get it to work. All it does is print the one page over and over (luckily I was printint to Adobe PDF, so I wasn't wasting paper! I recommend you do the same if you want to test the script!) and if you have more text than will fit on one A4 page, it ignores everything past the first page!
I wonder if anyone else on this board can make more sense out of the above script and perhaps get it to actually work in the way it was supposed to? I think this would benefit a lot of people out there.
View Replies !
View Related
Printing With PrintJob
Hello, i'm developing an application for standalon self attending multimedia kiosks, and I wish to print some stuff without going thru the OS Print Dialog Box... It seems PrintJob does not work without calling the .start() method (which opens the Dialog Box) is there any way to workaround this problem?
Thanks in advance
Wilson
View Replies !
View Related
Printing With PrintJob
I am trying to have a movie clip load alternate content, move it out of the user's view, and send it to the printer. The script seems to work except what it sends to the printer only contains the background. Just looking at the code does anyone see anything wrong?
The function which attaches the print_mc and initiates the print command:
Code:
prep_print = function(loc:String) {
_parent.attachMovie(loc, "print_mc", 99);
_parent.print_mc._x = Stage.width;
_parent.print_mc._y = Stage.height;
_parent.print_mc.field.htmlText = "<b>"+_global.secTitle+"</b><br><br>";
_parent.print_mc.field.htmlText += _global.bodyTxt;
//Usage:
//print_item(movie_to_print, allow_scale);
//print_item(MovieClip , Boolean );
_global.print_item(_parent.print_mc, false);
_parent.print_mc.removeMovieClip();
};
Print function:
Code:
//------------------------------------------------------------------------------------
//target_mc ->The movieclip you want to be printed.|
//allowScale ->Allow the movieclip to scale down to fit on a single page. Page |
//size is determined at runtime by the PrintJob object. If scalling|
//------------------------------------------------------------------------------------
_global.print_item = function(target_mc:MovieClip, allowScale:Boolean) {
var pgCount:Number = 0;
var myPj:PrintJob = new PrintJob();
if(myPj.start()) {
//Fix orientation to force portrait
var iniH:Number = target_mc._height;
var iniW:Number = target_mc._width;
if(myPj.orientation == "landscape") {
target_mc._rotation = -90;
var height_:Number = target_mc._width;
var width_:Number = target_mc._height;
if(allowScale) {
var hRatio:Number = 1;
//---
while((height_ < myPj.pageHeight)||(width_ < myPj.pageWidth)) {
if(height_ < myPj.pageHeight) {
hRatio = myPj.pageHeight/height_;
height_ = myPj.pageHeight;
width_ = width_*hRatio;
}
if(width_ < myPj.pageWidth) {
hRatio = myPj.pageWidth/width_;
width_ = myPj.pageWidth;
height_ = height_*hRatio;
}
}
//---
while((height_ > myPj.pageHeight)||(width_ > myPj.pageWidth)) {
if(height_ > myPj.pageHeight) {
hRatio = myPj.pageHeight/height_;
height_ = myPj.pageHeight;
width_ = width_*hRatio;
}
if(width_ > myPj.pageWidth) {
hRatio = myPj.pageWidth/width_;
width_ = myPj.pageWidth;
height_ = height_*hRatio;
}
}
//---
target_mc._width = height_;
target_mc._height = width_;
}
} else {
//---
var height_:Number = target_mc._height;
var width_:Number = target_mc._width;
if(allowScale) {
var hRatio:Number = 1;
//---
while((height_ < myPj.pageHeight)||(width_ < myPj.pageWidth)) {
if(height_ < myPj.pageHeight) {
hRatio = myPj.pageHeight/height_;
height_ = myPj.pageHeight;
width_ = width_*hRatio;
}
if(width_ < myPj.pageWidth) {
hRatio = myPj.pageWidth/width_;
width_ = myPj.pageWidth;
height_ = height_*hRatio;
}
}
//---
while((height_ > myPj.pageHeight)||(width_ > myPj.pageWidth)) {
if(height_ > myPj.pageHeight) {
hRatio = myPj.pageHeight/height_;
height_ = myPj.pageHeight;
width_ = width_*hRatio;
}
if(width_ > myPj.pageWidth) {
hRatio = myPj.pageWidth/width_;
width_ = myPj.pageWidth;
height_ = height_*hRatio;
}
}
//---
target_mc._height = height_;
target_mc._width = width_;
}
}
//---
//Set print region
var iniX:Number = target_mc._x;
var iniY:Number = target_mc._y;
//---
var xmin_:Number = Stage.width;
var xmax_:Number = Stage.width + myPj.pageWidth;
var ymin_:Number = Stage.height;
var ymax_:Number = Stage.height + myPj.pageHeight;
//---
if(myPj.orientation == "landscape") {
target_mc._x = xmin_ + ((myPj.pageWidth - height_) / 2);
target_mc._y = ymin_ + ((myPj.pageHeight + width_) / 2);
} else {
target_mc._x = xmin_ + ((myPj.pageWidth - width_) / 2);
target_mc._y = ymin_ + ((myPj.pageHeight - height_) / 2);
}
//---
var printMC:String = String(target_mc);
trace("+++printMC: " + printMC);
if(myPj.addPage(printMC, {xMin:xmin_, xMax:xmax_, yMin:ymin_, yMax:ymax_}, null, 1)) {
pgCount++;
}
}
if(pgCount > 0) {
myPj.send();
}
trace("+++location: " + target_mc._x + ", " + target_mc._y);
trace("+++printing: " + xmin_ + ", " + ymin_);
target_mc._rotation = 0;
target_mc._height = iniH;
target_mc._width = iniW;
target_mc._x = iniX;
target_mc._y = iniY;
delete myPj;
};
View Replies !
View Related
Please Help Printjob Not Printing .jpg
Hello,
I am having an issue with the printjob class where it is not printing the jpgs on the screen. it prints everything else, just not the image. Also, it seems to be inconsistent in that I have gotten it to work, but the majority of times it doesn't. Please tell me someone else has had this problem and knows how to fix it!
Thanks!
View Replies !
View Related
[CS3, AS2] PrintJob Printing Purple
Greetings, I'm using PrintJob to print some assets within the Flash, but it always prints out purple-ish. I've even tried making a new file, bringing in a new image, & yet - it prints purple!
Anyone know why, &/or how to fix it?
Here's the code I'm using:
Code:
printBtn.onRelease = function() {
var pj = new PrintJob();
var success = pj.start();
if(success) {
pj.addPage (_root.myMC, {xMin : 0, xMax: 222, yMin: 0, yMax: 223},{printAsBitmap:false});
pj.send();
}
delete pj;
}
(I've tried printAsBitmap both true & false, & have removed it completely - no change)
Here's an image of the issue, on the left is the actual colors, on the right is the purple color-eater...
View Replies !
View Related
Printing Problems (printJob)
I've having some sporatic printing problems. I'm using two documents I created in Flash. One has a good deal of text and a few vector lines making a boxed area over the text. The other (this is the one that always works) has much less text and two parts of it are dynamic. The first one was created from a copy of the second, I simply replaced all the text and added the graphic box.
They both use the same actionscript to print, just changed target for the printJob function. The strange thing is, sometimes the first one will print. So it's intermittent and I haven't found any particular reason to focus on.
Any ideas would be most welcome.
Mike
View Replies !
View Related
Please Help Printjob Not Printing Jpgs
Hello,
I am having an issue with the printjob class where it is not printing the jpgs on the screen. it prints everything else, just not the image. Also, it seems to be inconsistent in that I have gotten it to work, but the majority of times it doesn't. Please tell me someone else has had this problem and knows how to fix it!
Thanks!
View Replies !
View Related
Printing Resolution With PrintJob
Hello-
Is Flash 8 restricted to printing at 72 dpi? I have authored a Flash viewer that displays scanned documents. It seems I can only print bitmaps at 72dbi which is not very practical for my project. Any ideas on workarounds or other methods?
Thanks!
View Replies !
View Related
PrintJob Class - Adding Pages? Im Confused
Hi again,
I am trying to get this printJob thingy working.
Multiple frames, each one a page. Can it be done?
I created this function :
_global.printThis = function()
{
// create PrintJob object
my_pj = new PrintJob();
trace("PJ created");
my_pj.start();
my_pj.addPage("TestMovieClip");
// send pages from the spooler to the printer
my_pj.send();
// clean up
delete my_pj;
}
I never even get the dialog box to come up. Can anyone help me, the manual was less than helpful.
Thanks
MCM
View Replies !
View Related
Printing Problems With Printjob.addPage()
I have a movie called "MyMovie.swf" that uses printjob.addPage() to allow the user to print a printable version of the Flash.
This works fine when the movie is rendered by itself, as shown in the code below:
Example:
Code:
var pj:PrintJob = new PrintJob();
if (result) {
pj.addPage("print43", {xMin:5, xMax:308, yMin:5, yMax:850}, {printAsBitmap:true}, 44);
pj.send();
delete pj;
} else {
}
stop();
But, if I load "MyMovie.swf" into a Popup Window component as shown below, it no longer can find the "print43" labeled movie and prints a blank page instead:
Code:
on (release)
{
var sPopUp = mx.managers.PopUpManager.createPopUp(_root, mx.containers.Window, true, {title:"Title Goes Here",closeButton:true, contentPath:"MyMovie.swf"});
sPopUp.setSize( 800, 600 );
var sPopUpListener:Object = new Object();
sPopUpListener.click = function(evt:Object){
evt.target.deletePopUp();
}
sPopUp.addEventListener("click", sPopUpListener);
}
I'm assuming this is a pathing issue, but I've tried replacing pj.addPage("print43") with pj.addPage(this.print43) and it still doesn't work when the movie is loading inside a window popup component.
Any ideas?
View Replies !
View Related
Script Timeout While Printing With PrintJob
Hi everyone,
I'm trying to print a movieclip using PrintJob. The printing itself works, the problem is if the movieclip is too large. A loop splits the movieclip into pages. If this takes too long (more than 60 seconds) I get the script timeout error "... code causes Flash to run slowly .. Cancel script? Yes / No".
I've tried using scriptLimits, setting the timout to very high (65000 seconds). This works with Flash Player 7 like a charm but not with Flash Player 8. Splitting the loop into smaller loops doesn't work either, because I loose the PrintJob, meaning I can no longer add pages with PrintJob.addPage().
The application is for a client, so I have to get this to work on a P3 800 MHz.
Can anyone please help me?
Thanks in advance
Orion
View Replies !
View Related
Printing Transparent PNGs With PrintJob
Hello,
I'm using Flash 8 for Windows. I'm trying to print a frame which contains a
number of transparent PNG graphics. However when I print it, these graphics
appear with a white bounding box around them. Do you know how I can get them
to print without the bounding box?
This is the script I'm using:
on (release){
var pjOutput:PrintJob = new PrintJob();
if(pjOutput.start()){
pjOutput.addPage(_root,true);
pjOutput.send();
}
delete pjOutput;
}
Thanks.
CPG
View Replies !
View Related
PrintJob Class - Printing Black From PC
If anyone can help me, or has seen this problem before I would be a very happy person! I built a custom print feature for an interactive map that prints the current area of the map you are viewing. The feature works perfectly on a Mac, and everything prints out great. Yet when I try and print on a PC the main area of the map I am printing prints out black.
I have literally tried everything, swapping the MC to the highest possible depth before it prints and swapping it back after. I tried removing all masking to see if it would print. I tried printing the clips embedded within _level0 that contain the map, and even the MC's inside of those. All of this to no avail though. Which leads me here to see if anyone has run into a similar problem and found a potential solution.
Here's the URL for you to check out is here:
http://www.universitycircle.org/map/...dv_print2.html
The code I used for printing is below (thisLevel is set to the _root of the movie for preloader purposes, so just think of that as _root):
Code:
printCurrent = function(){
var mapPrint:PrintJob = new PrintJob();
var myPrintSuccess:Boolean = mapPrint.start();
if(myPrintSuccess{
if(mapPrint.orientation == "landscape"){
trace("landscape");
mapPrint.addPage(thisLevel,{xMin:11,xMax:739,yMin:63,yMax:523});
mapPrint.send();
}
else if(mapPrint.orientation == "portrait"){
trace("portrait");
thisLevel._rotation = 90; //rotates map to print properly in portrait
mapPrint.addPage(thisLevel,{xMin:11,xMax:739,yMin:63,yMax:523});
mapPrint.send();
thisLevel._rotation = 0;
}
}
delete mapPrint;
}
View Replies !
View Related
PrintJob Class; Printing Selective Layers
I have a picture gallery that i want to allow users to print off specific pictures from. Right now it prints off exactly what they see in the gallery which includes the next button, the print button and the menu. How do I tell my PrintJob to only print a certain layer? I just want the picture itself to print.
View Replies !
View Related
Flash Player 9 (printjob) Printing Blank
Hi, first post.
i am having a problem with the printjob class. i developed an application which dynamically created pages and sent to print fed from xml. all worked fine in flash player 8.
now with the update to flash player 9 the pages print blank.
the right amount of pages are spooled just nothing is printed (ie 4 blank sheets)
the printing still works fine in flash development, or in standalone flash player...its only the browser plugin (ie, firefox, opera - all PC) that all fail to print anything at all.
anyone know any reasons why this could be happening?
regards
J
View Replies !
View Related
Flash Player 9 - Printing Blank (printjob)
Hi, first post.
i am having a problem with the printjob class. i developed an application which dynamically created pages and sent to print fed from xml. all worked fine in flash player 8.
now with the update to flash player 9 the pages print blank.
the right amount of pages are spooled just nothing is printed (ie 4 blank sheets)
the printing still works fine in flash development, or in standalone flash player...its only the browser plugin (ie, firefox, opera - all PC) that all fail to print anything at all.
anyone know any reasons why this could be happening?
regards
J
View Replies !
View Related
Problems W/ PrintJob Printing Movie Clips In Other Frames
Hello,
I have a little function that I'm calling from a button that prints the contents of a movie clip.
I would like to also print another frame that's not the current visible frame.
Here's my function:
function print_movie_contents( print_page )
{
var my_pjrintJob = new PrintJob();
var myResult:Boolean = my_pj.start();
if( myResult)
{
my_pj.addPage( print_page );
my_pj.send();
}
delete my_pj;
}//__endFunc__
Is this possible in any way?
Thanks,
Clem C
View Replies !
View Related
PrintJob Printing Dynamically Loaded Jpgs As Blank
I am using the printJob class to print some dynamically loaded .jpgs. I am testing to make sure the .jpg is loaded using MovieClipLoader() with a listener. Then, after I send the clip to the printer I unLoad the movie clip.
The odd thing is that sometimes the images will print, but other times they come out as just a black square where the image should be. I can't figure this one out, so if anyone has had a similar experiance, please let me know.
Also, I am using {printAsBitmap:true} when I add the page. I tried this thinking it would help, but no dice.
Any input would be GREATLY appreciated! Thanks
View Replies !
View Related
Problems W/ PrintJob Printing Movie Clips In Other Frames
Hello,
I have a little function that I'm calling from a button that prints the contents of a movie clip.
I would like to also print another frame that's not the current visible frame.
Here's my function:
function print_movie_contents( print_page )
{
var my_pjrintJob = new PrintJob();
var myResult:Boolean = my_pj.start();
if( myResult)
{
my_pj.addPage( print_page );
my_pj.send();
}
delete my_pj;
}//__endFunc__
Is this possible in any way?
Thanks,
Clem C
View Replies !
View Related
Printing Different Pages..
Hi!
I have made 4 buttons which should print 4 different pages. I have but the movies I want to print on #p frames. From the buttons I made this action:
on (release) {
print("target", "bmovie");
}
The targets are okay.. each button to a different page (target).
But when I print I don't get one page, but all 4 pages!!
What am I doing wrong?
View Replies !
View Related
Printing Too Many Pages
I am using a flash projector as a proposal application at work, and it always prints two pages when there is really only info on one. I'm using this code
print (0, "bmovie")
which theoretically uses the movie's boundaries as the output, nothing beyond. My movie settings are 560 x 740, 16 pixels less than "match printer" on both axes. The final output is intended for letterhead which the user loads into the printer when necessay, so getting an extra blank page printing first kinda jams things up. I'm using flash 5. Any help would be much appreciated.
View Replies !
View Related
Printing Variable Pages
Im using a the following print script.
my_print.onRelease = function(){
var my_pj:PrintJob = new PrintJob();
var myResult:Boolean = my_pj.start();
if(myResult) {
my_pj.addPage("main"); //change resultPage to the name or level of the movieClip you want to print
my_pj.send();
}
delete my_pj;
}
Now I have figured out if I want to print two pages I just add my_pj.addPage("main2"); or another name I also want to print
Now the document I am making has a variable text from a database.
What I want to do is have a few pages put only prints out the correct one for the correct value (gender) of the database
So if var1 = male true my_pj.addPage("male");
Else var1 = male false my_pj.addPage("female");
Or something like that I know I have seen it but how can I use it to print the kind of page I need, and also once this data is in the variable text field would I need to reload that data in the flash or something?
View Replies !
View Related
Printing 'unseen' Pages
This is a question about methodology. I have a movie that dynamically loads data and spools and prints scoresheets via PrintJob which works fine. It has a size of 8.5 x 11 (576 x 756) to print properly. My problem is that it is part of a smaller 450 * 300 movie that I don't want to resize. Can I load and print this scoresheet movie sight unseen? My movies are all actionscript with 1 layer and 1 frame long.
Hope this makes sense.
Cheers,
Rob
View Replies !
View Related
Possible To Print Multiple Swf's In One Printjob?
Situation:
-----------------
an html page with multiple swf's.
Desired functionality:
-----------------------
one print button (html-based) at the top of the page should create a single print job containing the contents of all swf's on the page.
Anyone done this or know of a documented solution? Thanks for any help.
View Replies !
View Related
Possible To Print Multiple Swf's In One Printjob?
Situation:
-----------------
an html page with multiple swf's.
Desired functionality:
-----------------------
one print button (html-based) at the top of the page should create a single print job containing the contents of all swf's on the page.
Anyone done this or know of a documented solution? Thanks for any help.
View Replies !
View Related
Printing Pages In CCS Webpage Layers
Hello.
I am having some trouble with this site http://www.globeranger.com.
When the user prints any of the pages for the site, the blue navigation bar prints in the same spot on each sequential page.
Does anyone know a way to make it print on the first page alone? I belive that this is a result of the use of layers instead of resulting b/c the nav is Flash.
Thanks for any help you all can render.
Davin
View Replies !
View Related
Printing Dynamic Pages In Flash - Reports
I need to make reports and print many pages at ones in Flash widh just one print action. In my timeline for the parent movie I have a couple of child movieclips in frame 5, 10, 15 , 20 ... and so on. The problem is that the frames I wanted to be printed are using dynamic loaded data.
I use duplicatemovie and loadmovie commands for loading dynamic data in my child movies. I use the label #p fr every child movie. I can go between the frames in my movie and it thing looks fine on the screen in runtime mode, but when I use the print command, the printers just print my child movies without the loaded data. It seems that when the printer looking for the labels width #p for printing them it also take all the loaded data away for my child movies.
It seems that Flash every time you go to a frame width a new movieclip it call the function onClipEvent (load) .... so all my dynamic data is goone, just the start data left for the child movie.
Any suggestion one the problem,
can I load my dynamic data in another way. The importent thing is that I want to print many pages width differnt data thats beeing changed from time to time dynamic, and I just want to use one printaction to print all my pages.
regards olsu
View Replies !
View Related
|