ActionScript 2.0 :: [MX]Print Dynamic Text Box?
Mar 12, 2004Is there a way to print a dynamic text box? I'd like to make a Print button that prints the contents of a dynamic text box in my movie.
View 3 RepliesIs there a way to print a dynamic text box? I'd like to make a Print button that prints the contents of a dynamic text box in my movie.
View 3 RepliesIs there a way to print a dynamic text box? I'd like to make a Print button that prints the contents of a dynamic text box in my movie.
View 3 Replieshow do I go about printing entire, scrollable text area in flash movie, I know how to print entire page but when text file is scrollable it doesn't print whole text.
View 8 RepliesI dont manage to print the content of a dynamic text
The movie clip is : var dates:boite_texte = new boite_texte();
Its content is generated in a function :
function onTxtComplete(e:Event):void {
.....
dates.labelOut.text += (titre1 + "
[Code].....
I am working on a exam program in Flash CS5. There's a page that displays the scores for each test a user has completed; and on that page I'm putting a print button so the users can print the results. So far I've found only one script that will actually work to print anything at all[code]...
The dynamic text boxes are supposed to be placed inside a movie clip called "proforma" and you're supposed to be able to place it anywhere, even off the stage - but where it apparently worked for the person in the thread I found it in, it doesn't work in my program. I don't know if it prints the dynamic text boxes; I can't get that far, because when I click print using this script, it tries to print every single frame in the program and practically kills my computer in the process, trying to spool so many pages.
i was wondering how i can print multiline text to a dynamic textbox using a varible..
eg
textbox="line1";
the get it to print line two ON TEH SECOND LINE...
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:
I have a print button with this code in it:
Code:
var pj:PrintJob = new PrintJob();
var printOptions:PrintJobOptions = new PrintJobOptions();
[code].......
Is there any way to print the contents of a textfield or string using the pring command in AS?
View 2 RepliesI am trying to create a print button on the last frame that will allow the user to print just that frame. I've tried using the printjob object, but all that I can get to happen is print a blank sheet of paper. Here is the code that I have so far:
function printScore(event:MouseEvent):void
{
var printJob:PrintJob = new PrintJob();
[code].....
I want my flex 4 application to print proper picture when I click on print in context menu of Adobe Flash Player.Is it possible?
View 1 Repliesi want to simply print 2 movieClips when i press a Print button. so i have the "_root.container_mc" and "_root.logo_mc"... paste the simplest code for printing a "landscape" page with these 2?
View 3 RepliesI am trying to make a print button that will print the contents of a mc...this mc basically holds a dynamically drawn floorplan which can be zoomed and panned...I want to be able to print the contents of the mc, and only what is viewable in the mc at the time of the print...so if you are zoomed in, all that prints are the actual objects visibly seen in the mc...I think it may be with the print command using bmovie but I have no idea how to assign a #b lable to the frame.
View 3 Replies[Code]... and go to the print section and then check out the print pieces. for some reason my resizing gallery movie is doing some weird stuff and i cant figure out how to fix it. my actionscript goes like this :
[Code]...
As there is no instance name for a static text, how is it possible form a button to make a printJob?
View 3 RepliesI am trying to get the name of my sound obj to print.[code]Now I want to print the name into a text feild with a var name of NAME. Does anyone know how to do this? I have tried all the following:[code]
View 2 RepliesI am not able to print more than 5 pages in one go. I want to print almost 12 pages in one print job. I am creating the movieclips of each page by adding the dynamic data in to it and store in an array. When all the movieclips created and stored in an array(pagesAry) then it call the following function to print those pages:
private function sendToPrinter():void
{
pj = new PrintJob();
try
[code]....
Getting error: Print job canceled as it took more than 15 seconds to complete.
how do you set a print button so that it does no show up in the print out?
View 1 RepliesTo print images the PrintJob class must be set to "printasBitmap". If the page has text and images in the same way PrintJob needs "printasBitmap" to print the images. But this setting become text jagged, low resolution, bad quality.
View 1 RepliesDespite 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]....
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]...
I have the last page in my movie where users can input their names and hit print button. Everything is printed accept for the input text (names)
Is there anyway to capture the input text in the scene to send to printer?[code]...
how do i print a dynamic text. i.e I have a main.swf movie that loads external.swf within external.swf there is a text box with a scroll bar and i need to add a print command that prints only that text field the code that i added to a buttons looks something like this
on (release) {
printNum(0, "bmovie");
}
[code]......
I have a dynamic text field that scrolls. When I print I can only print what is viewable on the screen and not all the text being scrolled. How do I print what is not viewable within the scrollable text field? Oh yeah, and I don't want to parse the XML content and dynamic Flash conent into several diff frames to print like that since I am using 1 scroller to handle like 30 diff pieces of XML & Flash driven content.
View 3 Repliesi load data from xml file and i show the content. But if i try to print the field, it prints only the visible area. I have tried to do this with counting how many signs could i print in one page but there is a problem when i have new empty line. How can i print the data from the field on several pages. This is my code.
Code:
function BasicPrintExample(event:MouseEvent) {
var txt:TextField = new TextField();
txt.height = 1000;
[Code]....
segue o seguinte cdigo para abertura do arquivo xml:
xml follows the following code for opening of the archive:
var carregador:URLLoader = new URLLoader(); carregador.addEventListener(Event.COMPLETE, emCompleto, false, 0, true);
[code].....
I have made a movie using just one symbol. Is there any way in flash cs4 where i can print the position of my symbol in every frame into a text file?
View 1 RepliesTo enter static text in Flash, the only measurement option available for the text size is points,while the measurement for"Letter Spacing" appears to be pixels (based on my own observations, can't find documentation to verify this). Can either option be changed so that both options are measuring pixels or point/em units?
For instance in InDesign, the type size is in points and the "Tracking" is 1/000th em (see comment here). Both measurements are based on the same basic unit, while Flash seems to be using two different basic units of measuring.
I'm importing a large text file and trying to print it with a footer. My method for all of this is very simple. I'm dynamically creating a sprite container that is fed to the the printjob() class. Inside that I'm creating a dynamic text field and scaling it to the right page height/width (408x574) and adding a footer below that.
Using a loop, I'm scrolling the text field to the top of the next page and adding the page number to the footer and adding the page to the job. Mostly, this works fine, but I'm noticing some lines from the text field are not printing. This happens at the page breaks and is not consistent across different printers I use.
[Code]...
i have a problem with the line space flash creates when a dynamic text is loaded in a dynamic text field on the stage i put a dynamic textFild with istance name "profile_text". then im loadin in it a text. my text is written in the Notepad like this
[Code]...
i already set a Textformat to my dynamic text with i tryied to play with the "Leading".. but i think it something dealing with paragraph. how i can decrease spacing between paragraphs??