Tracking Forums, Newsgroups, Maling Lists
Home Scripts Tutorials Tracker Forums
  Advanced Search
  HOME    TRACKER    Flash








Problems Printing Dynamic Text


hi,
i'm having big problems trying to print dynamic text out of the flash player that runs off a computer and not off the web. i have #p in all my frames i want printable. when i launch my swf and go to file/print, i get the print dialog box. after i change my settings to format to my printer i hit preview and what comes up next is a pdf preview window. all my pages assigned with #p are there in the pages preview, however, my dynamic text isn't what it should be. instead of each page having the correct dynamic text, they all have the same text as the page that i tried printing from. so, if i'm on page 3 and go to print, all my dynamic text has the text of page 3. is there a way with action script to have all my pages print the correct dynamic text that i can send to print all at once? i can go from page to page and print one page at a time with the proper text printing but that will take forever rpinting one page at a time. i'd like to just hit print all pages and have the correct dynaimc text on all my pages. is there a way? please help!
thanks!




FlashKit > Flash Help > Flash ActionScript
Posted on: 08-15-2005, 09:03 AM


View Complete Forum Thread with Replies

Sponsored Links:

Jumping To Areas Of Dynamic Text, Printing Dynamic Text
hello,

I have a movie clip that loads a .txt file into a dynamic text field. Due to the amount of content in the file a scroller bar is needed in order to view all of it. I want to create buttons that jump to different areas of the dynamic text for easier navigation so the user can go directly to various sections instead of having to use the scroller all the time. What kind of coding would I need to put on the buttons and within the .txt file at the areas I want to jump to?
Also, I would like to give the user the option to print everything within the dynamic text field only, not the surrounding elements in my movie clip. Is that possible?

thanks!

View Replies !    View Related
Printing Dynamic Text
Hi!

I'm having little trouble printing a string variable from Flash. Can someone help me.

Since there is no direct way, I loaded it into a dynamic text field inside an MC. Both the "Print" and "PrintAsBitmap", when used prints all other objects in that MC except the dynamic text field !!

View Replies !    View Related
Printing Dynamic Text
Hi!

I'm having little trouble printing a string variable from Flash. Can someone help me.

Since there is no direct way, I loaded it into a dynamic text field inside an MC. Both the "Print" and "PrintAsBitmap", when used prints all other objects in that MC except the dynamic text field !!

View Replies !    View Related
Printing Dynamic Text
Hi,

Would anyone be able to offer some advice on how to print some dynamic text in MX?

Here's the details:

> A movie clip on the main timeline
> Within this movie clip there's a dynamic text field with its content called from an external file
> This content is scrollable (as it is too big to all fit within the text field).

I've got a print button that targets the movie clip the same size as the dynamic text box in it. However, I ca only print what's visible on-screen in the movie clip.

Is there any way I can print the whole of the dynamic text file, even though parts of it are off screen waiting to be scrolled.

Thanks in advance for any ideas.

denitu

View Replies !    View Related
Printing Dynamic Text
Can someone please tell me how to print from a dynamic text field, preferably with a variable;
So far I can only print a visible portion of a text field, but I need to print the whole content of a variable which is also a dynamic text field

View Replies !    View Related
Printing Dynamic Text
does anyone know of a problem printing dynamic text, I have a text scroller that is propogated dynamically, when a user presses the print button the contents of that text box are passed to a holder clip text field, and then the print action is set to print the holder clip. The text field is dynamic and html. And it doesnt work.#
Any ideas?

View Replies !    View Related
Printing Bug W/dynamic Text ?
Greetings.

I have recently been overhauling an old client site; in the process, one particular SWF that used to be level0 is now loaded into a main interface, so this SWF now resides at level10. I mention this because the problem I'm encountering didn't happen before, yet I'm certain nothing else remotely relevant has changed.

The user clicks a button to print a movie clip. The movie clip in question contains some dynamic text. When the movie clip displays on screen, you see the dynamic text right where it should be. Here's where it gets weird.

When you go ahead and print this, the dynamic text disappears.

Now, I have tried many things to work around this, including creating a new textfield via actionscript and using that one instead, and even going back to old Flash and using a variable instead of a proper textfield. I've tried different fonts (not that that should matter -- the appropriate characters are embedded anyway, and besides, the clip wouldn't display properly onscreen if they weren't).

Also, the problem is encountered whether viewing the movies through a browser or using the standalone player.

I have also verified that the clip I think I'm printing is in fact the clip that Flash is printing.

I'm not really asking for help to troubleshoot this step-by-step, as I believe I've exhausted all the normal possibilities. What I'm interested in is knowing if anyone has heard of such a bug/eccentricity before, and if he or she has ever heard of a workaround.

(BTW, I've already scoured the flashkit and were-here forums looking for an answer, but found none.)

Many thanks.

View Replies !    View Related
[F8] Printing Dynamic Text
Hey again, I am working on another flash program where the user enters in numbers then hits a calculate button that I've created and the flash shows the results in dynamic text boxes. The problem being however is that when I hit the print button that I've created, the page doesn't display the dynamic numbers that have been calculated on the printed page. Only the numbers that have been entered into the input boxes are being displayed.

So for example the user enters in 10 and 10 in the input boxes (10+10) then hits 'calculate' the dynamic text box (answer) comes up as 20. But when the user goes to print the static page, only 10 + 10 is being printed and the 20 in the answer box isn't showing on the printed page. Only showing on the screen.

Any help here would be great. Thanks!

View Replies !    View Related
Printing Dynamic Text
How do you print the text in a dynamic text field using the print action command. (please provide sample if possible)?

View Replies !    View Related
Printing Dynamic Text?
I have a dynamic text scroller that imports information from an external .txt file.

In the flash animation, is there a way to print the information in the .txt by simply clicking a button.

It needs to print the TermsAndCoditions.txt file.

Any ideas, or tutorials anyone knows of?

Cheers

View Replies !    View Related
Dynamic Text Printing - Is It Possible?
ok,

I have wasted most the day trying to find an answer to this, so if anyone knows if this isn't possible, please let me know.

I have SWF that is loading dynamic text, which I am trying to PRINT. So basically, just a button that you hit that sends the text to a printer, nothing more nothing less, sounds simple bloody isn't!

Thanks

View Replies !    View Related
Help Printing Dynamic Text
hi,
i'm trying to get dynamic text to print directly from the flash player. all my frames have a #p in them but when i print, it prints the graphics on all frames properly but the dynamic text fields that print are all the same text. the text that is printing is the text that appears on whatever slide i'm printing from within the flash player. any ideas?? please help!
thanks!

View Replies !    View Related
Printing Dynamic Text Box
I've loaded mytext.txt (for example) using LoadVarsNum into my dynamic text box. Sorted. All smiles and I'm happy as it works fine. Now what I want to do is print the damn thing. I don't want to print anything else besides that text. Is it possible?

View Replies !    View Related
Printing Dynamic Text In Flash
We have a Flash piece that serves a quotation from a SQL database using the LoadVariablesNum action. It accesses a page called users.asp that executes the script to display the quote.

I've been successful in loading this movie, quotemovieDyn.swf, into another movie that contains a frame image, so the quote is served into a nice printable frame.

I've been trying for about the past 2 days to understand and implement the example in the MM Flash Web Printing Kit to use in this example, but their printable swf contains static text and images.

I can get the dynamic text to serve into the frame.
I can get the frame to print with some static text placed on it.

I can't, however, get the frame to print with the dynamic text showing up in the frame as it does in the screen version.

Is it possible to print this movie if:
a) It's loading a submovie (loadMovie action)
b) That submovie serves dynamic text from a database?

Thanks so much for any assistance,
Susan

View Replies !    View Related
Printing Dynamic Text Fields
Does anyone have any experience of printing dynamic text fields...i'm trying to take a body of text from a main movie to a loaded movie and print it in a dynamic text field, but it keeps printing out blank!
can anyone help with this?

duffi

View Replies !    View Related
Dynamic Text Field Printing
how can i make a dynamic text field print? thanks so much

Harrison Jobe
http://www.curve180.com/

View Replies !    View Related
Printing: Dynamic Text Box Moves
I have a document containing static text, a bmp and a dynamic text box inside of a MC. My print button prints the MC without a problem.

But when I load this swf into a blank MC in another movie and print, everthing prints fine except the dynamic text box shifts all the way to the bottom of the page. any idea?

View Replies !    View Related
Printing Dynamic Text I'm About To Give Up...
Ok, so I've searched this forum and this question still remains unanswered, I think it would be very helpful for everyone if we can clear this up right now.

How do you print the contents of a scrollable text field if the text extends below the bottom of the defined text area?

In other words, I need to print the entire content if a text box, regardless of which part is currently visible on screen.

This is one of those, it's so obvious it must be doable, but I'm starting to think it's not doable at all.

View Replies !    View Related
Printing Dynamic Scrollable Text
I create a dynamic scrollable text field with the following code. The variable "myinclude" in level1 is loaded from a txt file.

this.createTextField("scroll_txt", 1, 0, 0, 240, 360);
this.createTextField("my_txt", 1, 0, 0, 240, 360);
my_txt.multiline = true;
my_txt.wordWrap = true;
my_txt.html = true;
var my_fmt:TextFormat = new TextFormat();
my_fmt.size = 9;
my_fmt.font = "Arial";
my_txt.htmlText = _level1.myinclude;
my_txt.setTextFormat(my_fmt);
_parent.scrollUp_btn.onRelease = function() {
my_txt.scroll--;
scroll_txt.text = my_txt.scroll+" of "+my_txt.maxscroll;
};
_parent.scrollDown_btn.onRelease = function() {
my_txt.scroll++;
scroll_txt.text = my_txt.scroll+" of "+my_txt.maxscroll;
};


I use the following code to print this textfield. The problem is that it only prints the part of the scrolling text that is visible at the time. Is there any sollution to this? Please i am desperate as I have been struggling with this for weeks!!!

_root._print.onRelease = function() {
pages = Math.ceil(_root.printmovie._height/780);
// 780 is the height I decided to use here
var Do_print:printJob = new PrintJob();
if (Do_print.start()) {
var Height = 780;
var ymax;
var ymin;
for (i=0; i<pages; i++) {
//
ymin = i*Height;
ymax = ymin+Height;
Do_print.addPage(_root.printmovie, {xMin:0, xMax:595, yMin:ymin, yMax:ymax});
}
}
if (i>0) {
Do_print.send();
}
delete Do_print;
_root.printmovie.removeMovieClip();
};

View Replies !    View Related
Printing Dynamic Text Elements
This should really be a HowTo rather than a question, but I thought I should post it seeing that I've wasted the last two days trying to solve a problem that was fixed by checking a box in a settings dialogue!

I have a Flash MX movie which allows users to print a summary page from an application.

To start with I did a mock up of how things would look once the dynamic data had been added. This printed perfectly using the Print() movie clip method from in Flash.

However, once I changed the various text elements from Static to Dynamic and populated them with data, it displayed on screen fine, but the printed page contained everything except the text in the dynamic text boxes.

Printing from within Flash is not easy at the best of times, so I played about with various methods of attaching movie clips containing the text, but to no avail.

Anyway, I eventually stumbled on the solution by accident. I found that if you click on the text boxes and go to the properties panel there is a "Character..." button. You need to click this and then choose to "Embed font outlines" "for all characters". This will then allow the fonts to be used by the printer.

Hopefully this will prevent someone else from going through the same pain that I did :-)

Regards,

Richard.

View Replies !    View Related
Printing Dynamic Text Fields
Ok guys and gals, here's the problem:

I'm making a random sum generator for times, addition and multiplycation for school work. I've posted the swfs just to show you waht I mean.
But the trouble is I want to directly print what the main dynamic text field contains but it only prints what you see on the screen...

Any ideas???

View Replies !    View Related
Printing Dynamic Text Fields...
I'm trying to print a symbol using the

print("symbol", "bmovie");

code and it is printing everything except the dynamic text feilds in the movie symbol..

I've included the character outlines but still no luck with the text


anyone have any idea whats going on?

View Replies !    View Related
Printing The Content Of A Dynamic Text Box
I need a button on my movie that can print the comtent only of a dynamic text box. I use MX.. Can any one help. It would be much appriciated..

Thanks

Nathan

View Replies !    View Related
Printing Dynamic Text Fields
Hello,

When my movie loads i also load text in dynamic text fields in an MC outside the stage for printing.
Works fine!
BUT when i try and print the movie all the dynamic text disapears!
Only the graphics in the MC are getting printed.

It is html formatted text.

I used FlashPaperPrinter to see what came rolling out the printer.
so i have not actually printed anything..

Thanks!

View Replies !    View Related
Printing Dynamic Text Fields
just a quick question..
Im tryng to print a movie using the print bitmap function and it is printing but for some reason the dynamic text fields are all get pushed out of place and appear further down the page than they should do.
any one got a feasable idea why this is happening?
thanks

View Replies !    View Related
Printing - With Dynamic Text Fields
Hello,

i wonder if anyone can help me........i know there are a lot of posts already on how to print out dynamic text but all of them seem to be using scrolling text fields.

However my problem isn't even as complex as this but i still can't work it out.

At the moment i have a form of text boxes which the user inputs text.............from here there is a print button.........in order to compile all of the answers together i have created a movie clip.........with the layout of the printed page on it, and placed this on the main timeline. Inside this movie clip to be printed i have dynamic text fields...which link to the text fields which the users inputted data in, therefore both sets of text fields contain the same data, when you change one the other should change.

I have set up a very simple printJob command to print out the movie clip named print_mc and it prints the page even the outline of the text boxes but it doesn't print out the content which appears on the screen. my code is attached below.......please if anyone could help i would be very grateful :)

print_btn.onRelease = function() {
_global.aOneVar =oneAPone.text;
_global.aTwoVar =oneAPtwo.text;
print_mc.gotoAndStop("2");
var myPrintJob:PrintJob = new PrintJob();
var result:Boolean = myPrintJob.start();
if (result) {
myPrintJob.addPage("print_mc", null, {printAsBitmap:false}, 2);
myPrintJob.send();
delete myPrintJob;
} else {
}
};

thanks

View Replies !    View Related
Printing Dynamic Text Question
hi,
I have a flash movie that has a dynamic text box (called myText) with a scroller attached to it that is pulling in a .txt document (story.txt).

The text length is more that can display on the screen so I have a vertical scrollbar.

Is there a was to set up a print button so that it will print the entire story.txt document not just what you can see in the flash movie.

Thanks in advance for any help

View Replies !    View Related
Printing Dynamic Text Question
hi,
I have a flash movie that has a dynamic text box (called myText) with a scroller attached to it that is pulling in a .txt document (story.txt).

The text length is more that can display on the screen so I have a vertical scrollbar.

Is there a was to set up a print button so that it will print the entire story.txt document not just what you can see in the flash movie.

Thanks in advance for any help

View Replies !    View Related
Printing Dynamic Text Fields (problems With)
Well, the problem is this...

I recently developed a Flash App that shows some info from a database. Everything worked fine, but when I tried to create a printing system from within Flash I got stucked. You see, my intention was to put a dynamic text field iside a MC, which in turn was positioned outside the stage, and use the print method targeting the MC.
The height of any text field is always fixed (or so I belive), and I really don't know the extents of the text I'll be printing, so there is a good chance that I'll not be abel to print the whole amount of information.


Is there any way to get around this?????
If anyone knows one, pleeeease let me know.
thanks.

View Replies !    View Related
Printing Dynamic Text Scrolled Off Page
Can this be done? I need to be able to print out generated text from a scrolled texfield. How do you print out text that's scrolled? This is from a projector file.
[Edited by bugger on 03-13-2002 at 09:35 PM]

View Replies !    View Related
Printing & Dynamic Text Fields Not Showing Up.
I am havingtrouble trying to print from a button in my FLASH movie.


this is what I am usign for my code:

Code:
on (release) {
print("_root.partsPanel_mc.choices_mc.objectClip_mc", "bframe");
}


now this DOES print, and it DOES print the correct target MC. (objectClip_mc)

objectClip_mc is a movie clip that consists of some STATIC text and some dynamic textFields that are populated by choices throughout my movie.

It only prints the STATIS text though..and NOT the text inside the dynamic textFields.

The font (ARIAL) "IS" embeded. I also have a (#b) in the frame/layer that has the objectClip_mc on it. the layer above it (and NOT inside the objectClip_mc) is a mask.... and when teste, the text is visible so I know the embeding is working. (I have "ALL CHARACTERS" checked for embed option)

Id appreciate any help on this...or tips. If you have experiencewith printing form FLASH..PLEASE post!!

thanks

View Replies !    View Related
Printing Dynamic Text Field Content...
blah... bluh... I realy hava a huge problem!

I'm working on of the most important projects in my life! that's school web site www.aat-edu.org - I did all the design and little bit of flash... but my client wants a print button, that will print that dumb text...

I have a dynamic text field, text is loaded from the external text file...

it looks like this:

ActionScript Code:
onClipEvent (load) {
    loadVariables("news.txt", this);
}
onClipEvent (data) {
     _root.scrolltxt.htmlText = this.MyText;
}

and now, I have to make a button that will print the content of the text file...
I drafted this code:


ActionScript Code:
on (release) {
print(_root.scrolltxt.htmlText,"bframe");
}

but the dumb button prints the whole page... I mean with all those buttons, but it is supposed to print only the content of the dynamic text field!

would be enormously glad if someone could help me out with this...

View Replies !    View Related
Printing All Text In A Dynamic Scrollable Textfield
Hi,
I have search alot about solutions for solving the problem about trying to print all text in a dynamic Scrollable Text. There is no answer for this. So, is there a simpel way to print all the text in a dynamic scrollable textfield?

Because the text is dynamic, there is possible that the text can be 1- 100 pages.

Please help me out.
niklas@bafe.nuniklas@bafe.nu

View Replies !    View Related
Printing Dynamic Text Exceeding One Page
Hi there!

I am building a Flash site in which users can perform searches (via PHP and MySQL).
Results (html text) are displayed in html scrollable dynamic text fields and simultaneously to an off stage movie clip (see below).
Results often exceed the size of the field.

Users may want to print the results (even on more than one page if they are long texts).
For this purpose, results are also sent to a movie clip (PRINTMC) which contains:
a) a dynamic text field (printFld) in the first frame (#p) with a stop();
b) another dynamic text field (dateFld) which received the date
c) a portrait bounding box in the second frame (#b) with no stop.
To print, users click a button which code is attached (see below).
At the moment, printing results are good but incomplete when they exceed one page length.

I tried unsuccessfully to use TextField.maxScroll in several ways.

Does anybody can help ?
I thank you in advance for any advice.

Best regards,

Gerry

I f you want to test the site choose Diffusion --> Quebec in the Navigation Bar, then on the left "Toutes les librairies".
Beware of the very slow database today! Be patient...










Attach Code

on (press) {
PRINTMC.dateFld.text = new Date();
var printJob:PrintJob = new PrintJob();
if (printJob.start()) {
var numPages:Number = 0;
if (printJob.addPage(PRINTMC.printFld)) {
numPages++;
}
if (numPages > 0) {
printJob.send();
// print page(s)
}
delete printJob;
}
else {
trace("PrintJob.start() failed");
}
}

View Replies !    View Related
Printing Dynamic Text Partially Working
Hi there!

I implemented a printing function which is working nice even for multiple pages.

Problem is as follows...
Say we have a text 100 lines long.
Each page can hold 80 lines.
We should have:
Page 1 = from line 1 to line 80
Page 2 = from line 81 to line 100

Instead, I get:
Page 1 = from line 1 to line 80
Page 2 = from line 20 to line 100 !!!
i.e. lines 20 to 80 are printed twice!

I think problem is in maxScroll but can't find the mistake...
Please, help me find it!!! It's very urgent (deadline is Monday 31st, 4:00PM EDT)

Many thanks in advance.

Best regards,
Gerry










Attach Code

import mx.controls.TextArea;
var printStyles = new TextField.StyleSheet();
printStyles.setStyle("html", {fontFamily:"verdana,sans-serif", fontSize:"12", color:"#336699"});
printing = function () {
myPrintStr = _root.printFld.htmlText;
this.createEmptyMovieClip("mc2", this.getNextHighestDepth());
mc2.createClassObject(TextArea, "text2", mc2.getNextHighestDepth());
mc2._x = 910;
mc2.text2.move(1000, 0);
mc2.text2.setSize(525, 700);
mc2.text2.html = true;
mc2.text2.wordWrap = true;
mc2.text2.styleSheet = printStyles;
mc2.text2.antiAliasType = "advanced";
mc2.text2.text = myPrintStr;
PrintText(mc2.text2);
};
function PrintText(theTextarea:Object) {
theTextarea.depthChild0._alpha = 0;
var visibleRows:Number = theTextarea.viewableRows;
var maxScroll:Number = theTextarea.maxVPosition + visibleRows;
theTextarea.vSB.visible = false;
var the_pj:PrintJob = new PrintJob();
if (the_pj.start()) {
var counter:Number = 0;
if (!isNaN(maxScroll)) {
while (counter < maxScroll) {
theTextarea.vPosition = counter;
counter += visibleRows;
the_pj.addPage(theTextarea, {xMin:-25, xMax:600, yMin:-30, yMax:800}, {printAsBitmap:false});
}
}
else {
the_pj.addPage(theTextarea, {xMin:-25, xMax:600, yMin:-30, yMax:800}, {printAsBitmap:false});
}
the_pj.send();
delete the_pj;
}
theTextarea.vSB.visible = true;
}

View Replies !    View Related
Dynamic Text Printing Problem In Flash Can Anyone Help
Hi. I am having problems trying to print dynamic quiz results. I can get the entire page to print but not the dynamic content. I have included a link to where the fla is loaded....if you skip to question 7 submit an answer and then you will be to frame 70 with the output. That is the frame I am having troubles with.
Thank you Laura

http://www.awenarts.com/printFlashHelp.zip

View Replies !    View Related
Dynamic Text Printing Problem In Flash Can Anyone Help
Hi I am new to flash and I am having problems trying to print dynamic quiz results. I can get the entire page to print but not the dynamic content. I have included a link to where the fla is loaded....if you skip to question 7 submit an answer and then you will be to frame 70 with the output. That is the frame I am having troubles with.
Thank you Laura

http://www.awenarts.com/printFlashHelp.zip

View Replies !    View Related
Dynamic Text Border / Printing Problem
When I create a dynamic text field and toggle on the 'Show border around text' option. The text field looks and prints correctly.

If I embed the font in the text field, the border still shows up when the SWF is viewed, but if I print the SWF, the border does not print.

I've even tried setting the border to true in actionscript with no success when printing. Any ideas?

Thanks!

View Replies !    View Related
Printing Entire Dynamic Text Field
Anyone know how to make sure that the entire contents of a dynamic textfield print?
I'm working on a chat app and would like the textfield to print properly.

I've given the textfield an instance name, but when using "bmax," "bmovie" or "bframe" all I get is what shows on screen, nothing prints below a "masked" scroll area.

View Replies !    View Related
Printing Dynamic Text On Not Current Page
I'm currently creating a customizable multipage catalog using Flash. The problem comes when I try to print all the catalog pages (labeled "#p") The "current" page prints fine, but the pages that aren't visible print with their dynamic text fields blank. Any suggestions would be greatly appreciated... Thanks -John

View Replies !    View Related
FAILURE Printing Dynamic Text In Multi-frame Swf
I believe this to be a bug, but if one can find a work-around, I would like to hear it... I am making a 4 page catalog which utilizes dynamic text in movie clips. This displays fine, but when I print, all fields go blank for an instant and then return. The page prints fine, except with blank text fields... any suggestions???

View Replies !    View Related
Printing Dynamic Text Boxes With Scroll Bars ?
A simple request:

Is there a way to print the content ENTIRE dynamic text box that uses Scroll Bars - ie. There is more text in the box than can be seen....?

At the moment I am whistfully succeeding in printing using:

Button:
on (release) {
print("_root.text.scroller", "bmovie");
}

but this only prints the immediately visible content of the text box on screen - not that which is hidden.

It's got to be easy.

View Replies !    View Related
Printing A Dynamic Text Field, Has No Real Answer?
Man, I cannot get this thing to print! What gives?!
I have a movie clip that plays, and inside the movie clip is my dynamic scrolling text. It is on the 3rd frame. I tried this code..
on (release) {
print("text", "bmovie");
}

Where as my text field is named "text"
Im not sure if my movie clip name needs to be on the place of text or what. Any help on this issue would be great!

P.S. THERE HASNT BEEN A RESOLUTION YET, not even in the searched files.

View Replies !    View Related
[MX04] Printing All Text In A Dynamic Scrollable Textfield
Hi,
I have search alot about solutions for solving the problem about print all text in a dynamic scrollable textfield. There is no answer for this. So, is there a simpel, or any way to print all the text in a dynamic scrollable textfield? Not just the text you see on the screen.

Because the text is dynamic, there is possible that the text can be 1-100 printing pages long. So please don't tell me to resize the textfield to match textsize height.

Please help me out.

View Replies !    View Related
Printing A Movie Clip With Dynamic Text Boxes
I've got a certificate inside a movie clip, and i want the dynamic text box to dispay the user name, but for some reason it is coming up undefined, even though i have the dynamic text box set to finalname = _root.inputname, but it comes up as undefined on the screen. :( Can anyone tell me where i am going wrong?

Is there a way to print just a specific movie clip on the screen? I can only print all the frames in the movie and without the dynamic text box... any help would be greatly appreciated.

View Replies !    View Related
Printing Multiple Pages Of A Scrollable Dynamic Text Box
I've seen a number of posts in this forum and others about how to print text out of a scrollable dynamic text box. Some people have come up with solutions like making another dynamic text box off-stage that is A4-size that contains the same text as the scrollable text box. The printJob() action then uses this text box as its target and prints a nice A4 page.

But what if there is so much text, it needs more than one A4 page to print? I've been searching for answers without much luck, but I did come across this:

ActionScript Code:
on (click) {//create PrintJob objectmyPrintJob = new PrintJob();//display print dialog boxmyPrintJob.start();var maxS:Number; //total number of lines in textAreavar botS:Number; //total number of lines visible in scroll box//loop through untill i have added a page for each scroll panefor (var i = 1; botS*i<=maxS; i++) {// add specified area to print jobmyPrintJob.addPage("_root.print_txta", {xMin:-36, xMax:612, yMin:-36, yMax:792}, {printAsBitmap:false});maxS = _root.print_txta.label.maxscroll ;botS = _root.print_txta.label.bottomScroll;//manually scroll the box_root.print_txta.vPosition = botS; }// send pages from the spooler to the printermyPrintJob.send();// clean updelete myPrintJob;}

Source: http://livedocs.macromedia.com/flash...=00001640.html

This would obviously be attached to a button, and is trying to print a text box named "print_txta" at the _root level. The trouble is, it doesn't work!.

I've tried changing it around a bit, like relocating the ending } of the loop, but still cannot get it to work. All it does is print the one page over and over (luckily I was printint to Adobe PDF, so I wasn't wasting paper! I recommend you do the same if you want to test the script!) and if you have more text than will fit on one A4 page, it ignores everything past the first page!

I wonder if anyone else on this board can make more sense out of the above script and perhaps get it to actually work in the way it was supposed to? I think this would benefit a lot of people out there.

View Replies !    View Related
AN IDEA: Multiple Page Printing, Dynamic Text Field
I have been banging my head on my desk trying to figure out how to print a really long dyanmically populated text field. To complicate things, there also has to be a logo on the page.

i have decided to parse the text field, split it in the middle and then populate 2 seperate text fields in 2 seperate movie clips.

I have the printing 2 movieclip part done, but I ma not sure how to dynamically parse and split the text.

Any ideas?

View Replies !    View Related
Adding Page Break While Printing Dynamic Text Matter
Hi!
This is a bit of a tough one ...
Im trying to print the content of a large scroll pane that spans multiple pages. So far i have managed to get the contents printing out, dividing the content between the pages using the PrintJob class.
My problem now is that i want to add a header and footer (both movie clips) on each page and want to add page break like ms-word.

View Replies !    View Related
Sorting Items/Printing Multi-page Dynamic Text
ActionScript Gurus!
I've posted some threads in the Flash MX2004 section that are probably more ActionScript related. I still require some help on them, so would appreciate any you can give. Here are posts:

Sorting items
http://www.kirupa.com/forum/showthread.php?t=196981

Printing multiple pages of a scrollable dynamic text box
http://www.kirupa.com/forum/showthread.php?t=196497

View Replies !    View Related
Input Boxes - Then Printing A Frame With Dynamic Boxes With The Input Text In Them...
I have created a flash document with input text... I put the input text with a a variable for each.. I need to print the variables on a seperate page. I used a bounding box inside a movie clip and the printing is working correctly... However it is not reading my input boxes into the dynamic text boxes..

What I did is I have the input boxes on the root timeline........ You input it and go through a few frames and you get the option to print from a button (which is printing 2nd frame of a movie symbol) NOTE: the printing is working correctly using #b.... This is what I have on the 2nd frame of the movie clip for the dynamic text boxes to read the input boxes and place those variables inside of those dynamic text boxes so it will print them as they inputted them...

Here is what I have for my button:

on (press) {
print(_root.Printing, "bmovie")
}


Here is what my variables are on the input boxes which are sitting on the root timeline, each word is a variable:

curious
passionate
accountable
resourceful
commited
teamwork
open
engerizing

External_focus
Clear_thinker
Imagination_courage
Inclusive_leader
Expertise


INSIDE THE PRINTING MOVIE I HAVE A FRAME WITH THIS ACTION ON IT FOR THE DYNAMIC TEXT BOXES TO READ THE INPUT TEXT BOXES:

External_focus1 = _parent.External_focus;
Clear_thinker1 = _parent.Clear_thinker;
Imagination_courage1 = _parent.Imagination_courage;
Inclusive_leader1 = _parent.Inclusive_leader;
Expertise1 = _parent.Expertise;
curious1 = _parent.curious;
passionate1 = _parent.passionate;
accountable1 = _parent.accountable;
resourceful1 = _parent.resourceful;
commited1 = _parent.commited;
teamwork1 = _parent.teamwork;
open1 = _parent.open;
engerizing1 = _parent.engerizing;


FOR SOME REASON IT IS NOT PRINTING MY INPUT BOX INFORMATION IN THE DYNAMIC TEXT BOXES.... DOES ANYONE KNOW WHY?

View Replies !    View Related
Dynamic Printing
How do I get all of the text in a scrollable dynamic text box to print.

Currently i have a print button with the following code:
ActionScript Code:
on (release) {
    var myPrintJob:PrintJob = new PrintJob();
    var result:Boolean = myPrintJob.start();
    if (result) {
        myPrintJob.addPage("txt");
        myPrintJob.send();
        delete myPrintJob;
    } else {
        //No printer, or canceled print
    }
}

The problem is that it only prints the text that is visible to the user instead of ALL of the text.

View Replies !    View Related
Copyright © 2005-08 www.BigResource.com, All rights reserved