ActionScript 3.0 :: PrintJob, Graphics/logo Disappearing On Multipage Printout?

Jan 9, 2012

I'm printing a multipage report from a single Movieclip (MC). The parent MC has a minimum of 6 dyanmically created pages. What I do is loop thru a data array and create multiple pages from a template MC that I have in my library and that I access thru it's AS linkage.As I loop thru the data each page is added to the parent MC. They are stacked vertically. Each page is 720px high so page 1 starts at 0, page 2 starts at 720, etc.

Once the report is created I used Printjob to print the MC. Here's the loop to print the report.  I use a defined rectangle area to create each page from the report MC. As I loop thru the pages the Rectangle location is move accordingly.

[Code]...

View 3 Replies


Similar Posts:


ActionScript 2.0 :: Publish Flash File Certain Graphics And Text Are Disappearing From The Swf File?

May 27, 2010

can anyone explain when I goto publish my flash file certain graphics and text are disappearing from the swf file?

For instance just some static text and also a graphic i've copied three times.. two show up but the third doesn't? really annoying help!

View 2 Replies

Professional :: Translucent Logo Sees White Details Take On Colour Of Logo Base?

May 25, 2010

How should vector artwork be drawn in Freehand so that white details sitting over a blue base are still readable when alpha of e.g. 50% is applied in Flash 8 ? In Freehand 9 I created a logo. Logo has an rgb mix blue base rectangle and rgb white drawn shapes on top. I also drew over the text and gave it the rgb blue as a fill with line none. That sits on top of one of the white shapes.

[Code]...

View 1 Replies

ActionScript 2.0 :: Multipage Printing In Flash?

May 24, 2007

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

View 2 Replies

ActionScript 2.0 :: ActionScripting Generating Multipage Forms?

Nov 10, 2010

this time i want to create a flash movie with about 150 pages that has in all of them a single form (input Text field) and then exports it to mysql database via php file. now my problem is this. how the hell can i tell as2 to build the textfield on each and every frame. onenterframe just keeps looping 12fps on the same frame.

Code:
//MASTER LOOPER!!!!
onEnterFrame = function () {
_root.frameNumber = _root._currentframe;

[Code]....

View 1 Replies

ActionScript 2.0 :: Print Multipage HTML Text?

Oct 23, 2009

Despite my better judgment I've gotten into a position where I have to print large amounts of html text from flash. By large I just mean that it may have to be broken up into multiple pages. After much frustration however I have come up with what seems to be a pretty consistent solution (described below).The one problem I'm still having is that there are sometimes images embedded in the html text and those are not printing consistently. At first I figured I just needed to add in a delay to give them time to load. This is kind of true. If I don't give any delay none of the images will print.

However, even with a long delay (i've tried up to 10 seconds) there are still the occasional missing images. I've checked the image paths and they display just fine on screen. It seems to have something to do with number of pages and/or scrolling issues with the text field. Images on the first page always print. If there is an image on the second page and the print job is only 2 pages, the image on the second page never seems to print. If there is an image on the second page, but the print job spans 3 or more pages then that image will print. Anyway, as you can see it's really weird am I'm just hoping someone can point me in a direction because I don't even know what else to check for.Here is the how my routine is setup

ActionScript Code:
var _printDepth:Number = 200;
var _printInterval;

[code]....

View 2 Replies

ActionScript 2.0 :: Can't Print Multipage HTML Text

Jun 14, 2010

Despite my better judgment I've gotten into a position where I have to print large amounts of html text from flash. By large I just mean that it may have to be broken up into multiple pages. After much frustration however I have come up with what seems to be a pretty consistent solution (described below).

The one problem I'm still having is that there are sometimes images embedded in the html text and those are not printing consistently. At first I figured I just needed to add in a delay to give them time to load. This is kind of true. If I don't give any delay none of the images will print. However, even with a long delay (i've tried up to 10 seconds) there are still the occasional missing images. I've checked the image paths and they display just fine on screen. It seems to have something to do with number of pages and/or scrolling issues with the text field. Images on the first page always print. If there is an image on the second page and the print job is only 2 pages, the image on the second page never seems to print. If there is an image on the second page, but the print job spans 3 or more pages then that image will print. Anyway, as you can see it's really weird am I'm just hoping someone can point me in a direction because I don't even know what else to check for.[code]...

View 0 Replies

ActionScript 3.0 :: OOP - Making A Multipage File Using Classes

Nov 10, 2010

Basically I'm trying to make an air app which contains a variety of different pages - I was under the understanding that each page would have its own class file, with everything being instantiated for that page within the class file.

If that is the case, then how would I make the transition from class to class and also remove the previous class so it doesnt take up memory?

View 7 Replies

Data Integration :: Have Xml/php Feed Text To A Flash Multipage Banner?

Jul 14, 2009

I've made a few sites a few years ago with flash CS3/AS2 and using the TextArea as an output for xml content. that really sucked and looked terrible as it flashed white everytime it was loading (especially on slow connections). so I don't want to go that route again.sir!ok, so I have a banner that has 3 text elements per page (with various graphics per page behind the text) ...all text needs to be live as it is fed by 3 different languages. (referably the image link too)1. consistant big title across 8 pages2. sub-title that changes per page3. paragraph of text per sub-title4. the background imageEach of the 8 "slides" lasts about 6 seconds each (this part im fine with and sorted in AS2...but not AS3). On the top left are 8 numbered buttons that a user can click on to view whichever "slide" they may have missed or whatever. (this part i'm ok with....just the external text and formating are the issue)how would i go about setting this up via dynamic text with either XML or PHP in CS4/AS3? (using dynamic text fields, but so its nicely formated).

View 1 Replies

ActionScript 2.0 :: Attach Graphics Instead Of MC Cause A Graphics File Size Is Relatively Small Than That Of A Graphic?

Apr 9, 2005

I was wondering about MC and hey can help to lag a game out. I set up an advanced class system so i don't have to use MC to simulate walls, all i use isthe x,y,width and height. Well anyway since i don't need MC anymore I was wondering if there is a way to attach Graphics instead of MC cause a Graphics file size is relatively small than that of a graphic, I think. If anyone could tell me thats true and show me a way to attach graphics that would be nice. I haven't tried it yet but maybe if I exported the graphic from the library imihgt be able to call its name, but it doesn't have an instance name so im stuck.

View 2 Replies

ActionScript 3.0 :: 1119: Access Of Possibly Undefined Property Graphics Through A Reference With Static Type Flash.display:Graphics.

Oct 8, 2009

i am trying to receive in my function as a parameter either a shape or a sprite and then access their graphics property, but this gives me an error:

Code:
public static function makeRect( obj:DisplayObject, ...
var g:Graphics;
if(obj is Sprite){

[code]...

//1119: Access of possibly undefined property graphics through a reference with static type flash.display:Graphics.

View 1 Replies

ActionScript 3.0 :: PrintJob Not To Scale?

Apr 28, 2009

there is a print button , however when i try to print , it is not to scale.

View 1 Replies

Professional :: PrintJob Only Prints Once?

Jan 15, 2010

I am having a problem with my printJob.  I have a button setup to call the printJob.  When I click it the pages that I want to print, print properly the first time.  But then if I click the button again to print the same page, it does not work. The button continues to work and calls the function properly, but after that it does not work.   Here is the code that I am using:
 
public function Print_PTSD(event:MouseEvent):void{
trace("Print button clicked");
//Generate the Sprite to be printed

[Code]....

View 1 Replies

ActionScript 3.0 :: Printjob () Not Working On IE?

Jun 6, 2011

I got a very simple printjob that works on safari, but it doesnt work on IEAny ideas what Im doing wrong?

Code:
function printMe():void{
var my_pj:PrintJob = new PrintJob();

[code]....

View 0 Replies

ActionScript 2.0 :: CS3 Center And Rotate With PrintJob

Jul 1, 2008

I am looking to add a print job to my flash presentation. I have the basic code and can get it to print, but I have to manually set the printer to print landscape and the image is in the top left corner. If it was just for me it wouldn't be a big deal, but a lot of our presentations go to lawyers and judges so we would like to streamline their results as much as possible. Is there a way to tell it to rotate 90 degrees and center itself on the page. Below is the code I am using. I tried to use some parameters to set it for landscape, but they don't seem to work. My doc size is 720x540.[code]

View 4 Replies

ActionScript 3.0 :: Can PrintJob Add Pages For More Than 60 Seconds

Jan 10, 2010

Though Flash docs say: 15 second script timeout limit applies to the following intervals: PrintJob.start() and the first PrintJob.addPage() PrintJob.addPage() and the next PrintJob.addPage() The last PrintJob.addPage() and PrintJob.send() It looks like 15 seconds is the maximum interval between  the first and the last addPage() With Script time limits it can be changed up to 60 seconds, no more.
 
I have to print 50 and more pages of static text, it often takes more than 60 seconds, and I get #1502 Error (Time Out)
 
For test I use Flash file with that simple code at frame 1:
 
stop();
var count:Number = 0
var pj:PrintJob = new PrintJob()

[Code].....
 
"myMC" is a MovieClip with static TextField containing 1000 "a" characters. When it is published as AS2, prints all 150 pages - prints as long as necessary. With AS3 prints 14 pages only before timeout - prints for 15 seconds only.
 
how to overcome 60 seconds time limit? P.S. Timer event and EnterFrame event do not work after PrintJob.start().

View 2 Replies

ActionScript 3.0 :: PrintJob Background Color

Mar 27, 2010

I have an SWF that has a print function attached to a button that prints a movie clip called content_MC.I have the SWF set with a transparent background using the wmode=transparent in the embed object.The FLA/SWF has a white stage/background.When I print the SWF that is set with a transparent background to PDF the background prints as black. I'm assuming this is because of the wmode=transparent setting in the embed object. What I need is for the embed object to stay transparent on the website but for the background to be white when someone prints.Is there some sort of variable in the PrintJob class that might handle this?url...

View 41 Replies

ActionScript 3.0 :: PrintJob Seems To Have Stopped Working?

May 3, 2011

I embedded that (as a swf) in Captivate5 and published.It was working fine.... When I went into it today to modify some of the text it quit working. After long struggles and thne restoring the original version. I discovered that the original version was no longer working either. So sometime in the last couple of weeks this Flash AS3 file contained in Captivate5 has stopped working. The print function now produces a page that has a light gray box the size of the bounding rectangle of what is supposed to be the content (which is almost entirely text) The rest of the piece works fine and the printing function is as basic as it gets. All of what I am trying to print is contained in a single frame of a one frame movie clip:

function doPrintReport() { var myPrintJob:PrintJob = new PrintJob(); if (!myPrintJob.start()) {  //printing canceled  return;  }else{   myPrintJob.addPage(this.report_mc);   myPrintJob.send(); }}

And this was working just fine... a couple of weeks ago - Back on April 14th to be precise. This is currently living on my local IIS server on my Windows 7 64bit desktop. I have tried running it in Windows IE 8 and Firefox 3.6 - Again the original version was working and now is not.

View 1 Replies

ActionScript 3.0 :: Printjob Not Working For Android?

Apr 11, 2012

I have a web application, wherein i am using Printjob class to print my flash content over the connected printer.
 
While browsing the application on web browser (desktop) it opens a print dailog box which is fine, but same application while browsing from android devices is not working..
 
I am publishing the content using less than the 10.2 version of the flash player.
 
Below is the code:
 
import flash.printing.PrintJob;
import flash.display.Sprite;
import flash.events.MouseEvent;

[Code].....

View 3 Replies

Flex :: Set Print Time For Printjob?

Nov 8, 2010

How can i set print time for flex printjob.

when the time is ripe my program will automatically print my job

eg. i want to print my job at 11.00 AM i will set print time in my program to 11.00 AM when time is 11.00 AM flex will automatically print my job

View 1 Replies

ActionScript 2.0 :: Printing A Range Using PrintJob

Feb 17, 2009

I can currently print one page from a flipbook by typing the page number in a text field and using the actionscript below. What I'd like to be able to do is print a range of pages. Can someone help me modify this script below to allow for a range to be printed?[code]

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

ActionScript 2.0 :: Printing Png Image Using Printjob?

Feb 18, 2010

I have one movie clip which is having extenally loaded png image. Now i want to print it.Its printing but showing one white box behind the image that means its not printing transparent image.My code is as follows:

Quote:
on(release)
{

[code].....

View 0 Replies

ActionScript 2.0 :: Printjob Not Printing .jpg On The Screen

Nov 1, 2006

I am having an issue with the printjob class where it is not printing the jpgs on the screen. it prints everything else, just not the image. Also, it seems to be inconsistent in that I have gotten it to work, but the majority of times it doesn't.

View 2 Replies

ActionScript 3.0 :: Get The Printjob To Print As Many Pages As Movieclip Needs?

Dec 7, 2007

how do I get the printjob to print as many pages as my movieclip needs? If I have this code:

[Code]....

how would I set pj.addPage to keep adding the mc till all the mc had been loaded?

View 6 Replies

ActionScript 3.0 :: PrintJob And Dynamic Text Inconsistencies

May 13, 2009

I have a set of dynamic textfields created and loaded with text at runtime. When I go to print them they print OK but on close inspection you can see that the printed version has words dropping down a line compared to the version on the screen!

I have tried different align settings for the text, system fonts and embedded fonts, cacheAsBitmap the textfields, printAsBitmap=true option, all to no effect.

The only thing that has worked is by drawing the texfields to a bitmapdata and printing that instead. This produces an exact copy of the screen version but the printed quality is very bad and unacceptable.

I'm pretty sure its not a procedural error in my code as the bitmapdata version is made in the same flow. So could it be a quirk in Textfield or TextFormat, or a quirk in PrintJob?

View 1 Replies

ActionScript 3.0 :: Can't Print Large Images With PrintJob()

Dec 20, 2008

I'm having an issue where when I try to print a larger image via printjob one of two things happens. One either the job fails or two the output of the image is literally diagonally cut off. I am simply passing the stage to the print job. I've tried both with and without using printAsBitmap.

View 1 Replies

ActionScript 1/2 :: Create One MC That Contains Informations On One Row And Add It To The AddPage Of PrintJob

Sep 14, 2010

For my work I have to introduce a Print button that will prints everything that is in the cart. However, I never did anything of that sort in Flash,.For now, I did a bit of research about how to do it and I do understand I'll have to use PrintJob with another MovieClip... but I need a bit of explanations about a few things.
 
First, in the cart (which can be printed), there are several "items" that have the same informations, such as the name, the price, comments, etc.Do I have to create one MC that contains informations on one row and add it to the AddPage of PrintJob (I will have 5 MC [5 pages] if I have 5 items in cart), or add all the items into the same MC?
 
Also, the flash is horizontal (1920x1280). Do I have to change the orientation of the PrintJob to print in landscape? Plus, how to know if the text is far enought of the margins? Do I have to consider the margins in the MC and thus puts a good distance between the borders of the MC and my content?
 
Adding a "page" to the PrintJob, how does it work? Is it a real "paper page"? I hope you understand what I mean by that, I can give more details if needed but I can't give the source (.fla).

[Code]...

View 3 Replies

Flex :: Pass An Object Like A List Or XML To PrintJob()

May 27, 2010

I want to know if anyone has successfully printed something from Flex.

By successful I am talking about some sort of report or document or whatever.

I know its fairly simple to print a component(which is a bit cheap) from Flex by using the printJob() class and passing a component. But I want to pass an object like a list or XML to printJob().

View 4 Replies

Flash :: PrintJob Printing Background Colour Only?

Sep 14, 2010

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

View 1 Replies







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