Actionscript 3.0 :: Printing Multiple Pages?
Jul 8, 2009
How can I print multiple pages in Flash (based on dynamic HTML content that might vary in length)? For instance, how would I grab the text that is beyond the limits of that first page (the printJob.pageHeight)? I can get the text fields text height and subtract the printJob's page height but how would I grab 'the leftover' text.
View 7 Replies
Similar Posts:
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
Aug 21, 2010
I am making a flip book in flash. I am using swf files as individual pages. User have the option to print pages. I am converting the swf into a btimap using bitmap data but when I print the test is not clear and all pixelated. Is there any way to improve the printing quality of pages?
View 8 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
Nov 16, 2011
Code
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.
View 7 Replies
Aug 28, 2011
I have a flash movie with 3 buttons I am trying to link relativley to pages within my site, I have one working fine but can't get the others to link and when I try it makes the one that is working, work no more..
Below's the code I am using for the one that is working;
import flash.events.MouseEvent;var getIndex:URLRequest = new URLRequest("../index.html");
//---Enter Button---\
[Code]....
View 5 Replies
Jun 22, 2010
I am creating a Flash project that involves loading 4 external .swf files (from a library of files), via MovieClipLoader, into one frame of the root timeline, creating a finished layout. Each of these external files sits on its own layer (1 to 4). I want to be able to print ALL 4 layers from this one frame, at once, on one piece of papercan this be done?if so could someone give me example of what the script might look likeI can print just one of the layers using:
on (release) {
printnum(1,"bframe");
}
View 1 Replies
Dec 1, 2005
my problem is that I don't understand/care why anyone would want to print out a flash site in the first place... so it is impeding my ability to find the answer to this problem. all i want to do is be able to let my client print their website out. the whole thing, page by freaking "page" (or in this case content area). The problem is that it's dynamic, has between 4 and 6 levels per content area, dynamically loading html text (css formatted) with jpgs in <img> tags.
The clients are using Firefox on Mac and report that blank pages print out when they use the print function of Firefox. When I print from Firefox on my PC it looks great. In fact - much better than IE because it doesn't squash the site to fit it on the page. I can't use the Print in the context menu because 1. it only prints the bottom level vectors, 2. can't guarantee the Mac people have right-click I have read up on print(), printjob(), printasBitmap() and they all target levels or mc's. is there a way for this to happen? is there a way to push a screen capture into the clipboard and print that? actionscript?
View 3 Replies
Apr 19, 2007
Trying to figure out this printJob thingy in Flash. How can i make it send either 1 movieclip to one print and another to another printer, or the same movie clip to both printers?
View 2 Replies
Jul 6, 2011
If I try to add ~70 High Resolution Sprites to a PrintJob using addPage() in a loop, I suffer a lot of slow down and performance issues.I am thinking I should perhaps create individual print jobs for each page, or maybe batch them together.
View 1 Replies
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
Aug 6, 2009
I was wondering if there is an easy way of navigating through a website without the use of multiple pages and eliminate the use of a navigation bar. My idea, which I'm sure has been done before because people are always coming up with new inventive ways to browse the internet, is to be able to allow the user to free roam the entire website on one page. I wouldn't be asking if I found it so I figured I could put my mind at ease and ask someone.url...In this map, it allows the user to free roam this map and find different cities. My idea is to have the user to browse a map of a website to different parts of what would normally be links to other pages. The whole web map would be one page and the user could just move their cursor up or down or left to right to each section of the website. Once they get to a section, they can click on certain parts. There is one website that is similar to my idea, but I want to eliminate the use of a navigation bar.I am new to flash but I love web design. I want to come up with a new way to navigate.
View 5 Replies
Jul 23, 2003
I have a very long Flash movie which is about 3 pages worth. I am not able to print it in 3 pages...
View 3 Replies
Jan 28, 2009
I have started making my first full flash website and there is one thing that troubles me:
How to make transition between multiple pages?
View 7 Replies
Sep 27, 2010
Working on a picture gallery with multiple pages. The basic idea of what I'm trying to do is I get a list of all thumbs, separate the list in groups of 20 and then add all the groups to a MC that slides left and right when the user presses a left or right button.This is the code I've written:
Code:
if ((totalPics % 20) > 0)
{
[code].....
View 2 Replies
Sep 15, 2009
I am building a basic database website for my local community and everything is going fine until i try to add more script to control buttons on pages from the menu. The menu has 7 buttons which work, then on each of those pages is 6 more buttons. The first page works fine but when i add the code to the next page to control its buttons i get access of undefined prop. error and keeps playing through whole timeline. This is the code im using to control the buttons on pages from the menu.
View 9 Replies
Feb 1, 2010
I am trying to create a project with multiple pages. I stumbled across a tutorial demonstrating how to load and unload swf's. I used it and it works. way i could specify a btn or mc in the loaded swf that will specify the "click" area where the unload content takes place? Right now if i click anywhere on the loaded swf it unloads (i want that to be specified).
var myLoader:Loader=new Loader ();
page1_mc.addEventListener(MouseEvent.CLICK, page1content);
function page1content(myevent:MouseEvent):void {
[Code]......
View 10 Replies
Jan 26, 2012
I'm creating a interactive cd in Flash.In my flash file is a movieclip that consists 103 frames. Every frame is a different page.I'm using Indesign to create this pages because its the best way to work with so many different pages.When I export the pages to .jpg everything looks and goes wel. Only the quality becomes very low when putting the swf to fullscreen.I've tried exporting it as .swf but is it wisely to put 103 .swf in a flash file? I'd like to keep the text vector and readable on every screen size.
View 1 Replies
Aug 4, 2009
I have a website partially made where I intend to apply a backing track throughout the website.my AC looks like this:
ActionScript Code:
}
var soundReq:URLRequest = new URLRequest ("sound.mp3");
var sound:Sound = new Sound();[code].....
I have a button at the top right of the page that allows me to stop and start the music. The problem exists when I go to another page (the audio is playing), then click the home button again. This starts the audio track from the beginning again whilst the first track is still playing.How do I need to modify my code in order to stop this from happening?
View 0 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
Jun 19, 2010
I am trying to load an external swf with multiple pages so that I can print it in flash this is what I am doing:
Code:
function loadImage(url:String):void {
// Set properties on my Loader object
imageLoader = new Loader();
imageLoader.load(new URLRequest(url));
imageLoader.contentLoaderInfo.addEventListener(ProgressEvent.PROGRESS, imageLoading);
[Code] .....
I use the loadImage() function to load a multiframed swf movie then I use the function below to print but only one page comes out what am I doing wrong? How do I get it to print all the pages of the external swf?
Code:
function printScore(mc:MovieClip):void{
var myPrintJob:PrintJob = new PrintJob();
if(myPrintJob.start()) {
var printOptions = new PrintJobOptions(false);
[Code] .....
//Fail no printer
View 0 Replies
Sep 13, 2011
This is hard to explain, so bear with me... I'm creating "pages" of draggable buttons so that I can reorder them according to their revised positions. Everything works great but I'm stumped as to how to drag the buttons forward or backward a page based on the current active page. If you look at the file you'll see exactly what I mean. I have a portion of the code commented out because that's the area I'm stuck on.
All the MC's are created on the initial load, with each additional page appearing "off the screen" by an adding 1000 pixels per page (in the X direction). Then I just reposition all the MC's as the pages are scrolled through.
What I really want to do is drag a button to the edge of the screen and have all the MC's move that represent the appropriate page. I think I need some sort of timer there or it just flies to the last page.
FYI, if you change the variable "TotalVBs" it will modify the number of displayed buttons. If you change the variable "myButtonScale" it will modify the scale of the buttons. Increasing either or both of these will add more pages to the program. [code]...
View 0 Replies
Jun 28, 2010
I'm kind of stuck on something and I haven't been able to find out how to get around this. I have a form that consists of 3 pages. User fills out the first page, then clicks continue, fills out second page, then clicks continue again, then fills out final page then submits. Usually when I build a form, it's just on one page so I just send all of the variables to a php file. In this situation, I'm not sure how I could jump from page to page.
View 1 Replies
Dec 18, 2008
I have a printjob routine, that starts a new job, then handles the following in a loop for printing multiple pages: 1. update content for every page in a sprite. every loop it's the same sprite. the sprite is visible on stage 2. addPage to Printjob after that sends the printjob to the printer
Now the Problem: On Windows it runs perfectly. On Mac only the last page was printed. the other pages before are empty (white). Her's my code. As you can see i try to print a table on multiple pages. In every loop i only show the rows for the actually printing page:
View 3 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
Nov 17, 2010
Is there a solution to have the background audio/music play across multiple page on a website, WITHOUT restarting on every page load.The website currently uses a frameset, but I'm looking for an alternative.
View 2 Replies
Aug 17, 2010
I currently have a single flash swf which acts as a header to multiple pages of a site I am building. When the preloader was created I expected it to show the first time I visit the site in order to load the entire header file. What I didn't expect was the swf to have to preload on every page of the site. Shouldn't the swf header already be completely loaded once the first page accessed by the user has been loaded.
To see what I'm talking about, visit [URL] and observe the preload of the same header file on each individual page.
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