Flash CS3 :: Printing - Dynamically Set Print Page Margins?

Oct 29, 2009

//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.

View 1 Replies


Similar Posts:


Flex :: Skip Dialog Of Printing In Windows System And Print Page Directly?

Dec 23, 2011

When i use flexprintjob in Flex,it always popup a printing dialog which is printing driver.How can i skip this dialog and print directly?

View 1 Replies

ActionScript 3.0 :: Set Print Margins In PrintJob ?

Feb 21, 2009

I want print some sprite which is created by "draw(someSprite)" method in BitmapData.Everything is fine but... I want put some margins in my print page, and I don't know how .Of course I could set right position of my "someSprite" but I don't want change my site to print it. (Using Rect... in BitmapData.draw() and addPage() dont work.) Simple flashdevelop project is in zip file.

Code is below

ActionScript Code:
package
{
import flash.display.*;

[Code]....

I don't want to change position of "printBitmap" - alternatively "bitmapData" - or anything else.

View 0 Replies

Flash - Print A Bitmap Without Printing A Sprite?

Jun 12, 2010

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?

View 1 Replies

Flash :: Printing Flex 4 Application In Firefox Using Browser Print

Nov 16, 2011

There is a wide known issue with printing of Flash content in Firefox and Chrome browsers.So,one solution was created by "AnyCharts".But it seems not to work.I also tried to implement the latest version of the component that is now hosted and Google Code.I did exactly as the manual prescribes but it still doesn't work.AnyChart guys say on their blog page that something should be done with CSS as well ,but as you can see from the manual at Flash-Print-Fix home page ,there is no mention about CSS setup. My code works like this:

[Code]...

View 1 Replies

ActionScript 3.0 :: Get Control Over Page Margins When Working With PrintJob

Aug 29, 2011

I just step into the task of printing jobs in as3. All I have to do is to print the text in a dynamic text field which is in a movieclip. The text filed has a scroll bar to show the rest of the content. I am using the following lines of code to print the page.
 
pJ.addPage(txtContainer)
 
I have also tried printArea and pageHeight,pageWidth, paperHeight, paperWidth properties. But still I am not able to control the margins of page.

View 3 Replies

As3 :: Flex - Printing - Blanks Swf After Print Or Cancel

Jun 11, 2010

ok back at another issues in as3 printing

[Code]...

When i click cancel on the print dialog box, i get error below and it blanks out my swf. The error consists, that whenever i try to print and cancel it, or even when i do succesfully print, swf goes blank.

View 1 Replies

Flex :: Printing - Print Without The UI Components Disappearing?

Sep 1, 2011

I'm printing from flex, and since I want to customise the jobs such as with margins and a title, I created a UI Component PrintTemplate. I add my stuff to the PrintTemplate and then I print it.So the code is something like:

printTemplate.addElement(diagram);
addElement(printTemplate);
if (printJob.start()) {

[code].....

View 1 Replies

Print Movieclip Getting Cropped Instead Of Printing Multiple Pages

Jun 25, 2009

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?

View 2 Replies

ActionScript 2.0 :: Print Entire Page But When Text File Is Scrollable It Doesn't Print Whole Text?

Jul 14, 2005

how do I go about printing entire, scrollable text area in flash movie, I know how to print entire page but when text file is scrollable it doesn't print whole text.

View 8 Replies

Flash :: Print A Web Page Via A SWF?

Aug 1, 2011

In my web app, I would like to print a web page via a real, physical printer using Flash.I want to do this so that typical page headers added by the browser (eg. the URL and "Page x of y") do not get added to the printout.Perhaps I could generate a PDF and pass it to the SWF, or perhaps I could just send raw HTML ann CSS to the SWF, and then I could call some .print() method via Javascript against the SWF. So, 1) is this possible? and 2) is there a library (on GitHub perhaps) somewhere that would let me do this?

View 1 Replies

ActionScript 2.0 :: Print Page In Flash?

Jan 18, 2011

I have typed the following script in button. when we press that button the page has to print.

My problem is the content printed at the top left corner of the page, but I need it should be at the centre of the page.

on (press) {
// 72 pixels = 1 inch
// A4 printable height = 10.5 inches approx
var printableHeight = 11.69;

[Code].....

View 0 Replies

Button In Flash To Print Current Page?

Jul 25, 2006

I want to print the current page (web page) when user clicks on a button.

View 14 Replies

Flex - Print A Value In A Next Mxml Page Where The Given Input Is From Prev Page?

Jan 18, 2012

<?xml version="1.0" encoding="utf-8"?>
<s:Application xmlns:fx="http://ns.adobe.com/mxml/2009"
xmlns:s="library://ns.adobe.com/flex/spark"
xmlns:mx="library://ns.adobe.com/flex/mx"
width="1501" height="960" minWidth="955" minHeight="600">
<fx:Declarations>

[Code]...

i have a text inputbox in a config tab. when a user gives a input and click the "set new config" button it will go to a syatem where there will be a textbox.In thet textbox the prev input will be shown.how to do this?

View 1 Replies

ActionScript 1/2 :: Add To Flash Page Print And E-mail The Schreenshot Buttons

Jul 12, 2010

i need to add to my flash page print and e-mail the schreenshot buttons. like the buttons in this page "

View 1 Replies

Php :: Taking Data From Only One Print Function In A Php Page And Passing To Flash?

Aug 5, 2011

I'm trying to take a variable from a php page and send it to flash to then use in a link.I'm having problems just selecting ONE variable from the print function, the code will help explain:

PHP page

<?
print"fbook=facebook";
print"tweet=twitter-test";[code]....

It collects all the data fine but it does not print it out correctly, it prints out all the variables in the php in one link. For example: If i click the facebook icon, i will be taken to http:[url].... This also happens with the other icons (Youtube and Twitter).

View 2 Replies

ActionScript 2.0 :: Flash - Page Stops Dynamically Stretching After .swf Page Loaded?

Oct 8, 2007

I have a flash site that has four pages which all stretch to fit window size.As soon as I go to a gallery page that is called in via SWF, and come back, I loose my dynamic stretching of all my pages...I would like the SWF page to stretch to fit also, and its isn't.

View 2 Replies

Printing Long Multi-page Documents

Dec 1, 2009

I've got a document reader application that I'm trying to add a print option to, but I'm having real difficulties with PrintJobs.On my first attempt, I prepared all my pages in advance, then called PrintJob.start, followed by PrintJob.addPage for each page, then PrintJob. send to finish.On longer documents, however, this was falling foul of the script execution time limits.I could get 90-100 pages spooled before the runtime threw an exception and cut the print run short.On my second attempt, I prepared all my pages in advance again, then called PrintJob.start.I then tried using an event handler to call addPage for each page (first using the frame_enter event, then using a timer).  However, calling PrintJob.addPage from an event handler like this caused an exception to be thrown.I've been tearing my hair out all afternoon trying to find a solution to this -- does anybody have any idea how I can get long PrintJobs to work?

View 1 Replies

ActionScript 3.0 :: Printing The Next Page Of A Datagrid In Flashair?

Nov 19, 2010

I can only print the first page of my datagrid but not the next pages??

function printProducts(evt:MouseEvent):void{Dg_prods.rowCount = Dg_prods_Rowcount;Dg_prods.visible = false;
sheets=Dg_prods.numChildren;printContainer=new Sprite();addChild(printContainer);

[code].....

View 10 Replies

ActionScript 3.0 :: Set Header And Footer Of The Page While Printing

Jan 29, 2012

Is there any way to set header and footer of the page in as3 while printing.

View 3 Replies

Flex :: Printing On OSX Pushes Image Off Page

Oct 18, 2009

My Flex 3 app prints pages just fine from browsers on Windows using FlexPrintJob (not the browser print function). However, on OSX, the left and top margins show up larger and the page gets pushed off the right and bottom. Basically, the scaling is screwed up, and I can't see any way to adjust the margins in code.Has anyone seen this discrepancy in Flex printing between Windows and OSX? Are there any known workarounds? I've searched all over and I can't find any good info on this (other than 12 unresolved printing bugs in the Adobe Jira DB)

PDF Generation is one route and while its a valid solution for some folks, I need to print directly. I'd like to see stuff like using regular Flash PrintJob, monkeypatches to FlexPrintJob, or just ways I can format my DisplayObjects before sending them to FlexPrintJob. None of the scaling options in FlexPrintJob work. My Flex Component is at 1.0 scale. I'm not sure what else I can do except for mess around with regular PrintJob.

View 1 Replies

ActionScript 2.0 :: [fmx] Directly Printing Html Page?

Jul 6, 2004

i'd like to have a button in my flash movie that sends an html document directly to the printer instead of opening it in a new window first

View 1 Replies

ActionScript 2.0 :: FMX - Directly Printing HTML Page

Jul 6, 2004

I'd like to have a button in my flash movie that sends an html document directly to the printer instead of opening it in a new window first.

View 1 Replies

ActionScript 2.0 :: Dynamically Applied Filters Not Printing - ColorMatrixFilter?

May 29, 2006

Ok, so I have these white shapes that I am "painting" using filters. (import lash.filters.ColorMatrixFilter).I apply it to the shapes using:

ActionScript Code:
myRoot.shapesCreated[i].filters = [eval(this.currColour)];

The problem is this: It paints really nicely, but when I use print(), it just prints the shapes, without the applied color transformation.

View 7 Replies

ActionScript 3.0 :: Dynamically Generated SWF Printing Text Blurry

Sep 9, 2010

I have a dynamically generated swfs with text fields in a html page which have to be printed/have pdfs made from them. The text is virtually unreadable when printed. I have tried setting the sharpness settings on the text fields to highest, rendering the text fields as bitmaps, nothing seems to improve them. Is it possible to get text to print as clear from swf in html page as from plain html text? I have seen the PrintJob class in as3 but this seems to relate to only one swf at a time. Is there possibly a way to use this for highres printing?

View 1 Replies

ActionScript 1/2 :: Printing Dynamic Text - Extra Space On End Of Page

Sep 18, 2011

I am printing a dynamic text from flash. Every thing works fine, But I get unwanted spaces/ small boxes at the end of every page. Using string functions I tried to remove the last character if it is a space.Even though I am getting this problem.

View 6 Replies

Print Only Part Of A Page?

Jun 4, 2010

Is it possible to alter this code to only print a certain area of my page?[code]...

View 1 Replies

ActionScript 3.0 :: Printing Dynamic Text Field - Placement Different On Screen And Printed Page?

Sep 13, 2010

I'm trying to print an MC that is on screen with a dynamic text field in the MC - its printing just fine but the placement of one of the elements is off. Basically I have a dynamic text field centered on the stage, however when I print it, the text field moves to the very right on the printed page, while the rest of the contents of the MC stay centered. To clarify on the printed page I basically have this nice page with centered text, but the dynamic textfield is moved all the way to the right of the page.

View 1 Replies

ActionScript 3.0 :: Print More Than One Movieclip On One Page?

Apr 12, 2010

I am trying to print a few movieclips on one page.  It looks like the PrintJob function wants to print each movieclip on it's own page.  Does anyone know how to get more that one movieclip to print on the same page?

View 7 Replies

ActionScript 1/2 :: How To Print Large Page

Dec 24, 2010

In stage print_mc is there. print_mc._height too large how to print 2page print_mc

View 1 Replies







Copyrights 2005-15 www.BigResource.com, All rights reserved