Re: [Flashcoders] printJob

2012-10-04 Thread Hans Wichman
because your clip has a filter and its filtered dimensions are too large? On 4-10-2012 19:25, Ted Lehr wrote: So I have a sprite that has a child sprite with some objects in it... I am trying to print it with code like: if ( !printJob.start() ) return;

RE: [Flashcoders] printJob

2012-10-04 Thread Ted Lehr
Not filter that I am aware of... -Original Message- From: flashcoders-boun...@chattyfig.figleaf.com on behalf of Hans Wichman Sent: Thu 10/4/2012 1:33 PM To: Flash Coders List Subject: Re: [Flashcoders] printJob because your clip has a filter and its filtered dimensions are too large

RE: [Flashcoders] printJob

2012-10-04 Thread Ted Lehr
although I am using custom classes i.e. var headC:gridHead = new gridHead() maybe that is what it is referring to -Original Message- From: flashcoders-boun...@chattyfig.figleaf.com on behalf of Hans Wichman Sent: Thu 10/4/2012 1:33 PM To: Flash Coders List Subject: Re: [Flashcoders

Re: [Flashcoders] printJob

2012-10-04 Thread Hans Wichman
to -Original Message- From: flashcoders-boun...@chattyfig.figleaf.com on behalf of Hans Wichman Sent: Thu 10/4/2012 1:33 PM To: Flash Coders List Subject: Re: [Flashcoders] printJob because your clip has a filter and its filtered dimensions are too large? On 4-10-2012 19:25, Ted Lehr wrote: So

Re: [Flashcoders] PrintJob - Mac vs. PC PDF error

2008-05-01 Thread Glen Pike
Hi, I have been doing some work with PrintJob in AS2 Flex recently. I managed to get it working okay for single pages in AS2 and 2 page spreads in AS3, not sure what you mean by a PDF error, but are you sure it's not your printer driver. I have been using CutePDF Writer which has

Re: [Flashcoders] PrintJob - Mac vs. PC PDF error

2008-05-01 Thread Radley Marx
Thnx Glen, I forgot to mention this is AS2 (an old project). No Flex involved, just Flash Player 8 ( above). background So, PrintJob offers the ability to spread out a large image over several pages. This works fine. The trickier part is a printout that requires a header MC and footer

Re: [Flashcoders] PrintJob - Mac vs. PC PDF error

2008-05-01 Thread Glen Pike
Hi, It sounds like you are going through the right process. Are you checking the return value of PrintJob.addPage() If it does not like what you are doing, it will return false, so you can catch this and maybe trace out an error to see if that is a problem I have just been

Re: [Flashcoders] PrintJob

2008-04-30 Thread Rich Shupe
Glen, just a wild guess, but maybe switching to printAsBitmap will help. This may be unavoidable if the cached bitmap is used for the filter but not for the printing. If so, you'll just need to create a BitmapData object of everything you want to print. Rich http://www.LearningActionScript3.com

Re: [Flashcoders] printJob, orientation and rotation or scaling issues

2007-05-02 Thread Gregory N
Hi David, I'd try to use PrintJob.pageWidth and/or PrintJob.pageHeight instead of .orientation . Also, why not determine needed scale at runtime: postcardClip._xscale = 100 * myPrintJob.pageWidth/postcardClip._width; postcardClip._yscale = postcardClip._xscale; -- -- Best regards, GregoryN

Re: [Flashcoders] printJob, orientation and rotation or scaling issues

2007-05-02 Thread Steven Sacks
I cover this topic on my blog. :) http://www.stevensacks.net/2007/03/16/force-landscape-printing-with-printjob/ ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive:

Re: [Flashcoders] printJob, orientation and rotation or scaling issues

2007-05-02 Thread Hans Wichman
http://objectpainters.com/blog/?p=9 On 5/2/07, Dave Wood [EMAIL PROTECTED] wrote: Hi I'm having problems correctly rotating a movieclip to accomodate users printing in either portrait or landscape format. There was a thread about this maybe 4 to 6 weeks ago and I'm unable to locate it in

Re: [Flashcoders] printJob, orientation and rotation or scaling issues

2007-05-02 Thread Dave Wood
Thanks guys Steven, I've played around with your code and got it working on my setup but will need to test later in the day on the computer/printer combination that was causing the problems. I needed to modify it though because your code assumes the clip is scaled at 100% to start with.

Re: [Flashcoders] PRINTJOB HELL, PRINTJOB NIGHTMARE with several PAGES

2006-08-21 Thread Meinte van't Kruis
Very cool idea Haikal! Certainly seems the best option for text printing, I'm going to try it one day. thanks, -Meinte On 8/21/06, Haikal Saadh [EMAIL PROTECTED] wrote: My approach to printing oodles of multiline text is to let the browser do it: * When the print button is pressed, save

Re: [Flashcoders] PRINTJOB HELL, PRINTJOB NIGHTMARE with several PAGES

2006-08-20 Thread Peter O'Brien
Hey guys thanks for the code and input. The route I think I'm taking because it's html text and formatted, is to keep trimming at br's and checking if page is not too high. The page to print symbol I'm using has an aspect ratio for an A4 page (1: 1.414) and one big html text field (with 20px

Re: [Flashcoders] PRINTJOB HELL, PRINTJOB NIGHTMARE with several PAGES

2006-08-20 Thread Haikal Saadh
My approach to printing oodles of multiline text is to let the browser do it: * When the print button is pressed, save the contents of the text field to a Local Shared Object * Open up an empty HTML page, which has as invisible flash movie which can then: o Read that

Re: [Flashcoders] PRINTJOB HELL, PRINTJOB NIGHTMARE with several PAGES

2006-08-18 Thread Peter O'Brien
I have the same problem as the original poster. I don't suppose anyone can provide more info as a solution than Hans, or Hans if you're there I would love to see some code. What are flash mc dimensions to match an A4 page? Doesn't it vary according to screen resolution? How can you

Re: [Flashcoders] PRINTJOB HELL, PRINTJOB NIGHTMARE with several PAGES

2006-08-18 Thread hank williams
Yeah, I asked this question on Flexcoders but got no answer at all. Any code would be greatly appreciated :) The funny thing is this printing a block of multipage text seems like such a basic thing but there are no examples in the docs and it seems as thought this issue was never considered as a

Re: [Flashcoders] PRINTJOB HELL, PRINTJOB NIGHTMARE with several PAGES

2006-08-18 Thread Meinte van't Kruis
my solution is scrolling the text and printing as you go, here's the function. (beware though, it's been ages since writing this, it works tho) function buildPrinter() { _root.print.onPress = function() { var p_length = Math.round(Math.floor

Re: [Flashcoders] PRINTJOB HELL, PRINTJOB NIGHTMARE with several PAGES

2006-08-18 Thread Meinte van't Kruis
_root.test is the textfield, _root.line_length is the lines fitting on one page. good luck! -Meinte On 8/18/06, Meinte van't Kruis [EMAIL PROTECTED] wrote: my solution is scrolling the text and printing as you go, here's the function. (beware though, it's been ages since writing this, it

RE: [Flashcoders] PRINTJOB HELL, PRINTJOB NIGHTMARE with several PAGES

2006-08-18 Thread Danny Kodicek
I have the same problem as the original poster. I don't suppose anyone can provide more info as a solution than Hans, or Hans if you're there I would love to see some code. What are flash mc dimensions to match an A4 page? Doesn't it vary according to screen resolution? As long as it's

RE: [Flashcoders] PRINTJOB HELL, PRINTJOB NIGHTMARE with several PAGES

2006-08-18 Thread Danny Kodicek
How can you efficiently fill a textfield to the point in which you know it is completely full? Here's a revised version using a word array. But as I said, including formatting would be more difficult and significantly slower. I tend to agree with Meinte that in this case you're better off using

Re: [Flashcoders] printJob and printAsBitmap

2006-05-02 Thread Éric Thibault
Never mind... I think it's going to be a long long week... -- === Éric Thibault Programmeur analyste Réseau de valorisation de l'enseignement Université Laval, pavillon Félix-Antoine Savard Québec, Canada Tel.: 656-2131 poste 18015

RE: [Flashcoders] printJob and printAsBitmap

2006-05-02 Thread Tom Lee
Do you still need help with the issue, or did you figure it out? -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Éric Thibault Sent: Tuesday, May 02, 2006 1:51 PM To: Flashcoders mailing list Subject: Re: [Flashcoders] printJob and printAsBitmap Never

Re: [Flashcoders] printJob and printAsBitmap

2006-05-02 Thread Éric Thibault
] On Behalf Of Éric Thibault Sent: Tuesday, May 02, 2006 1:51 PM To: Flashcoders mailing list Subject: Re: [Flashcoders] printJob and printAsBitmap Never mind... I think it's going to be a long long week... -- === Éric Thibault

RE: [Flashcoders] printJob and printAsBitmap

2006-05-02 Thread Tom Lee
Yuk... I don't envy you. Been there, done that! ;) -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Éric Thibault Sent: Tuesday, May 02, 2006 2:21 PM To: Flashcoders mailing list Subject: Re: [Flashcoders] printJob and printAsBitmap I had an error

RE: [Flashcoders] PRINTJOB HELL, PRINTJOB NIGHTMARE with several PAGES

2006-04-24 Thread Van De Velde Hans
You get your text from the textarea and you do this: Dynamically attach a movieclip from the library with a preformatted textfield that exactly fits an A4 page (set movieclip to _visible = false to do it invisibly) and fill the textfield up with the text from your textarea until the textfield is

Re: [Flashcoders] PrintJob causes Abort Script error message.

2006-04-03 Thread Tyler Wright
I have over 20 years of programming experience including at assembler level, advanced Java, etc, but thanks for trying to put me in my place :-) There is no error. There is no timeout. Not in the PrintDialog object. I think the FlashCoders list in general has a silly habbit of saying

Re: [Flashcoders] PrintJob causes Abort Script error message.

2006-03-30 Thread
Mar 2006 09:04:19 -0500 Subject: Re: [Flashcoders] PrintJob causes Abort Script error message. I would suggest setting the timeout to 7200 seconds and then test it to see what happens if you leave it sitting over lunch.Please warn us when you are going to do this, since from the tone

RE: [Flashcoders] PrintJob causes Abort Script error message.

2006-03-30 Thread Steven Sacks
As the system is composed of many V2-style components, many of which use interval timers to get around initialization issues, and has a lot of real-time financial data transfer going on in the background, setintervals, etc etc, that to reengineer it at this stage is totally out of the

Re: [Flashcoders] PrintJob causes Abort Script error message.

2006-03-30 Thread Ron Wheeler
[mailto: [EMAIL PROTECTED] To: flashcoders@chattyfig.figleaf.com Date: Wed, 29 Mar 2006 09:04:19 -0500 Subject: Re: [Flashcoders] PrintJob causes Abort Script error message. I would suggest setting the timeout to 7200 seconds and then test it to see what happens if you leave it sitting over

RE: [Flashcoders] PrintJob causes Abort Script error message.

2006-03-29 Thread Steven Sacks
Is this a known Flash bug? It's not a bug. Is there a workaround? You cannot change the timeout. We've been trying to solve it for about a month. A 5 second google search would have saved you 30 days of wasted time. http://www.macromedia.com/cfusion/knowledgebase/index.cfm?id=tn_15512

RE: [Flashcoders] PrintJob causes Abort Script error message.

2006-03-29 Thread Steven Sacks
PrintJob is a poorly written class in general. Also, it runs synchronously when it talks to the system. The reason Flash throws up the alert is because for 15 seconds it is stuck waiting. The movie is waiting on a line of code to finish. Flash responds to the movie being hung, which it

Re: [Flashcoders] PrintJob causes Abort Script error message.

2006-03-29 Thread Danny Kodicek
Steven's response was a little unhelpful :) Is this a known Flash bug? It's not a bug. I would suggest that it is: there's no error in the code, and it's not that the Flash movie itself is running slowly, it's purely a result of user interaction. While the print dialogue is displayed, the

RE: [Flashcoders] PrintJob causes Abort Script error message.

2006-03-29 Thread Steven Sacks
, March 29, 2006 2:58 AM To: 'Flashcoders mailing list' Subject: RE: [Flashcoders] PrintJob causes Abort Script error message. PrintJob is a poorly written class in general. Also, it runs synchronously when it talks to the system. The reason Flash throws up the alert is because for 15 seconds

RE: [Flashcoders] PrintJob causes Abort Script error message.

2006-03-29 Thread Lee McColl-Sylvester
Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Danny Kodicek Sent: 29 March 2006 12:03 To: Flashcoders mailing list Subject: Re: [Flashcoders] PrintJob causes Abort Script error message. Steven's response was a little unhelpful :) Is this a known Flash bug? It's not a bug

RE: [Flashcoders] PrintJob causes Abort Script error message.

2006-03-29 Thread Steven Sacks
I would suggest that it is: there's no error in the code, and it's not that the Flash movie itself is running slowly, it's purely a result of user interaction. While the print dialogue is displayed, the Flash movie should simply not be running. PrintJob makes a synchronous call to

Re: [Flashcoders] PrintJob causes Abort Script error message.

2006-03-29 Thread Steve Webster
On 29 Mar 2006, at 12:07, Steven Sacks wrote: I would suggest that it is: there's no error in the code, and it's not that the Flash movie itself is running slowly, it's purely a result of user interaction. While the print dialogue is displayed, the Flash movie should simply not be running.

Re: [Flashcoders] PrintJob causes Abort Script error message.

2006-03-29 Thread Danny Kodicek
I would suggest that it is: there's no error in the code, and it's not that the Flash movie itself is running slowly, it's purely a result of user interaction. While the print dialogue is displayed, the Flash movie should simply not be running. PrintJob makes a synchronous call to the OS.

RE: [Flashcoders] PrintJob causes Abort Script error message.

2006-03-29 Thread André Goliath
To: 'Flashcoders mailing list' Subject: RE: [Flashcoders] PrintJob causes Abort Script error message. Well, there IS a workaround but you have to hack your swf using flasm and set the timeout to some larger number. This really is not recommended and most people use this to actually decrease

RE: [Flashcoders] PrintJob causes Abort Script error message.

2006-03-29 Thread Lee McColl-Sylvester
To: Flashcoders mailing list Subject: Re: [Flashcoders] PrintJob causes Abort Script error message. I would suggest that it is: there's no error in the code, and it's not that the Flash movie itself is running slowly, it's purely a result of user interaction. While the print dialogue is displayed

RE: [Flashcoders] PrintJob causes Abort Script error message.

2006-03-29 Thread
PROTECTED] To: flashcoders@chattyfig.figleaf.com Date: Wed, 29 Mar 2006 03:34:35 -0800 Subject: RE: [Flashcoders] PrintJob causes Abort Script error message. The modal dialog does not belong to Flash, it belongs to Windows, andspecifically it belongs to the browser window that contains the Flash

RE: [Flashcoders] PrintJob causes Abort Script error message.

2006-03-29 Thread
Fab, thanks, I'll give it a try. --- On Wed 03/29, =?iso-8859-1?Q?Andr=E9_Goliath?= [EMAIL PROTECTED] wrote: From: =?iso-8859-1?Q?Andr=E9_Goliath?= [mailto: [EMAIL PROTECTED] To: flashcoders@chattyfig.figleaf.com Date: Wed, 29 Mar 2006 13:28:18 +0200 Subject: RE: [Flashcoders] PrintJob

RE: [Flashcoders] PrintJob causes Abort Script error message.

2006-03-29 Thread Steven Sacks
And for the record, I am certainly no friend of the PrintJob class. It's poorly written and I've pointed out its numerous flaws in previous posts to this list. Yes, it shouldn't have been coded to work the way it does. The way it works is poorly thought out. But, that doesn't mean that it's a

RE: [Flashcoders] PrintJob causes Abort Script error message.

2006-03-29 Thread Steven Sacks
PrintJob works fine in simplistic Flash movies. Try and do anything advanced (such as a stock exchange trading system) and it will cause the alert to appear. That ain't an error with my code! Ah ha! So now we get to the bottom of it. PrintJob does not cause Flash to alert about a slow

Re: [Flashcoders] PrintJob causes Abort Script error message.

2006-03-29 Thread Danny Kodicek
And for the record, I am certainly no friend of the PrintJob class. It's poorly written and I've pointed out its numerous flaws in previous posts to this list. Yes, it shouldn't have been coded to work the way it does. The way it works is poorly thought out. But, that doesn't mean that

RE: [Flashcoders] PrintJob causes Abort Script error message.

2006-03-29 Thread Lee McColl-Sylvester
-Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Ron Wheeler Sent: 29 March 2006 15:04 To: Flashcoders mailing list Subject: Re: [Flashcoders] PrintJob causes Abort Script error message. Steven Sacks wrote: I have explained in detail the source of your problem

RE: [Flashcoders] PrintJob causes Abort Script error message.

2006-03-29 Thread Lee McColl-Sylvester
Wow, I really should break my sentences up with comma's and fullstops. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Lee McColl-Sylvester Sent: 29 March 2006 15:22 To: Flashcoders mailing list Subject: RE: [Flashcoders] PrintJob causes Abort Script

RE: [Flashcoders] PrintJob

2006-03-29 Thread Mike Mountain
-Sylvester Sent: 29 March 2006 14:35 To: Flashcoders mailing list Subject: RE: [Flashcoders] PrintJob The Print feature of Flash prints the passed MovieClip... It there is content that the MovieClip isn't showing, then you need to print the inner clip containing the content instead. To find

Re: [Flashcoders] PrintJob causes Abort Script error message.

2006-03-29 Thread Ron Wheeler
Steven Sacks wrote: Please warn us when you are going to do this, since from the tone of the conversation, there is some sense that this will cause the end of civilization as we know it. Hacking the swf to increase the timeout is not the solution, it's a band-aid on a gunshot wound.

Re: [Flashcoders] printJob movieclip positioning

2006-01-20 Thread Steve Webster
Hi Yves, I'm currently making an application in flash that needs to print any mc that you throw at it in a decent and structured way. This is of course possible with the printJob class but I'm encountering some positioning problems at the moment. Scenario: I have a very big mc (in

RE: [Flashcoders] PrintJob Landscape printing with Portrait

2006-01-18 Thread Steven Sacks
Here is a refined version of my function: function printImage(mc) { var realW = mc._width; var realH = mc._height; pj = new PrintJob(); var pageCount = 0; if (pj.start()) { var cXscale, cYscale; if