ActionScript 3.0 :: Printing A MovieClip In Flash
Nov 19, 2009I want to print a movieclip in flash. I want that if the size of the movieclip is more than the page size, then it automatically goes to the next page. How can I do this?
View 1 RepliesI want to print a movieclip in flash. I want that if the size of the movieclip is more than the page size, then it automatically goes to the next page. How can I do this?
View 1 RepliesI have a sprite that has a scrollbar that uses the scrollrect feature. The sprite has several bitmaps and textfields. When I print the outer sprite (The one with the scrollrect) all of the textfields outside the scrollrect are cut after the first line. In case anyone else is having problems with printing sprites with scrollrects using the bitmap printing option fixes and prints most of the stuff in the sprite. Excluding all textfields outside of the scrollrect. This however can be fixed partially by embedding your fonts.
So now the only problem left is printing multiline textfields that are outside the scrollrect. P.S. Imho the scrollrect should have nothing to do with the printed area of the sprite because the printJob.addPage has a printarea parameter.
I am printing a parent moviclip which is on stage and has many child movieClips with linked classes having all single frames.When I try to print by passing it to printObject which is in external class few things happend as:
1. the object is printed but moviclip is removed from stage
2. also the dynamic text labels are not printed
3.the size is smaller than the original.
how to get to resovle these issues to obtain good print out from flash cs5 using AS
I have a flash stage which is in grey color. I have a blank movieclip which is in light pink in bgcolor. Can anyone tell me why when I tried to print the movieclip, my paper background will be printed grey? Is it because of my flash stage color? How do I fix this? (my original paper is white in color)
View 7 RepliesCode
var clipAImprimer=new ClipToPrint(); //In my library
var myPrintJob:PrintJob = new PrintJob();
if (myPrintJob.start()) {
For(var i=0; i<clipAImprimer.totalFrames; i++) {
myPrintJob.addPage(clipAImprimer, null, null,i);
} myPrintJob.send();
clipAImprimer=null;
}
I try to print all frames of a movieClip where each frame is a unique page. My movieClip have 3 different frames. The result is that I have 3 pages, but it's printing only the first one. I tried to call
myPrintJob.addPage(clipAImprimer, null, null,1); and
myPrintJob.addPage(clipAImprimer, null, null,2);
to make a test and it's the same result. I confirm that my clip has 3 different frames. I tried too label #p each frame but it's not effective for PrintJob. I have Flash CS4 and I can't use Flex, Air and Catalyst.
I've got a flash move that has a movieclip off-stage that contains a textbox that stretches with the text I put in it.
I've got this code on a button to print the movieclip:
Code:
on (press) {
var myPrint:PrintJob = new PrintJob();
myPrint.start();
[Code].....
This correctly tagets the clip I want but only prints out one page. How do i get it to print multiple pages if the content is long enough?
I am using Flash CS3 and AS2. I have a dynamically generated text string that is displaying in a multiline dynamic text box. This dynamic text box is inside a container movie clip which contains everything that I want my user to be able to print (other dynamic text fields, graphics etc.) When I view my swf on screen it displays exactly as I intended - if the text exceeds the text-box length, then it word-wraps. But when I print the container movieclip, the overflow is hidden and does not wrap to the next line.
View 1 RepliesI am trying to print my Flash work out to an EPS/Illustrator compatible file so that it can be opened in illustrator and printed.Used to be able to use the Apple LaserWriter 16/600 PS printer driver but I am unable to find it anywhere. Is anyone else using any other updated drivers/techniques?
View 2 RepliesI want to print the entire page from my flash application irrespective of the size which I have given. I know this can be done through scale-to-fit. I have used the following code to print from my flash application. The size of my stage is 1024 x 900 pixels and I would like to print in A4 size and scale to fit while printing. I haven't used any movie clip
[Code]...
My question is whether you can have a "generate jpeg" or "generate pdf" button within Flash that a user can click on and a .jpg or .pdf is generated from that.For example if I want a user to customize a Postcard to his/her likings and then save it as a jpg/pdf to print it, is that possible?Or to just have a print button that prints at high enough resolution to have it look good on paper (150-300dpi?)
View 1 RepliesIs there is any printing support in Adobe Flash like the new one in Silverlight.net beta 4?
View 1 RepliesI have a flash movie which produces a certificate for participants in an online course.It gets the pageHeight, pageWidth from the printjob then scales the certficate image to fit nicely in the middle.This is working fine on windows and linux, but on the mac it is not behaving. It is chopping of the right and bottom edge of the certificate, I think because it's misreporting the page size - putting in some debugging information about the dimensions reports as expected - the same as on other platforms - but if I put two printouts on top of each other on a lightbox, the mac one is scaled up, mostly horizontally.
View 1 Replies i have a very long movieclip and i need to take printout. how printjob class is used take printout(multiple page)?
var printJob: PrintJob = new PrintJob();
if (printJob.start())
{
[code]....
i'm using this code but it takes only one page..
This is going to sound like a really stupid query, but I'm totally new to this. I can grab the contents of a single variable from a php page and display it in a field in Flash, which works great. I do this using the echo command and placing an & before the variable to be sent. e.g. echo "&textData=$contentSenttoFlash";
When I embed the flash movie into the php page though, the echo command also prints that variable to the screen, so that it appears both in the flash movie (which I want), and again as a text string on the page (which I don't want). Is there any way to prevent the php printing the variable as well whilst using this method?
Does this sound at all possible (doesn't to me):Flash site is open...
1. User goes to their browser's options and chooses PRINT.
2. Flash (or Javascript) detects that and tells Flash.
3. Flash then responds by modifying what it's displaying before printing begins
I am pulling in jpgs and printing them via PrintJob. A client is saying that they are printing extremely pixelated on their Macs.Even when they print to PDF it looks bad so it's not simply their printer. However I tested it on the one Mac I have but I can't reproduce the same effect. This seems to work just fine on all the PCs I test on.The client is testing on these platforms:
Mac OS X 10.4.11 with flash player 9.
Mac OS X 10.5.4 with flash player 9
Mac OS X 10.4.10 with flash player 9
And in Camino, Firefox and Safari browsers.
I'm new-ish with flash and I am making a stand-alone player that I need a few things to print and have hit trouble when I try and do them.I can print the entire stage no problem.
- What I was hoping to do is have 3 print buttons, 1 would print a section of the player. The other a different section. and the last would print the whole stage (which I've already scripted).
- I've had a look at Print num scripts etc, but am hugely confused.
Has anyone got the script for printing a section of a flash stage?PS Can you set those x and y values to print something off the stage
Following up from: http:[url]...I am trying to comeup with a function to print without creating a sprite, because that's what it seems to be causing my problem:
public function printScreen():void {
var pJob:PrintJob = new PrintJob();
var options:PrintJobOptions = new PrintJobOptions();[code]....
This is coming up with an: Error: Description Implicit coercion of a value of type flash.display:Bitmap to an unrelated type flash.display:Sprite. So how do you print a bitmap without creating a Sprite?
Basically I've created a print class which has all the print job code in to print a sprite, however when I print it, the sprite which I've created acts like a mask and the area where the sprite graphic should be is filled with my background colour.When I scale the image to the width and height of the print width and height, obviously I've got a page full of purple.here's my code:
public function print():void {
//bitmap_to_print.smoothing = true;
var print_page:Sprite = new Sprite();
[code].....
Is it possible to load HTML content into Flash from a URL and print it with PrintJob() with Actionscript 3 without the Windows print dialog showing?
View 1 Repliesis there any way I could print selected text in flash??
View 1 RepliesI am using this function for a button in my Flash menu that I want to print my entire HTML page.
this.print_btn.onRelease = function() {
getURL("javascript:window.print()");
};
After I pop in the code, I go to test the page on my Mac locally and I get this error.
"Adobe Flash Player has stopped a potentially unsafe operation.
The following local application on your computer or network: I:......main.swf
is trying to communicate with the internet enabled location:
I:.....page.html To let the application communicate click setting. You must restart the application after changing your setting."
And on a Windows machine, nothing even happens.
Obviously I think its not working because I am testing it locally, because the minute I upload it to my server, it works. The only problem is, I need it to work locally because it is going to be viewed from a CD not through the net.
Is there another way for my Flash Button to print the entire HTML page?
Has anyone else had a problem printing from flash on a Mac? Nothing seems to show up on a project I'm working on when I print, or save to PDF on a mac, just a blank page. I even tried a couple of adobe's examples with no luck.
View 10 RepliesWhy ON SUBMIT my code isn't printing back all the questions just the last one? It is suppose to post to PHP all the questions but its only posting the last.way to post or get all user inputed anwers to print or an array or xml list?[code]...
View 1 RepliesI've a good understanding of flash but not so good when it comes to actionscript. At the moment I'm trying to build a flash site with a print button which will target specific areas of my site (including the contents of a scrollpane) and then fit them to the size of the page. I've spent a long time trying to get this to work, following different tutorials and Googling until my eyes went blurry, with very little success. The deadline approaches and I am getting desperate. how to achieve all of these requirements? Ideally I would love some magical component like videoMaru but that may be a tall order! I am publishing my swfs for Flash Player 8 with ActionScript 2.
View 3 Replies//I can get the right margins by defining a rectangle and giving it the following dimensions:
var rect1:Rectangle = new Rectangle(0, 0, 792,612);
//When the print button is pressed the following code executes using the dimensions defined by rect1:
prntCover_btn.addEventListener(MouseEvent.CLICK, printCover);
function printCover(evt:MouseEvent):void {
front_mc.visible = false;
[Code]....
This is not working to place the mc correctly on the page. This is all the Adobe help provides. Also Googled and tried different variations but no success.
I am trying to print a movieclip with printjob in flash. This movieclip contains two layers: one with a PNG image with transparency and one below with a jpg image. The problem is that the transparency of the png is not respected so the jpg image does not appear. The code i'm using is real simple: var my_pj:PrintJob = new PrintJob();
[Code]...
A client needs a standard consumer color printer for printing name badges from my flash app. Last time we used the app, I couldn't do any pre-testing of their computer and printer beforehand. So, of course, the margins were completely wrong when the time came to print. Ideally, I'll have the flash app's bugs worked out for the next run, but for safety's sake does anyone know of a printer that has good controls for custom margins and offsets, in case some minor adjustments are needed?
View 1 RepliesI am building a very basic report writer for an AIR application that I am developing. I am using the Flash PrintJob class to output the contents of my report (in which pages are stored as Canvas objects in a ViewStack object).The problem is, only the content that I see in the report preview screen gets printed.Is there a way that I can print what the Canvas object contains not just what is visible? Here is a code snippet that I am using:
protected function doPrintReport(event:Event):void
{
var pj:PrintJob = new PrintJob();
[code]......
need to print html generated invoices from a distant server, using the print class, event if bitmap is set as false, will render the invoice a bitmap. at least the text is blurry and not usable. alivepdf could be a solution but i need to print straight, not save the pdf locally. i don't even understand, giving the fact this print class sucks badly, flex won't allow a simple javascript print function from the remote page.
View 1 Replies