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?
FlashKit > Flash Help > Flash ActionScript
Posted on: 05-26-2004, 12:24 AM
View Complete Forum Thread with Replies
See Related Forum Messages: Follow the Links Below to View Complete Thread
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 And Target Paths
I had a question about Target paths in Flash.
In my main movie I have a blank movie clip on the stage (the instance name for this blank clip is "screen") in which I load an external swf (scroller.swf) that has a scroll pane in it. "scroller.swf" loads another external swf into the scroll pane. Scroller.swf loads "content.swf" into the scrollpane. The content.swf contains some text and jpg's and is longer then the blank clip in the main movie, thus the need for a scroller.
So the hierchy is:
Code:
Main Movie (template.swf)
with blank clip: "screen"
|
------- scroller.swf
|
------------------------- content.swf
I want to print the text and images only, that is on "content.swf" with a print button that is located in the main movie stage.
Code:
On the button on the main movie I used:
on (release) {
if ($player != "") {
print("screen", "bframe");
}
}
But this obviously prints the movie clip "screen" and everything loaded inside of it. Thus I get the scroll bars on the side from "scroller.swf" as well as the text content in "content.swf"
If i use:
Code:
on (release) {
if ($player != "") {
print("content.swf", "bframe");
}
}
I get the whole stage of the main movie with all the buttons, the screen movie clip, and everything loaded inside of that. I'm not sure why this happens.
I'm guessing I need to include the main movie, the scoll swf and the content swf in the target path.
The problem is, I don't know the proper syntax for the target path.
Any help at all is appreciated.
Thanks,
Mike
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 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..)
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...
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.
Target Of A Textfield Within A Button
hi i use a button from the library like this:
this.attachMovie("knop","hoi",1);
within the button there's a textfield named "buttontext".
Now i want to change the text in the button. I tried
Code:
hoi.buttontext = "yoyo";
but that doesn't work. What path should i use??
CSS Textfield Target Woes
Has anybody come across a way to style a textfield inside a movieclip using css? as all my efforts only seem to work when the textfield is on the main timeline. Am I missing something? As soon as I place the textfield inside an MC, the css/html tags are embedded. And if I force TextHolder.htmlText all I get is standard html styling ... no css styling!?
code:
myStyle = new TextField.StyleSheet();
myStyle.load("example.css");
TextHolder.styleSheet = myStyle;
thisText = new LoadVars();
thisText.load("example.txt");
thisText.onLoad = function(success) {
if (success) {
TextHolder.text = thisText.myText;
}
};
How To Target Dynamic TextField Objects From Within A Loop
I have a loop that generates a bunch of 5 (from an array) dynamic TextField objects using the createTextField() Method.
for(var i:Number=0; i<languages.length; i++) {
_root.createTextField("language_"+i,_root.getNextH ighestDepth(),xpos[i],ypos[i],200,200);
}
I want to know how I can target these textfields one by one to add the correct text to them from within my loop. I can't figure out how to actually talk to each TextField object by dynamically calling the TextField name. I know I can do it using static code outside the loop as easy as pie, but I want to do it here! THis is a problem I ften run in to.
Thanks.
Gareth
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?
Newbie Movement Question - Move Number Of Pixels NOT To Target Or Even PRECISE TARGET
Like a lot of people im using the code below to move a movie clip my question is this - how do i move the clip exactly a set number of pixels from its current position (lets say 20 pixels) rather than setting a target?
(what im using now)
onClipEvent (enterFrame) {
if (_root.go==1 && root._x<300) {
_x = _x+2;
}
}
ive tried lots of things but there must be a simply answer - someone please help.. thanks.
My second question is how do i move something to a specific x target ie not use <300 or such like - ive tried != and stuff like that but to no avail..
1st question more important right now though - thanks!
Apply Glow Filter On Target MC While Dragging An Object And Rolling Over The Target
I can get my filter to apply to a movie clip if i simply rollover or roll out of it. When the mouse rolls out, the filter is set to undefined. The problem I am having is that I want the object that is in effect the hit area to glow (have a filter applied) when the draggable object is being dragged over it.
This would make is easier for the user to visually identify that where they are currently hovering over, whilst dragging, is the area that they should drop the object.
Part of my code looks like this
Code:
this.onRollOver = function () {
if(_global.isDragging == 1){
this.filters = glowFilterArray;
}
}
this.onRollOut = function () {
_global.isDragging = 0;
this.filters = undefined;
}
_global.isDragging is set to 1 at the onPress stage, when startDrag occurs.
_global.isDraggin is set to 0 onRelease of the draggable object.
Are there any ideas for a solution?
Action On Button, Tell Target, Error=target Not Found
Hello, beings of helpfulness!
I am working at a non-profit and trying to make a website from a Flash template with minimal, but some Flash experience. The template has multiple timelines (main page, content pages, and buttons). This part I am still learning. On the home page, I have an image (mc) that loads, with an instance name of "girls." Menu buttons take the viewer to corresponding content pages, which is when I want the image on the main page to dissapear to make room for the content. When the viewer selects the home page again, I want the image to appear again. At first I put in the following action (except for the home page), alpha=0. It worked! And now it doesn't! I did play with the button timelines some. I tried taking the actionscript out and putting it in again, to no avail.
The action in my button is
on (release) {
tellTarget ("_root.girls") {
_alpha=0;
gotoAndPlay(11);
}
}
And the error I now get is: Target not found: Target="_root.girls" Base="_level0.instance58.instance543"
Any ideas? I'm quite stuck. Thanks so much for any help, or suggestions to do this another way.
I've attached the swf, but the compressed fla was too big. I can email it to anyone willing to fix what is probably very simple, except to the newbie with little but increasing experience!
I'm using Flash MX.
LoadMovie In A Target Without Inherit Of Target Properties?
hi,
I load a SWF-FILE in a target MovieClip with loadMovie(). After that I want to read the _width and _height of loaded MovieClip (from the SWF-FILE), but I only get the properties of the target MovieClip.
loadMovie ("test.swf", "dummySwf");
trace("height:"+dummySwf._height+"width:"+dummySwf ._width);
//put out the properties from target, not from new clip :-((
any idea?
thanks
Target A Specific Frame In And Instance Using Tell Target
is it possible to target a specific frame in and instance using tell target? I can get the effect i want by using goto frame, however i want to use this mc or .swf in a movie, and i don't want goto frame to affect the whole movie, just the mc.
Target JS Button To Target Frame Swf At Different Html...how?
this is my 2nd post regarding this problem, i'm seeking for many input nad perhaps the example soource file/code...
kind like a loading specific frame of swf from a html hiperlink?!? can it be done?
- say we have a 3 frame swf, located at index1.html
- then i have a button(gif/jpeg htmlpage not flash), located at index2.html
- what i wanna do is when i click the button(JS) on index2.html, it will open the index1.html then start play the swf at frame 2 NOT 1(beginning)
how can we do that?
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
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!
Printing, Why Is Printing Such A Problem?
Why can I not print several specific frames on the main timeline?
I know how to use the #p label and all those other print tutorials...
Does anyone have a solution?Or leads, or something
Printing And Printing Datagrids
Hi - a double question here - can anyone help with information on creating a print button for a page in an swf and also to printout the entire contents of a datagrid?
thanks!
f
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!
|