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




Printing Contents Of TextField



Is there any way to print the contents of a textfield or string using the pring command in AS?



KirupaForum > Flash > ActionScript 1.0/2.0
Posted on: 03-16-2004, 07:08 PM


View Complete Forum Thread with Replies

See Related Forum Messages: Follow the Links Below to View Complete Thread

Printing Contents Of TextField
Is there any way to print the contents of a textfield or string using the pring command in AS?

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...

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 Contents Of Datagrid
Hi,

does anyone know if/how it is possible to print the contents of a datagrid component.

Thanks
Robin.

[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 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 Dynamic Contents In Multiple Pages
Is there any solution for printing multiple pages which contains dynamic content.

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?

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

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!!!!

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..)

Printing Dynamic Textfield Content
There have been some topics with this title but none of them seems to solve the problem of printing the dynamic text content which is by the way also a scrollable text. I manage to print only what is seen but not the whole text.

Is there anyone who could help. I am attaching my fla which is used only for testing purposes.

Thank you in advance

http://www.galahala.com/print2.zip

Printing XML In Textfield In List Not Line
ve got my content to print into my text field with no XML using text();
But, it always prints in one long line. How can I tell it to line break after it prints each node?

This is basically my code right now


Code:
function ParseClients(clientInput:XML):void {

//trace("XML Output");
//trace("------------------------");
//trace(clientInput.Client.Automotive);

var clientAttributes:XMLList = clientInput.Client.attributes();

for each (var clientIndustry:XML in clientAttributes) {

clientXML.field_01.text = clientIndustry;
clientXML.field_02.text = clientInput.Client.attributes()[1];

clientXML.clientfield_01.text = clientInput.Client.children().text();

}



}

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..)

Images Embedded Within Dynamic TextField Not Printing
Not sure if there's already a thread on this, but my issue is that images that are embedded within a dynamic textfield via XML are not showing up when I try to print using PrintJob. The images are showing up properly within the textfield on the screen, but not in the print preview (and of course not in the final print).

The print functionality is fairly straight forward, I have a MovieClip that contains one dynamic textfield. The textfield is populated by XML and CSS files.

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.

Hide Contents Of Swf? Is There Any Way Of Hiding The Contents Of My Main Swf?
When my main swf site is loaded in a browser, is there any way of hiding the contents of my swf from users? Right now, anyone can just go to the 'activity' window and download any of my pictures, scripts, etc....and i don't like that.
Thanks,
Dave

Need An Explicit Printing Tutorial For Flash 5 Or An Expert On Printing...
Been trying to print for a couple of hours now.
It seems to work fine when I use simple objet on the main timeline, but I get weird result when trying to print nested object.

For example, it got a movie clip containing multiple duplicate mc, and a dynamic text field. This movie clip is out of the movie stage.

When I try to print it it using:

printAsBitmap(this.effective.printArea, "bMovie");

nothing get printed.

so I move the movie on the stage.

this.effective._x = 0;
this.effective._y = 0;
printAsBitmap(this.effective.printArea, "bMovie");

the frame gets printed, but the text is out of phase even if it looks fine on the screen.

I have define the label of the frame I want to print with #p and the printing area with #b.

Why can I print my movie if it's off the stage, and why does the dynamic text field is printed out of phase when I tried to print ?

----------------------------------

At least can someone direct me to a good flash 5 tutorial on printing...

Martin
martin.tremblay37@sympatico.ca

Flash Printing - Trouble Printing Bitmap
Hello,

I have a Flash MX (not 2004) project that generates dynamic printable coupons. Here's the lowdown of what happens:

1. The flash coupon is loaded - dynamically loads in text and an external jpeg. This data is displayed in one frame that the user sees on the screen, and in another frame that the user never sees but is sent to the printer.
2. User presses print.
3. The flash movie sends the 'print this' frame to the printer, and voila! Printed coupon!

Here's a sample link: http://givingcorps.com/gc_central/br...&CoId=2&ChId=4

All works well, but when it comes time to print the coupon, everything prints but the jpeg. In fact, after you hit the 'print' button and the print dialogue box comes up, and you begin to print, you can actually see the jpeg vanish from the flash movie, only to return when print dialog box is finished!

I've tried a variety of tests - printing just the current frame, incorporating a test to make sure the image is loaded before allowing printing, and trying all the different print functions. I'm aware that print() only prints vector while printAsBitmap() will print everything, although with less quality, and I'm currently using printAsBitmap().

Has anybody run into this? Is there any solution or anything I'm overlooking?

Thanks for your help.

Printing Flash Player 7 Printing
hi,
i want to set up a flash site with multiple levels and have all levels print. is this possible? i've printed before out of flash playere 7 but was only able to print out of one level. any insights would be appreciated.
muchas gracias,
lavadome

Printing In Flash. Problem With Printing Twice...
I have an all vector form that displays data within it. As soon as it opens, it prints. I am running this in the first frame of the root time line.

Code:
print(_level0, "bmax");
stop();
The timeline is 2 frames and I am wanting to print both pages. Everything works fine expect after the print dialog box pops up and you hit print, then it prints the 2 frames, it pops up again and wants to print the pages one more time. I only want it to print once. Any ideas?

Loading Text & JPG Nito TextField Makes Textfield White
Hi guys !

Does anyone know, why a textfield may become white when loading text + JPGs into it? Sometimes it happens to me, sometimes not. I haven't figured out why.

If you have any clues... I'd be really thankful

The AS I'm using:

_target.container.t.html = true
_target.container.t.condenseWhite = true
_target.container.t.autoSize = "left";
_target.container.t.htmlText = _data.texto

The String ( &HTML ):

"Text lorem ipsum bla bla ..... <img style='WIDTH: 154px; HEIGHT: 59px' height='298' width='856' alt='' src='http://www.spacilong.com/arq/img/AlcatelLucent_Hor_2col_sm.jpg' />

Textfield Woes, How To Anti-Alias A Dynamic Textfield?
this is driving me nuts, even if i have it marked so that my dynamic textfield is anti aliased, it still looks as if its text is aliased. And if i simply make that textfield Static, the text all of a sudden looks amazingly crisp and anti aliased.

How can i fix this?! I am attempting to load xml data into my text fields but its wasted if the text looks like crap..

So can anyone enlighten me on how to do this? i tried searching Flashs help, all i came out with was "Textfield._quality" but i do not understand what the description means exactly.. And i tried coding my textfield to _quality = "BEST";, with no avail.

Please help, i'v seen other websites with what i am sure is dynamically loaded fields, and smooth looking text... so what gives?

Thanks!

[textfield] How To Check If Input Text Is More Than Textfield Height?
Hi guys, Is there a way to check if the text that has been input into the textfield is more than the height of the textfield.

I have set the scrollbar hidden and it will become unhidden once the text is greater the the textfield height.

I did try to count the input text and set the visiblity of the scrollbar against that count. Unfortunatly this is unreliable.

Anyone got a better idea?

Cheers
Paul

[textfield] How To Check If Input Text Is More Than Textfield Height?
Hi guys, Is there a way to check if the text that has been input into the textfield is more than the height of the textfield.

I have set the scrollbar hidden and it will become unhidden once the text is greater the the textfield height.

I did try to count the input text and set the visiblity of the scrollbar against that count. Unfortunatly this is unreliable.

Anyone got a better idea?

Cheers
Paul

Copyright © 2005-08 www.BigResource.com, All rights reserved