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).
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.
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.
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;
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]...
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?
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.
I am trying to print my Flash work out to an EPS/Illustrator compatible file so that it can be opened in illustrator and printed.Used to be able to use the Apple LaserWriter 16/600 PS printer driver but I am unable to find it anywhere. Is anyone else using any other updated drivers/techniques?
I want to print the entire page from my flash application irrespective of the size which I have given. I know this can be done through scale-to-fit. I have used the following code to print from my flash application. The size of my stage is 1024 x 900 pixels and I would like to print in A4 size and scale to fit while printing. I haven't used any movie clip
My question is whether you can have a "generate jpeg" or "generate pdf" button within Flash that a user can click on and a .jpg or .pdf is generated from that.For example if I want a user to customize a Postcard to his/her likings and then save it as a jpg/pdf to print it, is that possible?Or to just have a print button that prints at high enough resolution to have it look good on paper (150-300dpi?)
I want to print a movieclip in flash. I want that if the size of the movieclip is more than the page size, then it automatically goes to the next page. How can I do this?
I have a flash movie which produces a certificate for participants in an online course.It gets the pageHeight, pageWidth from the printjob then scales the certficate image to fit nicely in the middle.This is working fine on windows and linux, but on the mac it is not behaving. It is chopping of the right and bottom edge of the certificate, I think because it's misreporting the page size - putting in some debugging information about the dimensions reports as expected - the same as on other platforms - but if I put two printouts on top of each other on a lightbox, the mac one is scaled up, mostly horizontally.
This is going to sound like a really stupid query, but I'm totally new to this. I can grab the contents of a single variable from a php page and display it in a field in Flash, which works great. I do this using the echo command and placing an & before the variable to be sent. e.g. echo "&textData=$contentSenttoFlash";
When I embed the flash movie into the php page though, the echo command also prints that variable to the screen, so that it appears both in the flash movie (which I want), and again as a text string on the page (which I don't want). Is there any way to prevent the php printing the variable as well whilst using this method?
Does this sound at all possible (doesn't to me):Flash site is open...
1. User goes to their browser's options and chooses PRINT. 2. Flash (or Javascript) detects that and tells Flash. 3. Flash then responds by modifying what it's displaying before printing begins
I am pulling in jpgs and printing them via PrintJob. A client is saying that they are printing extremely pixelated on their Macs.Even when they print to PDF it looks bad so it's not simply their printer. However I tested it on the one Mac I have but I can't reproduce the same effect. This seems to work just fine on all the PCs I test on.The client is testing on these platforms:
I'm new-ish with flash and I am making a stand-alone player that I need a few things to print and have hit trouble when I try and do them.I can print the entire stage no problem.
- What I was hoping to do is have 3 print buttons, 1 would print a section of the player. The other a different section. and the last would print the whole stage (which I've already scripted).
- I've had a look at Print num scripts etc, but am hugely confused.
Has anyone got the script for printing a section of a flash stage?PS Can you set those x and y values to print something off the stage
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?
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();
After I pop in the code, I go to test the page on my Mac locally and I get this error.
"Adobe Flash Player has stopped a potentially unsafe operation.
The following local application on your computer or network: I:......main.swf
is trying to communicate with the internet enabled location:
I:.....page.html To let the application communicate click setting. You must restart the application after changing your setting."
And on a Windows machine, nothing even happens.
Obviously I think its not working because I am testing it locally, because the minute I upload it to my server, it works. The only problem is, I need it to work locally because it is going to be viewed from a CD not through the net.
Is there another way for my Flash Button to print the entire HTML page?
Has anyone else had a problem printing from flash on a Mac? Nothing seems to show up on a project I'm working on when I print, or save to PDF on a mac, just a blank page. I even tried a couple of adobe's examples with no luck.
Why ON SUBMIT my code isn't printing back all the questions just the last one? It is suppose to post to PHP all the questions but its only posting the last.way to post or get all user inputed anwers to print or an array or xml list?[code]...
I've a good understanding of flash but not so good when it comes to actionscript. At the moment I'm trying to build a flash site with a print button which will target specific areas of my site (including the contents of a scrollpane) and then fit them to the size of the page. I've spent a long time trying to get this to work, following different tutorials and Googling until my eyes went blurry, with very little success. The deadline approaches and I am getting desperate. how to achieve all of these requirements? Ideally I would love some magical component like videoMaru but that may be a tall order! I am publishing my swfs for Flash Player 8 with ActionScript 2.
//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.
I am trying to print a movieclip with printjob in flash. This movieclip contains two layers: one with a PNG image with transparency and one below with a jpg image. The problem is that the transparency of the png is not respected so the jpg image does not appear. The code i'm using is real simple: var my_pj:PrintJob = new PrintJob();
A client needs a standard consumer color printer for printing name badges from my flash app. Last time we used the app, I couldn't do any pre-testing of their computer and printer beforehand. So, of course, the margins were completely wrong when the time came to print. Ideally, I'll have the flash app's bugs worked out for the next run, but for safety's sake does anyone know of a printer that has good controls for custom margins and offsets, in case some minor adjustments are needed?
I am building a very basic report writer for an AIR application that I am developing. I am using the Flash PrintJob class to output the contents of my report (in which pages are stored as Canvas objects in a ViewStack object).The problem is, only the content that I see in the report preview screen gets printed.Is there a way that I can print what the Canvas object contains not just what is visible? Here is a code snippet that I am using:
protected function doPrintReport(event:Event):void { var pj:PrintJob = new PrintJob();