Printing Hidden Contents Of Scrollable Textfield
Hey guys, Do you have any idea as to how to print the text inside a dyanamic textfield. now the problem is that the textbox is say 100/100 pixels and has a scrollbar attached to it and is set to multiline. Now is there a way to print all the text of the dynamic textfield.
Please respond ASAP...
FlashKit > Flash Help > Flash MX
Posted on: 06-20-2002, 05:11 AM
View Complete Forum Thread with Replies
See Related Forum Messages: Follow the Links Below to View Complete Thread
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
[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.
Vector Printing Of TextField. Part Of TextField Not Printing.
Hi, I hope somebody here can help me.
I have a movieclip with a dynamic textField in it.
I set autoSize = "center" and fill it with text.
Then, if i then use PrintJob.addPage("myPage", {printAsBitmap:false}); , the bottom few lines of the textfield don't print. (The textField shows up fine on the screen.)
The textField shows up fine if I use {printAsBitmap:false}, allbeit in lower quality.
If anyone can make a dynamic textField print properly as vector, please lemme know.
thx,
miguel3d
Printing A Hidden Layer
Hi,
I am in need of a script which can print a pre-defined mc on click.
Please advice.
Thanks.
[F8] Printing ContentPane Contents?
I did a search and I can't believe that this has not had extensive solutions.
Any ways...
How do you print the loaded content (swf, mc or jpg) of a ContentPane in Flash 8??
I know you can use the #p on a regular mc. But, how would I write the syntax to read a loaded swf or mc inside the content pane?
FYI... I realy need this solution because I am developing a web application.
Thanks
Printing Library Contents
I have some large fla-files that contain a lot of drawings I made with flash.
A publisher is interested in thes drawings
I've send them in the fla-format, but he wants a print(thumbnail or other off them)
Is there a way to generate such a catalog or to export all the items to a graphic file so I can catalog them with oter software like acdsee
Printing The Contents Of A Dynamic Box
Dear Flash users,
Does anyone knows how to code the actionscript that prints out
the contents in a dynamic textbox (instance name:scroller). The
contents are loaded externally from a text file onto a movie clip
(instance name: placeholder).
I've been trying to use the following code:
Code:
btnPrint1.onRelease = function() {
print("_root.placeHolder", "bframe");
};
But it just capture and print the visible area of the movie, and
did not print the complete text inside the dynamic box.
I want to print out only all the text in that dynamic box.
Can anyone please help me with this?
Thanks a million...
Printing The Contents Of A Dynamic Box
Dear Flash users,
Does anyone knows how to code the actionscript that prints out
the contents in a dynamic textbox (instance name:scroller). The
contents are loaded externally from a text file onto a movie clip
(instance name: placeholder).
I've been trying to use the following code:
Code:
btnPrint1.onRelease = function() {
print("_root.placeHolder", "bframe");
};
But it just capture and print the visible area of the movie, and
did not print the complete text inside the dynamic box.
I want to print out only all the text in that dynamic box.
Can anyone please help me with this?
Thanks a million...
Printing Listbox Contents
trying to print ony the content of a list box to a printer.
I've go the concept down
move the contents to an empty clip and print the clip.
I'm using:
_root.mcPrinter.txtOut.text = contactListBox_lb.getItemAt(1).label;
where contactlistbox_lb is the listbox content I want to print.
the above code will print the info at item item "1"
I want to print it all, reguadless of how many items.
Printing The Contents Of A Scrollpane
I'm using duplicate MC and xml to load data into a scrollpane.
But now I want to be able to print the contents of the scrollpane. But no matter what I try all that seems to print is what is visible on screen.
I was wondering has anyone tried this and found a solution or a suggestion on how best to achieve this.
Thanks
Brian...
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();
};
Printing A Scrollable Text Field
I'm trying to print the contents of a scrollable text field. Why after all these years this is such an impossible task in Flash is beyond me. But maybe I'm overlooking something?
Right now I have two text fields. One for display and one for printing that is hidden from the user and is roughly the size of A4 paper. The content of the print text field is scrolled as many times as is necessary and each time is added to a print page.
The function looks like this:
function printText(e:MouseEvent):void {
var printer:PrintJob = new PrintJob();
if (printer.start()) {
txtPrint.scrollV = 1;
var intMaxScrollV:int = txtPrint.maxScrollV;
var intNumLines:int = txtPrint.numLines;
var intNumPages:int = intNumLines / intMaxScrollV;
var sheet:Sprite = new Sprite();
sheet.addChild(txtPrint);
for (var i:int = 1; i <= intNumPages; i++) {
printer.addPage(sheet);
txtPrint.scrollV = txtPrint.bottomScrollV + 1;
}
printer.send();
}
}
Unforntunately this is not very reliable because the size of the print text field does not correspond exactly to the size of the A4 paper and of course the print margins set by the user can differ as well. This results in an overlap of text between the different pages coming out of the printer.
Please, please tell me I'm overlooking something?
Printing A Scrollable Text Field
I am stuck on something and hopefully one of you can help. 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.
Thanks
--aaronmatthew
P.S. This is a CD-ROM app and can't be posted.
Printing A Scrollable Text Field
I am stuck on something and hopefully one of you can help. 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.
Thanks
--aaronmatthew
P.S. This is a CD-ROM app and can't be posted.
Printing A Scrollable Text Field
I am stuck on something and hopefully one of you can help. 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.
Thanks
--aaronmatthew
P.S. This is a CD-ROM app and can't be posted.
Printing Contents Of Actions Panels
Hi there,
Is there any way I can control the text size and wrap when I print the contents of an actions panel? Presently all I get is what looks like 24-pt Geneva with no wrap, which is obviously unacceptable for any paper size smaller than 2 by 3 feet. I've tried using a lower text size within the panel, as well as played with the percentages in the Page Setup box. All to no avail. Any hints? I'm on a Mac, if it makes a difference . . .
Thanks!
Printing Contents Of List Or Tree UI Component
I have an accordion component that contains 3 list components and 2 tree components...there are all the components from the flash library of components...and I need to print the contents of these 5 "lists"
For now I'm concentrating on the lists...then I will worry about how to print the trees with all the nodes expanded...but I can't seem to figure out how to determine how many items are in a list...for the lists I am not using dataProvider so I'm kinda lost here...any ideas?
Printing Contents Of List Or Tree UI Component
I have an accordion component that contains 3 list components and 2 tree components...there are all the components from the flash library of components...and I need to print the contents of these 5 "lists"
For now I'm concentrating on the lists...then I will worry about how to print the trees with all the nodes expanded...but I can't seem to figure out how to determine how many items are in a list...for the lists I am not using dataProvider so I'm kinda lost here...any ideas?
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.
TextField Always Scrollable
I have a multi-line dynamic textField that DOES NOT have selection enabled. also it is autosized by TextFieldAutoSize.LEFT.
everything works fine, but whenever you mouseOver it and use the mouse's wheel, the textField moves down one line. it is extremely annoying. ive tried adding 30 pixels to the height after the text has been added and also adding an event listener MouseEvent.MOUSE_WHEEL to capture that event and do something else. (im guessing the listener concept doesnt work in AS3, thought it did in AS2) neither worked.
Links In Scrollable Textfield
need help with actionscript stuff.
i've got a textfield and need to define some links in this textfield.
how do i define a simple word as a hyperlink in a whole text??
hopa som1 can help
greetz
spacecube
How Do I Add A Scrollbar To My Scrollable Textfield
Hi,
I am building a website and currently I have made a dynamic text box which allows me to load a text variable into it and therefore it becomes scollable.
What I would like to know is how can I add a scollbar to it. Adding up and down buttons are easy. I would like to have a scollbar instead and not sure of all the code needed.
If someone has a simple text field example with a scrollbar they could send me I would be most greatful. Please email it to me ratehr then posting it here as I cant seem to get dopwnloads from here to work.
Or if someone can explain how to add a scrollbar to a textfield and what code to use. I know people are going to say just use the scrollbar component but I am building other things and using actionscript so I would like to know how it is done.
email is pixelmagikau@yahoo.com.au
Cheers
email address is
Making Textfield Scrollable
Hey, question..
Ive been trying to figure this out for about 20/30 minutes and Ive had enough of it. Im trying to make a textfield scrollable (up and down) kind of like a "News Post" type of thing. They can scroll down to see the old news, while the new news is on top. Any ideas on how to make this will be highly appreciated.
Thanks,
Oblique
Update Textfield Contents
hey all,
i've got a textfield i want to change the contents of by clicking on buttons. theoretically, all my content will be stored in an xml file or text file, and will be read out into variables. those variables represent the content which should change in my textfields. i've tried things like TextField.text = "whatever", TextField.text = variableName, TextField.replaceSel(variableName), TextField.replaceSel("text"), sheesh, nothing is working and, i admit, this could be due to the fact that im not especially proficient with flash to begin with.
i know that naming textfields corresponding to variables assigns the variable content(text) to the textfield. but, i want to be able to change that text on the fly.
any help would be appreciated.
thanks,
-carlos
Print Contents Of A Textfield
Hello,
I'd like to print the contents of a textField from flash. I printed frames, and the entire movie, but all I'd like to do is print the text fields contents. (even the stuff that the user would need to scroll to see.)
Is there a way to do this?
thanks,
-J
Textfield Contents Disappear
I cant figure it out! What did I do! I published my movie and now all my text fields go blank. And I can't edit them, or code text into them. They arent under masks, and even have thier fonts embeded, and some are directly on the stage. Why is this happening? Below is a link to my .fla if you can help Please do! Thanks!
www.chasebrammer.com/files/summitView.fla
Print TextField Contents
Hi
I am trying to build a button that i can use to print the contents of a textField. My books only give advice on printing a frame - does anybody know how to do it?
bb
How Do I Delete Contents Of A TextField?
I have one textField - centre stage preloaded with createTextField - I am loading text into it from separate XML files each time a series of buttons are clicked.
Sometimes the text comes up 'undefined' (only when online). Are all these text files loading into one field piling up and confusing the Flash Player? Do I need to delete the contents before loading the next block of text? If so, how is this done?
Thanks
Charles
How To Print The Content Of A Scrollable TextField
I can use the printJob object to print the MC that contains my dynamic textfield.
The problem is it will only print what's visable the the scroll area at the time of print. I need it to print the entire contents of the scrolling text field.
Adjusting Dynamic Textfield, To Fit Its Contents
I have a dynamic textfield "name" that is inside an mc on the main stage. This textbox gets changed by a variable being updated on a ClipEvent in another mc. How can I have the "name" text shrink and grow to the width of the contents?
Copy Textfield Contents To Clipboard
Another wacky request...
Is there a way using ActionScript to copy a textfield contents-i.e. via a button click event- to the Windows clipboard? Or in othr words programmatically copy a textfield to the Windows clipboard?
Or more direct, I would like to save a textfield directly to the users hard drive as a .txt file. However, this feature(fscommand) has been removed due to security reasons- I'm told from FlashMX.
In reading the definiative Guide I'm unclear if "copy a filed to clipboard" in possible in FlashMX using the Selection Object.
I'm trying to avoid buying a third party app that could do this, however i'm open to suggestions for apps or extensions.
Thanks - This group rocks!!!
Ike
Attaching Action To TextField Contents
My question here is how can I attach a say - a getURL action to the word "Available"....
Code:
box.displayAvail = function(time){
box.createTextField("signUpLink", 0, 0, 50, 100, 45);
nameField.text = "Available";
Much Thanks for your advice!!!!
[F8] Dynamic TextField - Text Selectable, But Not Scrollable?
Is it possible to have a dynamic text field where the text is selectable but not scrollable?
i have a textfield that isn't displaying its full contents. if someone selects the text and moves the mouse downward, they see more content. i don't want that to happen, but i like the idea of them being able to copy the text.
Printing A TextField
hello :p Me again,
Posting separate messages for each of them problems.
Does anyone know how one can specifically print a dynamic text field, is there a suitable print command which does that. Or, can i have an external text file and print that file(?)
I think flash only offers options to print frames, but the text in the dynamic text field is scrollable and i want to print the entire text with one command.
Thank you.
Abhay
Printing A TextField
hello :p Me again,
Posting separate messages for each of them problems.
Does anyone know how one can specifically print a dynamic text field, is there a suitable print command which does that. Or, can i have an external text file and print that file(?)
I think flash only offers options to print frames, but the text in the dynamic text field is scrollable and i want to print the entire text with one command.
Thank you.
Abhay
Printing A Scrolling Textfield
I've tried targeting the textfield var like so:
on (release) {
printAsBitmap("_root.fader1.containerMC.daTextBox" , "bmovie");
}
but all it does is print out the clip containing it, which is not showing all the text
Any ideas?
Somebody has suggested copying the contents into a new text field which woud be taller than the actual movie, does anybody know how to do this dynamicaly.
Also I am pulling the text in from an html formatted .txt file
cheers
j
Printing A Scrolling Textfield
I need to print a textfield from Flash. I have a multiple choice quiz where the questions and answer choices are loaded from an XML document. The questions are displayed one and a time while the user is going through the quiz, and then at the end a textfield displays all of the questions and answers, as well as which answers are correct and what the user's choice was. Works just fine onscreen, but when I try to print (using a button within the .swf, not using the print option in the browser) the text gets scaled to all fit on one page.
I'm using Flash MX, and the printing code on the print button is:
print("_root.printMe_mc", "bframe");
where printMe_mc is the movieClip containing the textfield, which has one frame with the #p label where the textfield is displayed in its entirety (not scrolling, just one long field).
Printing occurs, the only problem is the scaling of the text. How do you tell Flash not to scale the text, but to print to multiple pages if necessary?
I've tried using "bmax" and "bmovie" for the bounding box parameter, with the same results -- everything scaled to fit on one page.
Do I need to determine how many lines per page I want to print and manually parse through the textfield, dividing it up into "page size" chunks and display those chunks in separate movieclips, created on the fly (maybe?)and then print those?
Any tips, tricks, clues, or brilliant ideas would be greatly appreciated!
Thanks,
Cindy
Printing Textfield Target Instead Of MC
I don't have a printer at home so I can't test this.
I have a client with a scrolling textbox, they want the text in the box to print.
The print function, as I understand prints whatever's in the frame, within the specified bounding box.
If for a target I give it a variable containing text instead of a MC reference, will it just print the text?
Printing A Dynamic TextField
I have a dynamic text field with a UIScrollbar. I am have problems with printing the content of the textField. If I set the print function to print the textField I get the following error -
TypeError: Error #1034: Type Coercion failed: cannot convert flash.text:
Any help would be welcome
Printing A Dynamic TextField
I have a dynamic text field with a UIScrollbar. I am have problems with printing the content of the textField. If I set the print function to print the textField I get the following error -
TypeError: Error #1034: Type Coercion failed: cannot convert flash.text:
Any help would be welcome
Printing A Dynamic TextField
I have a dynamic text field with a UIScrollbar. I am have problems with printing the content of the textField. If I set the print function to print the textField I get the following error -
TypeError: Error #1034: Type Coercion failed: cannot convert flash.text:
Any help would be welcome
Printing A Dynamic TextField
I have a dynamic text field with a UIScrollbar. I am have problems with printing the content of the textField. If I set the print function to print the textField I get the following error -
TypeError: Error #1034: Type Coercion failed: cannot convert flash.text:
Any help would be welcome
Printing A Movie Clip And Textfield?
I have loaded an swf as a variable in a movie clip. This is how:
pic1 = mov1.swf
loadMovie (/ic1, "lp1");
Now I want to print this movie clip which is actually the swf 'mov1'. I have used both print and printasBitmap options, but none works. All I am getting is black lines when using print option and blank page when using printasBitmap option. I am using the following code to print:
on (release) {
printAsBitmap ("lp1", "bmovie");
}
I have taken a second frame in movie lp1 whose label is #b and there I have drawn a rectangle which I believe would be taken as the bounding box for the movie to be printed. Isnt this right??
Could anyone tell me what the problem might be??
Also theres another textfield on the same frame as the movie clip which i want printed, is there a way??
Error Printing TextField With BevelFilter.
Hi,
I have a movie clip with a TextField that has a BevelFilter. When I run my movie everything is OK, but when I use the PrintJob to
send it to the printer it seems the textfield has lost filter properties. In the page printed by the printer has the textfield without the BevelFilter. Why????? Could anyone help me???
I need to solve this problem as soon as possible.
Thanks for everything.
Dynamic Textfield Printing And Linking
I have a dynamic textfield which i fill with HTML-text from an XML-file. This exceeds one page, and I would like to print it on several pages. How can I do this, when I use printjob.start it only prints one page...? And is it possible to track a word that is clicked? (to use as a link to other pages..)
|