printJob prints only once

Hi all

I'm having a problem with my printJob.  I have a Setup button to call the printJob.  When I click on it the pages I want to print, print correctly the first time.  But then if I click on the button again to print the same page, it does not. The button continues to work and calls the function correctly, but after that it does not work.   Here is the code I use:

public void Print_PTSD(event:MouseEvent):void {}

trace ("Print button clicked");

Generate the Sprite to print

var printPTSD:PTSD_Score_Sheet = new PTSD_Score_Sheet();
addChild (printPTSD);
printPTSD.scaleY =. 6;
printPTSD.scaleX =. 6;
printPTSD.visible = false;

Printing

If (myPrintJob.start ()) {}

If (myPrintJob.orientation is PrintJobOrientation.LANDSCAPE)
{
throw new Error ("Page orientation must be set to portrait to print");
}

Try
{
myPrintJob.addPage (printPTSD, new Rectangle (0, 0, 950, 1250));
}
catch(Error:Error)
{
removeChild (printPTSD);
}

myPrintJob.send ();
removeChild (printPTSD);

}
else {}
removeChild (printPTSD);
}

}

Looks like you are using the same printjob instance every time print_ptsd() is called and that this body has probably its first page that gc would be when it is called the first time (which is problematic).

to remedy this, create a new printjob instance when you call the print_ptsd() method.

Tags: Adobe Animate

Similar Questions

  • Currently, I have Acrobat XI, but am ready to upgrade if my problem can be solved. I want to be able to say that a PDF file can be printed only ONCE. Is this possible.

    Currently, I have Acrobat XI, but am ready to upgrade if my problem can be solved. I want to be able to say that a PDF file can be printed only ONCE.

    I create and sell books. Asked me to create and sell PDFs of books. While it is easy, if I sell a PDF, there is nothing which could prevent the company to send the PDF autour and everyone by printing.

    So, I'm looking for a solution to this problem.

    Hoping that there is a solution.

    The upgrade will not help. No version of Acrobat can do that.

    The only way this is possible (and I'm still not 100% sure on this subject) is using DRM technology, which is very expensive.

  • My printer will no print only once, then hangs until I reboot

    I have Windows 7 and printer Dell V515w.  I have had this problem for a few months and have dealt with him by restarting the system, how the files in the queue than any print.  I have seen that some people have problems with Internet Explorer 11, but that happens with anything that I feel.  The 1st file I have print will work, but the following files get stuck in the queue until I reboot.  I know this printer worked on my XP computer and do not remember when this first became a problem (I rarely print at home).   I loaded the drivers updated from Dell, but that had no effect.

    Hello Edmacias,

    Glad to know that you were able to solve the problem with the printer.

    I appreciate really all your efforts towards the resolution of the problem.

    Since you have uninstalled Internet Explorer 11 and be left with Internet Explorer 8 in the system. I suggest you upgrade to Internet Explorer 10.

    Please follow the steps in the link provided below and check if that helps.

    Update for Internet Explorer 10 in Windows 7

    http://www.Microsoft.com/en-US/Download/details.aspx?ID=39232

    I hope this information is useful.

    Please let us know if you need more help, we will be happy to help you.

    Thank you.

  • HP 8600 prints only once after the installation of new

    I installed the new drivers on HP 8600 printer all-in-one. After the installation of the printer print very well. A few hours later not printing and print I uninstall and install again.

    Any ideas? TIA.

    chubuk7

    Hi chubuk7,

    When the printer stops printing, instead of uninstalling/reinstalling, I recommend to run printing HP and doctor Scan. It's a quick and easy tool that diagnoses and solves many problems of printing, scanning and connectivity. Click on the link below for more details:

    http://goo.GL/PXeko

  • Follow-up of the steps to install the hp wireless printer and it worked only once. Now he says it is "offline."

    Original title: the computer geek

    Follow-up of the steps to install the hp wireless printer and it worked only once. Now he says it is "offline." Convenience store said that it cannot solve the problem. That's happened?

    Hello

    1. What is the brand and model of the printer?
    2. don't you make changes on the computer recently before this problem?
    3. What is the full and exact error message?

    Step 1: The procedure below can help you to fix this problem.

    a. Click Start > Control Panel > printer and faxes
    b. now right-click on computer and select the printer to use online

    Step 2: Update printer drivers.

    To install new or updated printer drivers to update
    http://www.Microsoft.com/resources/documentation/Windows/XP/all/proddocs/en-us/print_drivers_install_updatew.mspx?mfr=true

  • Photosmart 8450 prints only black and white with the new Mac with OS 10.6

    I just bought a new Mac with OS 10.6.  (former was OS 10.5)  Now my Photosmart 8450 will print only in black and white.  I installed the single upgrade on the site of HP, no change.

    Is there an other update I need?

    You want to disable automatic session opening, which may be why it behaves in this way.

    Go to System Preferences

    Go to security

    Under "for all accounts on this computer", place a check mark next to 'turn off automatic connection.

    In addition, I do not know if you set a password for the test account, but put something simple as 123 - just something / anything.

    Once that is done, choose log in the Apple menu, or reboot. This should bring you to the login screen where you can specify the account to enter.

  • Wireless printer prints only when it is plugged in power cord.

    Original title: printer

    I have a wireless printer and was working fine and then stopped printing, it will print only with the USB cord plugged. How can I make work with the USB cord.

    Hello

    What printer you are using?  What is you receive the exact error message?
    As many printers have specific installation instructions, I know that my HP needed me for not connect it first, and then click Print network opposed to USB settings then plugged into the USB port for installation and then just unplug the USB and WiFi, printing, once all installed and tested WiFi printing you can also print via USB , for me I could anyway.

    Just uninstall the driver and software and all re - install again.

    With printer (get the USB cable for the moment)

    To try this click Start > devices and printers > add a printer > add a network, wireless or Bluetooth printer > it will search a little, but I hope that your printer will display in the main window, if it is to highlight and click Next and follow the prompts to install the driver.

    You can check these sites

    http://www.printerhacks.com/How-do-i-make-my-printer-wireless/

    http://www.labnol.org/gadgets/make-wired-printer-wireless/12639/

  • My photosmart printer 6510 prints only black

    My photosmart 6510 prints only black & white with my mac test i is printed 4 color bars

    Looks like the wrong driver is installed. Try to remove and time the printer and check which driver is used.

    Go to system, then print and fax Preferences (print and scan over 10.7), then highlight the printer and go to sign less down to remove it. After that, click on the plus sign to readd it. When you highlight in the list of so that the background box should tell the 6510 print using, if it says something else bad driver is used.

    If this is the case, you have a few options. Try to run an update of the apple software, it can find a printing hp update software, install that, if she does and try to add the printer again. If it still fails to solve, the next option would be to reset the printing system

    To reset printing system go to this window print and fax again and the white box where the printers are listed on the left hold down the CTRL key and click. This should give you an option to reset the printing system. This will remove all of THE printers that you have added, so if you have others you should readd them. After that itll request your password, put it in to confirm, once thebox restart the mac, and add the printer again.

  • can someone let me know how to print a scanned document. In printing only the 1st page prints fine as I know that there is more than one document.

    can someone let me know how to print a scanned document. In printing only the 1st page prints fine as I know that there is more than one document.  This is the version Adobe photoshop cc 2014.  Someone said it you use printing quick button but who can't find anywhere.

    Carolyn

    Carolyn,

    I don't know if Photoshop is the best solution for the printing of DOCUMENTS scanned.  Photoshop opens a page of a DOCUMENT at a time, let's say you have a MultiPage PDF Document, when you open with the PS, tell him what page you want to open. Once you do, it will convert this page into basically a picture, a raster file that can be edited like a photo.  So if you go to print, it prints only one page, you have open...  So, if you have opened the first page of your document and go to print it, which explains why it only prints the first page.

    So is what file type of the document that you are trying to print?  If it's a PDF file, I opened it with Acrobat/Reader, depending on whether you have and that FILE you > PRINT it like that.   Or is there a particular reason (Lighten/Darken/increase contrast etc...) you are needing to go first to Photoshop?

    Give me a little more information on exactly what you're trying to do and I'll do my best to provide a workflow easier to achieve your final goal.

    I hope this helps.

  • Mini Mac starts only once

    Hello

    I have an old Mac Mini since 2006 with the following configuration: 1, 66 GHz Intel Core Duo, running Snow Leopard 10.6

    In recent months, it runs only once. I explain. If I shut it down, on reboot, I have Blue with grey wheel screen. I tried a lot of things: disc utilities, to change drive hard, fsck, verbose, single user,...

    Also, I thought it was something wrong with the last 10.6 update so I have not updated it but no, same problem

    The only solution, he works at each time reinstall Snow Leopard 10.6 from an external drive, it works perfectly... until the next stop.

    Does anyone have an idea on how to find (and fix) this problem?

    Thank you very much!

    Seems that something is corrupt some files while that lead, RAM? HARD DRIVE?

    1 insert the Mac OS X installation disc, and then restart the computer by pressing the C.

    2 when your computer has finished booting from the disc, choose disk utility from the menu of the installer at the top of the screen. (In Mac OS X 10.4 or later, you must select your language first.)

    * Important: Do not click on continue in the first screen of the installer. If you do, you must restart from the disc to access disc utilitaire.*

    3. click on the tab clear.

    4. click on the triangle to the left of the hard drive icon to display the names of your partitions and hard disk volumes.

    5. Select your Mac OS X volume.

    6. Select the disk, select the partition, then type Format... Mac OS Extended journaled, click Security Options, choose zero data, erase, one pass... after I hope you can get a good installation.

  • Modules of working only once

    It has been some time now that I noticed my addons not working not not on Mozilla TO in Ubuntu. Addons are installed properly and, indeed, they appear when I use mozilla sync in other computers.

    Today I tried the suggested troubleshooting here https://support.mozilla.org/en-US/questions/982460
    It works only once. I can install my addons again, but as soon as I close firefox and reopen the addons disappear from the top bar and the customization window. Even when I try to change preferences for Ghostery I get only blank a screen so addons are absolutely not working in Ubuntu

    Note that the OP is using the developer edition (39 Firefox) and not the regular version.

    Have you checked for problems caused by one or more of the extensions that may not be fully compatible with OF?

    Create a new profile as a test to see if your profile is the source of the problem.

    See "create a profile":

    If the new profile works then you can transfer files from a profile already used in the new profile, but be careful not to copy files corrupted to avoid transporting more problems.

  • How can I print only 1 page web/29 FF? With 29, you can change only the first field (1 of 5, 2 of 5, 3, 5, etc.) This means I can print only 5 pages,

    So I can not print just 1 of 5 pages. The default, 1-5, will display all 5 pages. The 2nd field cannot be changed, possible in previous versions of FF, 1 of 1. Therefore, I can print only all 5 pages, 2-5, 3-5, etc. WTF - I keep losing the print paper. I had printing edit add-on, but that doesn't seem to help. I've been through several versions of FF and do not like the format of 29.

    In fact, with the addon print change, if I click on the arrow down I get old print format options and can do.

  • How can I print only the body of the e-mail without all the "history of received.

    When I print an email received, the first page is a list of "Received:" data and X.

    How to print only the message body?

    John Sykes

    View (Alt - V) - headers - Normal

  • Google Maps: pan and zoom controls are not displayed. 'PIN' markers can appear only once, and then disappear.

    Loading Google Maps, either directly, or where they are incorporated into other sites, orders pan and zoom are not displayed. Location markers 'PIN' can appear only once, but disappear after doing anything with the card. I'm on the last Windows XP and latest Firefox. This problem is long-standing and has remained the same during several different versions of Firefox and Windows updates. I tried "CTRL-0' no effect."

    Problem solved by 'Reset Firefox'. Before that, tried "Safe Mode", no difference. Not aware of the limits on the cookies or the memory usage. Controls on the left (Pan, zoom) for Google Maps were good here and in usual and sizing correct positions and could be found with the cursor and activate it, but 'ghosts' that were not display. Same problem if the content was maps or satellite pix. Reset solved the problem.

  • Firefox print only 4 pages of a .htm file, while internet Explorer prints all 9 pages

    Firefox print only 4 pages of a .htm file, while internet Explorer prints all 9 pages

    (it's a Treasury Direct 1099 handset file in htm format

Maybe you are looking for