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;
var origWid:Number = clip.width;
clip.width = printJob.pageWidth;
clip.scaleY =
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;
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
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
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
Hey all,
I have a project containing a diagram that needs to be printed. Often
the diagram is too large for a single page, so it's sliced/spread over
multiple pages. Further, there's an option that the page may include a
header and footer.
The code was all developed and tested on a
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
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
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
Hi,
I am doing some work with the PrintJob to print a movieclip.
This movieclip has a child clip with filters applied at design time.
The filters show up in the clip on stage, but not in my printed
image - I am printing to PDF.
Am I missing something out here??
The example
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
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
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:
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
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.
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 the archives. If anyone recalls that, would they mind
pointing me to it?
The
Hi there,
I got a simple code to print a mc.
This mc is special for printable content and not show (_visible = false)
Here is my print code :
var pj : PrintJob = new PrintJob();
if (pj.start()) {
pj.addPage( view.mcPrint, null, {printAsBitmap:Boolean});
pj.send();
Hey all,
I'm trying to use the printJob class (AS 2.0) to print a page with a
dynamically drawn chart, something like:
mc_pp = _root.createEmptyMovieClip(printbox,
this.getNextHighestDepth());
mc_pp.attachMovie(printPage+i, printPage, 100, {_x:-1000,
_y:-1000});
//
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
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
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
-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of julian
atienza
Sent: maandag 24 april 2006 17:26
To: flashcoders@chattyfig.figleaf.com
Subject: [Flashcoders] PRINTJOB HELL, PRINTJOB NIGHTMARE with several
PAGES
Hi.
I wanted to Print contents of a long Scrollable textArea
of movieclips.
NOTE : this is easier than it seems.
Been there, done that,
Regards,
Hans.
-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of julian
atienza
Sent: maandag 24 april 2006 17:26
To: flashcoders@chattyfig.figleaf.com
Subject: [Flashcoders
Of julian
atienza
Sent: maandag 24 april 2006 17:26
To: flashcoders@chattyfig.figleaf.com
Subject: [Flashcoders] PRINTJOB HELL, PRINTJOB NIGHTMARE with several
PAGES
Hi.
I wanted to Print contents of a long Scrollable textArea with Flash,
but
it's a kind of nightmare.
I tried
:26
To: flashcoders@chattyfig.figleaf.com
Subject: [Flashcoders] PRINTJOB HELL, PRINTJOB NIGHTMARE with
several
PAGES
Hi.
I wanted to Print contents of a long Scrollable textArea with
Flash, but
it's a kind of nightmare.
I tried to made a class to manage Printing
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
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
Hi all...
I'm adding a simple printsomeinfo page to my project but something
strange is happening!
The printout will be of pure text with no images so I'm setting the
printAsBitmap to false... but the content of my SWF (all of it including
loaded clips) just dissapeares once the print
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
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
] 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
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
Hi.
I wanted to Print contents of a long Scrollable textArea with Flash, but
it's a kind of nightmare.
I tried to made a class to manage Printing (with a PrintJob object inside) ,
and one empty swf that Creates Dynamically the TextArea and the Class to
ManagePrinting, who feeds textArea with
@chattyfig.figleaf.com
Subject: [Flashcoders] PRINTJOB HELL, PRINTJOB NIGHTMARE with several PAGES
Hi.
I wanted to Print contents of a long Scrollable textArea with Flash, but
it's a kind of nightmare.
I tried to made a class to manage Printing (with a PrintJob object inside) ,
and one empty swf that Creates
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
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
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
[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
Apologies for reposting, hopefully someone has come across this before.
We have a large and complex Flash RIA that represents almost 2 years of
development effort. Unfortunately we have one major unresolved issue. In a
couple of places we have print functionality. When the print job system
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
@chattyfig.figleaf.com
Subject: [Flashcoders] PrintJob causes Abort Script error message.
Apologies for reposting, hopefully someone has come across
this before.
We have a large and complex Flash RIA that represents almost
2 years of development effort. Unfortunately we have one
major unresolved
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
, 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
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
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
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.
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.
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
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
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
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
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
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
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
-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
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
-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
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.
I'm working on a complex Flash online application. Its all done in code and
components, consisting of over 200 classes and probably around 50,000 lines of
code.
Unfortunately we have one unresolved issue. In a couple of places we have print
functionality. When the print job system dialogue
Hi,
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 height) and I
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
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
Hello everyone,
I'm posting this here in order to provide another solution to the terrible
misinformation available on Macromedia's site about how to convert a
landscape image to portrait for printing using the PrintJob class.
The code posted here at Macromedia's forums is VERY WRONG:
I have the following
var pageCount:Number = 0;
var my_pj:PrintJob = new PrintJob();
if (my_pj.start()) {
my_pj.addPage(target_mc,
xMin:0,xMax:700,yMin:0,yMax:500},
{printAsBitmap:true},
64 matches
Mail list logo