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
KirupaForum > Flash > ActionScript 1.0/2.0
Posted on: 06-12-2005, 12:48 PM
View Complete Forum Thread with Replies
See Related Forum Messages: Follow the Links Below to View Complete Thread
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 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?
Printing Dynamic Content
Hi everyone, i have been working on this application which loads a lot of external swf files, scales them and then i needed user to print each swf on a separate page. To do this, i created a new movieclip and created blank keyframes in it and on every frame i wrote "loadmovie" command to load these swf files.
Everything worked fine until i got to printing. I had used printjobclass to create a job and print pages/frames as per user selection. But no matter what i do it only prints one page, the last frame of that movieclip. Code is as below :
var pj = new PrintJob();
var success = pj.start();
if(success)
{
for(var i=1;i<=mpages;i++)
{
pj.addPage("mc_print",{xMin:0,xMax:612,yMin:0,yMax :792},{printAsBitmap:false},i);
}
pj.send();
}
delete pj;
I was just wondering if any of you guys have worked on something similar encountered the same issue and found a way to get it working.
Any help on this is highly appreciated.
rohit
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 Clip Of Dynamic Content...
I've got an array of objects... think shopping cart...
I'm able to aggregate all of the items into a single clip for display on screen... think "view basket contents". This works fine.
But I cannot get it to print.
What happens is the clip prints just fine except none of my "items" show up... just an empty cart. They're in the clip... I can see them on screen, but they don't print.
The print function seems to print the clip in its "frame 1" state and none of the dynamic content shows up.
Anyone got any ideas?
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..)
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 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...
Trouble Printing Dynamic Content In Flash 8
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
Edited: 05/30/2007 at 10:48:16 PM by lauratritz
Problems Printing Dynamic Content In Flash
I am having problems trying to print quiz results. 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.
http://www.awenarts.com/printFlashHelp.zip
Laura
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
Dynamic Textfield-height And Content
I'm working on a webiste, and I'm creating textboxes with scrollbars. To make the scrollbars, I need to determine the height of the textfield I create. The textfields will load in text from a variable, so how do I now what height to set on the dynamic textfields.
thanks
How To Load Content In Text File Into Dynamic Textfield?
I try to use the loadVariable() method to know the data into the dynamic textfield, but I fail. I put the text file in the same directory as the movie. In fact I am not quite sure what the exact format of the data in the text file should be. In my text file I write:
myText.htmlText = "hello <b>world</b>!"
And my code is:
loadVariables("text.txt", "myText.htmlText");
Can anyone tell me what is the correct method of using the loadVariables() method?
Thanks a lot.
Auto Scroll For Dynamic Textfield Content Loaded From XML ?
Hi, I´m using this code for typewriter effect of external loaded text into dynamic textfield. http://www.actionscript.org/forums/s....php3?t=105852
I would like to add script with function of auto scrolling when the text reaches bottom of the text field . But how, I am not a programmer and have basic understanding of action script only
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 Content Of Scrollpane
Hi,
I have not found the relevant info in trying to print the content of a scrollpane. There is a JPEG converted into a clip. I have tried to use the #p on the frame I want to be printed, then I have placed a button on the main timeline targeting the "bmovie". when I print, I get an image of the interface and my scroll pane ..... How do u only print the content of the ScrollPane?
Many thanks,
Luke
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 Scroller Content - Flash 5
I have a swf movie that has many buttons. Each button calls another swf into a level, each swf called into a level has a scroller that scrolls text. I have a button in the scroller that the user can click on to print the text. I was wondering how I can make this process more user-friendly but somehow using the browser print button. I thought of 2 ways:
[1] use CSS to print a message that says to use the flash print button if you want to print the material. I thought this would tick some off cause they pretty much would be wasting the trees thinking they are getting the material but intead this message.
OR
[2]Is there some way to have one of the called swf's that contain a scroll and text to communicate with CSS to determine which text to print, so when the user uses the browser print button, it prints the text which resembles the text in the scroller. Is this possible... what are my possibilities?
Problem - Printing Scrollpane Content
hi,
I am trying to create a button that print the full content of a movieclip dynamically loaded inside a scrollpane.
the problem is: it only prints the part showing in the scrollpane.
Can anyone help me !?
Fanx!!
Printing Scrollpane Content In Flash 6
Hi,
Does anyone know how I can print all scrollpane content (not just visible) from within Flash 6. I've only been able to find solutions using Flash 7 or later. I've tried putting a copy of the scrollpane clip into an off-screen printing area but I still only get the visible clip.
Any suggestions would be much appreciated.
Cheers.
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();
}
}
Need Urgent Help : Printing Hiden Content Of ScrollPane
Hi all,
I am in middle of a CD catalog. I am having problem with showing product leaflet which are in .pdf format. First of all i used getUrl method but it brings browser with it which is not ideal. Then i endup with the .jpg files to show in scrollPane. But the problem is when i print the content(.jpg) of scrollPane it just print what is visible on screen. But i want to print what is beyond the visible part.
Please help me out. Thanx in advance.
Kishan
Need Urgent Help : Printing Hiden Content Of ScrollPane
Thanx for your reply. I am using the below code on print button :
on (release) {
var pj:PrintJob = new PrintJob(); // Never create a var name that is the same as the class name
var bSuccess:Boolean = pj.start();
if(bSuccess){
trace("myscroll.content = " + myscroll.content);
pj.addPage(myscroll.content,{xMin:0, xMax:574, yMin:0, yMax:757});
/* var temp = _level0.scrollPane.spContentHolder._y;
_level0.myscroll.spContentHolder._y = -442;
pj.addPage(0);
// position scrollPane content back to it's starting vertical position
_level0.myscroll.spContentHolder._y = temp;*/
pj.send();
delete pj
}
}
One more thing, My prints are exceeding A4 width size. I know its possible to print within limits.. But dont know how.
Do we have any way to open pdf files????
Thanx again in advance
Kishan
[F8] Printing Content Of Embedded Swf From Main Environment Swf
I am using Flash Professional 8 to develop, and player 8 to view published swf files in an html window. I have looked through the posts, but nothing seems to apply.
OVERVIEW:
I have a main environment which contains a graphical banner, back and next arrows, and a 'Print' popup containing a number of buttons with print code on them. The main environment loads each actual screen of content from separate swf files (path is: screens/screen1.swf).
The following code (on the first frame of main timeline) worked when everything was in one fla file, but no matter what I try, I can't get the correct syntax to work when the movie is in another swf file:
Key.addListener(myListener);
_global.p_sec_1 = _root.attachMovie("printable_screen1", "psection1",100);
_global.p_sec_2 = _root.attachMovie("printable_screen2","psection2", 101);
_global.p_sec_3 = _root.attachMovie("printable_screen3","psection3", 102);
_root.psection1._visible = false;
_root.psection2._visible= false;
_root.psection3._visible= false;
This code was on the button to call the print function:
on (release) {
printAsBitmap("_root.psection1", "bmovie");
}
MY PROBLEM:
I can't figure out the action script code needed to direct the code (located on the print button in the environment) to print the movie clip when it is in an embedded swf.
I would really appreciate it if anyone knows what I would need to replace '_root' with. I have tried the path 'screens/screen1.swf' and a few other things, but am stuck.
Signed, an action script novice.
Thanks
Printing Content Of Embedded Swf From Main Environment Swf
I am using Flash Professional 8 to develop, and player 8 to view published swf files in an html window. I have looked through the posts, but nothing seems to apply.
OVERVIEW:
I have a main environment which contains a graphical banner, back and next arrows, and a 'Print' popup containing a number of buttons with print code on them. The main environment loads each actual screen of content from separate swf files (path is: screens/screen1.swf).
The following code (on the first frame of main timeline) worked when everything was in one fla file, but no matter what I try, I can't get the correct syntax to work when the movie is in another swf file:
Key.addListener(myListener);
_global.p_sec_1 = _root.attachMovie("printable_screen1", "psection1",100);
_global.p_sec_2 = _root.attachMovie("printable_screen2","psection2", 101);
_global.p_sec_3 = _root.attachMovie("printable_screen3","psection3", 102);
_root.psection1._visible = false;
_root.psection2._visible= false;
_root.psection3._visible= false;
This code was on the button to call the print function:
on (release) {
printAsBitmap("_root.psection1", "bmovie");
}
MY PROBLEM:
I can't figure out the action script code needed to direct the code (located on the print button in the environment) to print the movie clip when it is in an embedded swf.
I would really appreciate it if anyone knows what I would need to replace '_root' with. I have tried the path 'screens/screen1.swf' and a few other things, but am stuck.
Signed, an action script novice.
Thanks
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...
Scaling Sprite For Printing Doesn't Scale Content
Need help with this one!
I have a Flash docutment that is 950 x 650. I want to add a "print" button that will automatically scale it to fit uncropped on an 8.5" x 11" page (Landscape).
Problem is, although the sprite DOES scale to fit the page, the content doesn't scale but rather just ends up being cropped. It's like my sprite is a window looking through to my image. I change the size of the window but the image behind it remains the same size.
Here's the code:
Thanks!
Phalconheart
Attach Code
btn_print.addEventListener(MouseEvent.CLICK, printAll);
function printAll(myevent:MouseEvent):void {
var myPrintJob:PrintJob = new PrintJob();
var printSprite:Sprite = new Sprite();
printSprite.addChild(stage);
printSprite.scaleX = .8;
printSprite.scaleY = .8;
var myOptions:PrintJobOptions = new PrintJobOptions();
myOptions.printAsBitmap = true;
var myPrintArea:Rectangle = new Rectangle (0,0,950,650);
myPrintJob.start();
myPrintJob.addPage(printSprite, myPrintArea, myOptions);
myPrintJob.send();
}
Dynamic Mask Over Dynamic Content Loses Content
I have come across a problem that so far I have no solutions for at all. I have a movieclip which has a dynamic jpeg loaded into it, then the movieclip is being masked. The issue is I need to have the mask that is on top of the movieclip change, but once I make any change to the mask I completely lose the dynamic jpeg that was loaded into the masked movieclip. Is there a way around this at all?
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!
Textfield Content Request
Hi everybody
Got a question regarding Textfields. The User should enter two Words in one textfield. For example «tempus, numerus».
My Problem is that every submission is individual. I mean one User supplys a comma between the two words another maybe some slash or dash and so on. Is there some way to detect the Content without asking for all possibilitys. Something like:
if textfield contains word 1 and word 2....
It would be great if someone had an idea.
Thanks Gurus
Loading Xml Content Into Textfield
I'm loading some content from an .xml file and it's all fine,- a for loop goes through the content and I trace out 3 entries in the XML. However I want to display the results in a dynamic textfield, but I can't get the 3 entries to list, I can only access one specific entry by using the square operator like imageName[2].
My code:
ActionScript Code:
var myXML:XML = new XML();
myXML.ignoreWhite = true;
myXML.load("text.xml");
myXML.onLoad = function(success) {
if (success) {
var myImage = myXML.firstChild.childNodes;
for (i=0; i<myImage.length; i++) {
var imageNumber = i+1;
var imageName = myImage[i].attributes.name;
var imageURL = myImage[i].firstChild.nodeValue;
// Traces out entries
trace ("My image number "+imageNumber+" is titled "+imageName+" and its URL is "+imageURL+".")
//TRYING TO LIST ALL imageName ENTRIES IN THE DYNAMIC TEXTFIELD "txt_mc"
txt_mc.htmlText = imageName[i];
}
}
};
XML:
ActionScript Code:
<gallery>
<image name="school">image1.jpg</image>
<image name="garden">image2.jpg</image>
<image name="shop">image3.jpg</image>
</gallery>
Using Textfield Content For Math
// set variable as numbers
var monthly_num:Number = 0;
var ttl_num:Number = 0;
var ttl_rev_num:Number = 0;
// user-entered numbers from an Input textfields
monthly_num = monthly_txt.text;
ttl_num = ttl_txt.text;
// Multiply two user-entered number together to get new result
ttl_rev_num = ttl_num*monthly_num;
// Attempts to assign numbers typed into textfields to numeric variables causes errors.
1067: Implicit coercion of a value of type String to an unrelated type Number.
|