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


Similar Posts:


ActionScript 1/2 :: Back From The Bottom Of A Long Page To The Top Of The Page?

Jul 14, 2009

I have made a Flasch website with long pages. I look for a possibility to jump from the bottom of the page to the top of the next page (is in the next frame).
 
When I make a button "preview frame" on the bottom of the page, the page change into the next page, but at the bottum of that page.

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

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

ActionScript 2.0 :: Redirect Page After A Long Flv Plays?

Sep 10, 2010

I'm new here and I have a question regarding flv's.

I have an flv file of an interview and I want to have the user go to another site after watching the interview. Sort of like a getURL on the last keyframe, but when I imported the flv into flash, I only get one frame.

View 3 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

ActionScript 3.0 :: Quick Shared Object To Tell How Long Had Been Viewing The Page

Jul 15, 2011

Was at a site the other day that used a shared oject to tell me how long I had been viewing the page. I left the page, came back and the counter restarted right where it was when I left. This is cool, but what if there are say 30 people viewing the same page at the same time? As I can't write the code "myObject = new sharedObject" to get a new instance of the shared object, how is this done? Or, when I use the "get local (remote) sharedObject" does that give me a new instance of the shared object? Or is there only ever 1 instance of a shared object?

The reason I ask is say I'm writing a multipalyer game, and I want to store user information in a shared object so it displays in everyones swf. Well If I have only 2 people playing the game, fine, that's 2 shared objects. But what if there are 100 people playing the game? Or am I looking at the shared object use all wrong in the first place? I only have a small pea sized man brain so the logic escapes me...

View 4 Replies

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

Flex Multi-page Form For Android?

Jul 12, 2011

I want to use a flex multi-page form on thew newly released Adobe AIR for android platform. I have a sequence of 30-40 screens on the form and the user can exit in between(storing the partial data entered). Is there a sample application for this, or can someone tell me the architecture to build such an application with lots of views? I want to store the data both on the device(sqlite) as well as a remote web server.

View 2 Replies

ActionScript 3.0 :: Creating A Multi Page Imae Gallery?

Nov 15, 2010

creating an image gallery for my site. Please see my photo link:I want all the thumbnail btns on the left to load the large photos on the right. For 3 of the thumbnails, I need to show more than 1 image so I created numeric btns underneath the large images that will load photo 1, photo 2 etc. The issue that I can only get this to work on layer 1 and 2, when I try to do this for another thumbnail I get this error:"TypeError: Error #1009: Cannot access a property or method of a null object reference.t press2_fla::MainTimeline/frame1()"This is the basic script that I am using for all my thumbnails:

ezo1.addEventListener(MouseEvent.CLICK,playezomag) ;
function playezomag(event:MouseEvent):void{
gotoAndStop("fefe1");

[code].....

View 1 Replies

ActionScript 3.0 :: Printing Sprites With Scrollrects Using The Bitmap Printing Option Fixes And Prints Most Of The Stuff In The Sprite

Jun 19, 2007

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

View 3 Replies

ActionScript 1/2 :: Mute/pause Sound On Multi Audio Players In One Page

Aug 28, 2010

im using this player [URL] for my site and i am also using [URL] i have 2 instances of advanced player in one page and the backround player. I want to pause the other players when one of the 2 advanced players are playing, something like that: if myadvancedmp3player1 is playing (if i press the play button), pause myadvancedmp3player2 and pause backround_music. if myadvancedmp3player2 is playing, pause myadvancedmp3player1 and pause backround_music

[Code].....

View 5 Replies

ActionScript 2.0 :: LoadMovieNum - Users Of The Player To See How Long They Have Listen Or How Long Time Back Of The Song

Feb 5, 2004

I'am making a advanced mp3 player arund this tutorial: [URL] and i want the users of the player to see how long they have listen or how long time back of the song. i have the AS i what to use but i cant connect them. becuase the tutorial i used does not make a sound objekt (MUSIC)

[COde]...

View 1 Replies

Flex :: Playing A Large/long H264 File With NetStream Takes A LONG Time To Begin Playback?

Aug 1, 2010

I'm trying to play a 10 minute long video (h264/mp4) which is 39MB in size, after I call stream.play(fileURL) it doesn't start playback until its loaded around 12-16MB of the file (many many seconds later), I finally get onMetaData at this point too. Why doesn't it begin playback right away, or at least w/in a couple seconds? What can cause this bloated lead in time?

View 2 Replies

ActionScript 3.0 :: Gallery Page With A Bunch Of Page Numbers - Click On A Page Number, The Over Script Should Stop Until Go To Another Page?

Jan 26, 2009

i'm trying to build a flash site and ran into a problem... i have a gallery page with a bunch of page numbers at the top. when you click on one, a movieclip loads of some images coming in.so the problem i'm having is that i made a little animation for when you roll the mouse over the page number (they scale up when the mouse is over, scale back when the cursor moves away)... what it's doing is when you roll over, it goes to a certain frame in the timeline and plays that animation.that's all working cool, but i need it to not do that once it's clicked on. so basically when you actually click on a page number, the over script should stop until you go to another page... here's the code i've written,

function over(event:MouseEvent):void {
this.gotoAndPlay(30);}
function out(event:MouseEvent):void {[code].....

View 0 Replies

Add Metadata For Searching To FLA Documents?

May 29, 2009

In Flash CS3 when you did Modify/Document it allowed you to type in a document Title and Description which were metadata searchable by internet search engines. According to the book "Brilliant Flash CS4" this is still possible in CS4, but I think they have removed the option, and the book is wrong. add metadata for searching to FLA documents or is this now gone?

View 1 Replies

Xml :: Flash - External Swf Documents?

Mar 13, 2010

My XML scripts work fine in the local swf. If I load an external swf, can I still retrieve XML data from the same way. What problems will I encounter with XML and externally loaded swf files?

VARIABLE TYPES
var timer:Timer = new Timer(10);
var myString:String = "";

[code].....

View 1 Replies

ActionScript 3.0 :: Using 2 External Documents?

Jun 13, 2011

I have a dillema with Flash, and that is using more than 1 external document... Over the years I've tried using the include statement WHICH worked in as2 but now as we have progressed into as3 it seems to cause more and more errors! Why is Adobe screwing up actionscript? Back when Macromedia owned it everything was sooo much simpler than it is now

Right now I am making a Flash Game which is almost finished and I'm already using the external document for the GameController, I've added a brightness setting for portable users to make it brighter, I borrowed code off a kind coder and I'm now responsible for converting the external document into the actions keyframe...I used the include 'Main.as' statement and I get this error, packes cannot be nested.....is it possible to put the full code in my keyframes actions layer instead?

View 9 Replies

ActionScript 3.0 :: Loading XML From My Documents

Jul 16, 2011

I want to load my xml file from my documents. What url should I use? in this request
xmlLoader.load(new URLRequest("medialist.xml"))

View 1 Replies

ActionScript 2.0 :: Multiple XML Documents In One FLA?

Apr 24, 2008

i'm trying to create a mix and match clothing application using flash for a school project but am having trouble with xml documents. Using an old gallery tutorial on the site, i found it was quite easy to load up one xml document, excerpt of code below.

I thought it would be as simple as copying all the code and changing the variable names to load a second xml document but i find when i run the code, that only the last xml document in the code loads

function loadXML(loaded) {
if (loaded) {
xmlNode = this.firstChild;

[Code]....

View 1 Replies

ActionScript 2.0 :: F8 Open My Documents From A Button

May 25, 2009

Well what i want to do is a background in an internet source page. You know that ur deskopt background can be a web page right ? well i want to create such a page with dreamweaver which i can do and insert some flash button that i would be able to click on and open my folders such as My Images, My Documents, My computer... not open a file but the folder itself. Ive seen a lot of fscommand and gourl but they dont work cuz one open an internet browser and the other nothing appears. Id'like to know if it is makeable with Flash 8 to click on a button and then my documents appear and even better that you can choose dimmension of the pop-up.If i want to open my documents as an example do i need too have the button and the webpage in my documents?

View 3 Replies

Flash :: Open Office Documents From It?

Apr 19, 2010

We're working with a product called ProForm to create online courses that are Flash-based. It's a pretty cool product, created by Rapid Intake and using ActionScript 2 as the basis.

The problem we're seeing is that when we try to use this method to connect directly to Office documents, the links fail to open the documents in Internet Explorer.  When using Firefox, they work fine, and soon after clicking the link the user receives a dialog asking if they wish to save or open the document.  This is the behavior which we expected in IE, and which one can achieve by holding the CTRL button and clicking the link (and don't ask me how that was figured out, 'cuz I don't know).  But when just clicking the link in IE, a browser window briefly pops up, then the thing disappears and nothing else happens - no file opens, no dialog appears, nothing.

View 2 Replies

Professional :: Screen-based Documents In CS5

Jul 21, 2010

Just fired up Flash CS5 to a surprise. My screen-based SWF from years ago will no longer load. how does one achieve the equivelant of nested screens in CS5 now? I have outer chrome that's common to all screens and switch between nested screens to show different shared form screens that get populated with content from a database. Short of duplicating the shared content over and over, how do you get the layered effect I'm after? Does everyone simply jump around on the master timeline? Or does CSS play a role here?

View 1 Replies

ActionScript 3.0 :: Loading Documents Within A Label?

May 25, 2011

Is there any way to load Word Documents, PowerPoints, and .pdf files within a label using AS3?

View 1 Replies

Flash :: Is Using Uncompressed XFL Documents With SVN Advisable

Jul 11, 2011

My team and I are considering switching to using the "Flash CS5 Uncompressed Document (*.xfl)" option in Flash CS5 based on the assumption that it will allow better collaboration and conflict resolution when working in a version-controlled (SVN) environment. We would like to avoid the common situation of irresolvable conflicts when multiple people edit an FLA. at least in the initial release of Flash CS5: [URL] Has anyone had success or failure with this approach? Is this a favourable or detrimental change in workflow?

View 1 Replies







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