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




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



Adobe > ActionScript 3
Posted on: 10/24/2008 09:19:44 AM


View Complete Forum Thread with Replies

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

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

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

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.

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 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 Contents Of TextField
Is there any way to print the contents of a textfield or string using the pring command in AS?

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

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.

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();

}



}

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

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!

Link In Dynamic Textfield To Jump To Section Of Same Textfield
Howdy all,

I know you've all seen this before - you are on a website and you click a link and you stay on the same page but jump down to a different section of the page. Like an FAQ page or something where all the questions are listed above but you click on one and jumps down to the answer below.

Is it possible to do this in a dynamic (scrollable) textfield with externally loaded text files in Flash? I don't have DW and I know that there are limited html tags available but if anyone knows an easy way to do this please let me know!

thanks!

Link In Dynamic Textfield To Jump To Section Of Same Textfield
Howdy all,

I know you've all seen this before - you are on a website and you click a link and you stay on the same page but jump down to a different section of the page. Like an FAQ page or something where all the questions are listed above but you click on one and jumps down to the answer below.

Is it possible to do this in a dynamic (scrollable) textfield with externally loaded text files in Flash? I don't have DW and I know that there are limited html tags available but if anyone knows an easy way to do this please let me know!

thanks!

Masking Dynamic Textfield When The Textfield Has A Stylesheet
ok... i have a movieClip containing dynamic textfields, which i'm trying to mask. the textfields are linked to a stylesheet. i understand that, for the masking to work, i have to embed the font. so i've placed the font in the library, given it a linkage name and set embedFonts = true for the dynamic textfields.

what do i do next? and does the fact that i'm embeding the font override the effect of the stylesheet?

(sorry if i sound confused over this. that's because i am.)

thanks in advance for any help

[F8] Input Textfield Inside A Dynamic Textfield?
Hi,

Is it possible to place an input textfield inside a dynamic textfield?

I'd like to replace the variable, this.nTotal, below with an input textfield.
Is there some way to do this?

this.txtComplete.text = "There are " + this.nTotal + " pages in " + this.sGirlName + "'s book.";

Thanks!

Masking Dynamic Textfield When The Textfield Has A Stylesheet
ok... i have a movieClip containing dynamic textfields, which i'm trying to mask. the textfields are linked to a stylesheet. i understand that, for the masking to work, i have to embed the font. so i've placed the font in the library, given it a linkage name and set embedFonts = true for the dynamic textfields.

what do i do next? and does the fact that i'm embeding the font override the effect of the stylesheet?

(sorry if i sound confused over this. that's because i am.)

thanks in advance for any help


||| O ^ | + O ¬

Masking Dynamic Textfield When The Textfield Has A Stylesheet
ok... i have a movieClip containing dynamic textfields, which i'm trying to mask. the textfields are linked to a stylesheet. i understand that, for the masking to work, i have to embed the font. so i've placed the font in the library, given it a linkage name and set embedFonts = true for the dynamic textfields.

what do i do next? and does the fact that i'm embeding the font override the effect of the stylesheet?

(sorry if i sound confused over this. that's because i am.)

thanks in advance for any help


||| O ^ | + O ¬

Masking Dynamic Textfield When The Textfield Has A Stylesheet
ok... i have a movieClip containing dynamic textfields, which i'm trying to mask. the textfields are linked to a stylesheet. i understand that, for the masking to work, i have to embed the font. so i've placed the font in the library, given it a linkage name and set embedFonts = true for the dynamic textfields.

what do i do next? and does the fact that i'm embeding the font override the effect of the stylesheet?

(sorry if i sound confused over this. that's because i am.)

thanks in advance for any help


||| O ^ | + O ¬

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.

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

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

Downloading And Printing A Dynamic JPG
I started an earlier thread about dynamically loading a JPEG into an mc named 'holder'. I have this done now but need to do more with it once it is loaded. Firstly the user will need to be able to download the image by clicking on a button. The finished movie is to go onto a CD-ROM and so the user will need to be able to do this within a self-contained Flash Player and not a browser.

Is this possible? If so what code do I need to use? If not can it be done if the movie is played in a browser?

Secondly, the JPGs that are loaded into the mc need to be printed by the user. I have set it up so that when a button is clicked the image prints. The JPGs will vary in size and we want them to print at their actual size. The problem at present is that when the user presses the Print button, the JPG prints resized to fit the A4 paper.

On the Print button I have this code:

------------------------------------------------
on (release) {
printAsBitmap("holder", "bmovie");
}
------------------------------------------------

Within the holder mc there are 2 layers. The first layer has one frame with a stop action and a label "#p". The second layer has 2 frames, the first is empty and the second has a label "#b" and a bounding box box drawn in it. I have tried playing around with different settings, but can't get it right. How do I allow the user to print the JPEGs at their actual size?

TIA,

Adrian

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

Dynamic Image Printing
I have a template which loads various dynamic data ... including an image, the image being the heaviest part loads last ... is there anyway i can trap when the image is loaded & open the print dialog box

Printing Dynamic Content
I was wondering how I could do this. I have a stage onto which the user can drag icons and add info, the number of icons they can drag and the amount of info they can write is infinite.

Now I want to be able to print a summary of that information ie take all that info put it in another place where the user can view it and print it.

I guess I will need some kind of dynamic text building thingie to build the summary, but how would one go about printing it, when you can't say the extent of what you need to print.

is there a way or am I better off using an external app to get the variables out of flash? (its not web based though!)

Printing Dynamic Content
I was wondering how I could do this. I have a stage onto which the user can drag icons and add info, the number of icons they can drag and the amount of info they can write is infinite.

Now I want to be able to print a summary of that information ie take all that info put it in another place where the user can view it and print it.

I guess I will need some kind of dynamic text building thingie to build the summary, but how would one go about printing it, when you can't say the extent of what you need to print.

is there a way or am I better off using an external app to get the variables out of flash? (its not web based though!)

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

Printing Dynamic Textfields?
Hi

I am workong on an app that parses in XML data in 6 languages. I need to be able to print out portions of this data. As I don't know the number of pages to print out, because this will vary from user to user and language to language, I am testing ways of achieving the printout. I have a few issues so far:

1) How can I add dynamic #p markers?
I don't think this is possible, I have tried attaching MCs with a #p marker embedded but I only want one print dialog box coming up for the user. I am using the printasbitmap(movie,"bmovie") command and can only target one MC.

2) How can I measure page overlap?
I have autosize textfields that I am populating from the XML, however I can't work out how to obtain the 'chunk' of data that I will need to be moved to the next page. Because of the multilingual aspect I can't rely on character counts. I will need to determine exactly how many lines I can fit on each page. I have experimented with textfield heights, but this doesn't give me a way of targeting the data to move to the next page.


Any help would be greatly appreciated.
Thanks
Wayne

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?

Printing A Frame In A Dynamic MC
Hi,
Is there any way to print a any frame in a movie clip without specifying #p. please get back to me its urgent..... or is it possible to print a flash object from javascript... !!!!!!!!!!!

Desperately waiting
Venkat

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.

Printing A Dynamic Picture
Hi all.

Im currently working on some games for children in MX and would like to know how to add a print function to the images they create on the page.

The game is a silly 'change the bits' of the animal, with 3 buttons changing the head, tail, and legs on a templated body to come up with a silly final product.

There are 10 options for each button and so, numerous final pet possibilities.

Id like to add the ability for the site visitor to print out the final product but havent got the faintest clue how.

Id really appreciate any help. Ive attached the actual .fla itself.

Thanks to anyone that can help.
Paul

Printing Dynamic MC In Scrollbar
Hello all,

I'm having serious issues trying to print an MC I have in Flash. I've tried various methods, but nothing works so far, hopefully somebody has done this or knows where I can find information on how to do it. So here's my dilemma...

I have an MC that scrolls. The MC has dynamic content in it that gets passed from the submit button on the previous frame. The mask that allows the MC to scroll is set dynamically by the scrollbar.

It seems as though I am throwing every issue you can at Flash in order to print. I've thought of not making the MC scrollable and putting in on a different layer, then printing that MC. However, since there is dynamic content, the print button isn't passing the variables to the MC.

I've thought of printing the MC inside the scrollbar, but since the mask is set dynamically, it just prints out white pages.

I've thought of doing away with the dynamic mask, but then the dynamic array under the mask doesn't display.

I am at my wits end and would be eternally thankful of anyone that could help out or point me in the right direction.

As a matter of fact, I could probably pay someone to do it.

Thank you all in advance.

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

Downloading And Printing A Dynamic JPG
I started an earlier thread about dynamically loading a JPEG into an mc named 'holder'. I have this done now but need to do more with it once it is loaded. Firstly the user will need to be able to download the image by clicking on a button. The finished movie is to go onto a CD-ROM and so the user will need to be able to do this within a self-contained Flash Player and not a browser.

Is this possible? If so what code do I need to use? If not can it be done if the movie is played in a browser?

Secondly, the JPGs that are loaded into the mc need to be printed by the user. I have set it up so that when a button is clicked the image prints. The JPGs will vary in size and we want them to print at their actual size. The problem at present is that when the user presses the Print button, the JPG prints resized to fit the A4 paper.

On the Print button I have this code:

PHP Code:



on (release) {
    printAsBitmap("holder", "bmovie");





Within the holder mc there are 2 layers. The first layer has one frame with a stop action and a label "#p". The second layer has 2 frames, the first is empty and the second has a label "#b" and a bounding box box drawn in it. I have tried playing around with different settings, but can't get it right. How do I allow the user to print the JPEGs at their actual size?

TIA,

Adrian

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

Printing From A Dynamic Textbox
Hello all. I'm just trying to print the contents of a dynamic text box... I want to bind it to a button, so a user can click a button, and upon release, it prints to the machines default printer without asking for anything else, only the contents of a dynamic text box.. is this possible?

Printing Dynamic Content
I have an AS2 project where I need to print the contents of a movie clip. With the clip content contained within the SWF the printing worked perfectly. Then it was decided the content should be dynamic - so now the content uses MovieClipLoader - everything else still works as it should. However, from Flash, the browser, and an .exe all I get is a blank page when printing now. I am running player version 10.0.12.36. Not sure what else to try... anyone have any ideas?

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