Flash AS3 Print Job Class PC Error
Posted: April 21st, 2009 | Author: Liza | Filed under: As3, Flash, Printing | Tags: Error, PC, Print Job Class, Time Out |I had a nightmare week trying to figure this problem out. Basically i was printing 4 pages from what appeared to be a really unstable xml file in a flash swf. Initially I thought it might have been special characters in xml or a problem with the Print Job Class.
I had no idea why the print job class worked (for 3 pages or more) on a MAC and not a PC. after investigation by a few of our developers it was kicking up an error about “Timing out”, and there was a pretty simple solution.
It was timing out because the script time limit was too short for a PC to process more than 3 pages at a time, so i increased the script time (in Publish Settings) to 60 seconds and it worked.

Nightmare Over
Liza,
thanks for the information, really helpful…
Well it is stated in the as3 help documentation that addPage requeres a 15 sec timeout period. So if you have like 4 pages you should keep in mind this will add up to (4*15sec) 1 minute. The wierd thing about your “problem” is that it did work on a mac…
I had the same “problem”