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
Similar Posts:
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
Aug 11, 2009
im trying to print something from flash onto multiple pages, i have the most basic text box i know is too long to fit on one sheet of a4 paper. when i run the print job in flash it only prints the first page. very annoying. can't find anything online to reslove the issuee is my code.
ActionScript Code:
var pageCount:Number = 0;
objPrintJob = new PrintJob();
[code]......
View 9 Replies
Sep 23, 2009
I had this working and then I placed the make movie clip and printjob parts of the script into functions and the wheels fell off. So I step backward and try to simplify it but it is still not working. It's been years since I worked in Flash but I've been asked to give this project a shot so I'm kind of learning to ride the bike again.
Code:
on (release) {
var pagearray = new Array();
if (eventChoice == "all") {
[Code].....
View 0 Replies
Apr 28, 2009
Looking for a tutorial to make individual pages (jpg or gif) into swf pages so we can add links in an on-line flip book. I have flash, but have not learned as of yet.
View 2 Replies
Jan 25, 2011
I would like to know how to track my pages with google analytics to see which pages are getting the most clicks. My site is XML / Flash the menu is xml. Could I put the tracking code on each of the menu items in the xml file?
View 7 Replies
Oct 3, 2011
I'm using FileReference to upload PDFs and PHP to email it.Is there any way to find out the number of pages within the PDF using either Flash or PHP?
View 5 Replies
Jan 25, 2012
I'm getting a data which contains a certain number.
I need to find how many hours, minutes and seconds it stands for.
for example:
I'm getting the number 248 which means:
00 hours : 04 minutes : 08 seconds
View 3 Replies
Jun 10, 2010
When i use time varaible and then minus the time. Ive noticed that flash does not count down in seconds, but the speed of light. My maths are not very strong so how can i get flash to count in seconds
var time =60;
sprite.onEnterframe = function(){
time -=1; ( this counts faster than seconds)
}
View 5 Replies
Jun 10, 2007
I'm trying to figure out how I can make the sound file that I load into Flash start at x seconds and end at x+30 seconds.So basically, I just want a 30 second sample to play starting at a specific time position. Does anyone have any advice on how to do this or have links to somewhere I can read up on it?
View 4 Replies
Feb 5, 2010
I'm trying out a page-flip program that tells me to create the pages as jpegs within a folder named "pages" in the Library. When I try to run it, it tells me it can't find the jpegs. I can get it to work locally by including the full URL (i.e., "...My Documentsedinnerpartiesimagesp3-large.jpg), but I know this isn't embedded in the swf file.
View 1 Replies
Apr 2, 2012
I'm working with the youtube API and I'm getting the current time on the video as seconds.What I want to do is to convert them into this: MM:SS.I've tried to google and try different things by myself but nothing seemed to work and be efficient.
View 4 Replies
May 23, 2006
I am currently using the following code to display the secconds of a FLV being played:
ActionScript Code:time_txt.text = Math.round(_root.video_mc.videoZ.playheadTime*100)/100;I need to change this to display MM:SS (minutes:seconds) rather than just seconds and decimals.The javascript people here at work suggested something like this:
ActionScript Code:
function strPad(str, places, pad, side) {
while (length(str) < places) {
[code].....
View 9 Replies
Oct 6, 2009
I have created a website with one flash animation banner.The banner .swf has 5 menus. Each menu goes to different movieclips inside the .swf file. and at the same time i want to load the corresponding html file when i click the menu button and place the html content into the bottom area of the main html page without refreshing the html page.
View 2 Replies
May 9, 2008
I have a video player and trying to make a time indicator of minute and seconds.
View 3 Replies
Apr 28, 2009
there is a print button , however when i try to print , it is not to scale.
View 1 Replies
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
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
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
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
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
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
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
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
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
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
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
Jul 19, 2010
1) I want a 60 seconds video to start playing after 40 seconds have been downloaded - to do that I set the NetStream.bufferTime to 40 seconds and retrieve "NetStream.Buffer.Full" event causing the video to really start playing. This step is OK.
2) However, the "NetStream.Buffer.Full" causes data to stop downloading. So the remainder of the video begins to download no sooner than after the 40 seconds have been played. This step is my issue. Can anyone tell me how to avoid this unintended effect? (i.e. playing a video and downloading data at the same time?)
View 2 Replies
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
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