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





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

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

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

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.

Printing Vector Not As Bitmap
Hi All,

I am trying to print as vector not as bitmap, tried a couple of things but just can't get it to work, it's driving me nuts to be honest. Would appreciate any help.

This is what I thought should work but doesn't - {printAsBitmap:false}


Here is the full printing AS i'm using:-


Code:
doPrint = function () {
source_mc = this;
MyPrintJob = new PrintJob();
MyPrintJob.start();
var startx = source_mc._x;
var starty = source_mc._y;
var start_rot = source_mc._rotation;
var original_xscale = source_mc._xscale;
var original_yscale = source_mc._yscale;
//if (1 == 2 || MyPrintJob.orientation == "landscape") {
//source_mc._rotation = -90;
///source_mc._y = Stage.width;
//}
logo._visible = false;
frame._visible = false;
prevangle_btn._visible = false;
nextangle_btn._visible = false;
source_mc._rotation = -90;
var xMin = source_mc.printarea._x;
var xMax = source_mc.printarea._x+source_mc.printarea._width;
var yMin = source_mc.printarea._y;
var yMax = source_mc.printarea._y+source_mc.printarea._height;
var obj = {xMin:xMin, xMax:xMax, yMin:yMin, yMax:yMax};
MyPrintJob.addPage(source_mc,obj,{printAsBitmap:false});
MyPrintJob.send();
source_mc._x = startx;
source_mc._y = starty;
source_mc._rotation = start_rot;
source_mc._xscale = original_xscale;
source_mc._yscale = original_yscale;
logo._visible = true;
frame._visible = true;
prevangle_btn._visible = true;
nextangle_btn._visible = true;
};
Again, would really appreciate your help.

George

Printing -- 2 Part Question
Part 1:

How can I print from flash WITHOUT displaying the print dialog box... (i.e. when flash goes to print it just prints to my printer and does not bring up the printer properties box and make me hit OK)

Part 2:

How can I print an external document (.doc, .jpg, etc.) in flash? I know I can print a frame in flash and that is fine but what about if I want to print an EXTERNAL document like a word file or txt file... note: I want it just to print the external document and NOT load it.... just print..

Thanks.

Vector Printing Not Obeying Mask?
Let me do a little introduction into what this application is doing...

Basically, I have a map of sorts that I allow the user to zoom in/out of and drag around. I am achieving this by using a mask to allow only one viewable area. It works just fine and dandy in use.

Now, to the problem:
If I print using my print() function (vector printing), it does not obey the mask. Parts of the map that cannot be seen are printed anyways. It prints exactly where the map is, just not obeying the mask and thus having extra stuff to the top and bottom of the print.

It works fine when I do printAsBitmap(), but that is really the last thing I want to do. These maps can grow quite large (they are all vector based), and printAsBitmap can take a few minutes to print on a high quality printer versus that much shorter time of vector printing.

Any ideas? Has anyone been able to use vector printing and get it to obey your masks?

Thanks!

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

[F9] Part Of Dynamic Textfield Italic
I want the last line in my three-line dynamic textfield to be italic and in a different size. Is that possible?

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.

Vector Shape On Stage Appears Over Dynamic Textfield
The subject pretty much explains it all. I start on frame one of a MovieClip with just a Bitmap covering the whole stage.

Then when a user clicks a button, it goes to frame two and a vector shape is on the stage covering part of the image. At the same time, through code, I place an input Textfield on the stage.

Problem is, the dynamically created Textfield is appearing UNDER the vector shape (which was drawn on the stage)! This seems to be a problem that is new to ActionScript 3, as I did not have this problem with Flash CS3 and ActionScript 2. I'm still using CS3, BTW.

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

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!

After Killing The Focus On A Textfield, The Textfield Remains Selected. Why ?
Hi.
I have a serious problem with the deselecting text when I kill the focus on a textfield.
to see better what I am trying to say, please clcick this link: http://www.eurogaz.ro/rring/expert/

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

Passing Data Form A Textfield To Another Textfield
ok, how can i grab/store information from a specific textfield instance in scene1 and pass it over to another textfield instance in scene2??

need help, its been bugging me for dayz! <:O

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

Textfield In ScrollPane > Textfield Only Accessible With Clicking Twice
hi!

i have a scrollPane on the stage which contains an editable textfield.
unfortunately i can only access the textfield in the pane when i click on it twice. it seems that the first click goes for the activation of the pane and then comes the textfield.

does anybody have an idea how to solve that problem?


// Text Field
var myTextField:TextField = new TextField();
myTextField.text = "Please insert text";
myTextField.selectable = true;
myTextField.type = TextFieldType.INPUT ;

// ScrollPane
var myScrollPane:ScrollPane = new ScrollPane();
myScrollPane.source = myTextField;
addChild(myScrollPane);

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 ¬

Return TextField From Extended TextField Class
Hi

I'm trying to return a TextField from a class and then display it on stage... but I'm having problem to get it to show up on stage?

Help appreciated!

TFCreator.as:


Code:

import flash.display.*;
import flash.text.*;

public class TFCreator extends TextField
{

// TextField
private var tf:TextField;

// Properties
private var txt:String;
private var instancename:String;
private var color:Number;
private var autosize:String;
private var multilinee:Boolean;
private var wordwrap:Boolean;

// Default TextFormat
private var dfrmt:TextFormat;
private var dfrmt_font:String;
private var dfrmt_color:Number;
private var dfrmt_size:Number;

// External TextFormat
private var efrmt:TextFormat;

public function TFCreator(txt:String = "Text", instancename:String = "Instance", color:Number = 0x333333, autosize:String = "LEFT", multilinee:Boolean = false, wordwrap:Boolean = false, dfrmt_font:String = "Arial", dfrmt_size:Number = 11, dfrmt_color:Number = 0x333333):void
{

// Init Properties
this.txt = txt;
this.instancename = instancename;
this.color = color;
this.autosize = autosize;
this.multilinee = multilinee;
this.wordwrap = wordwrap;

// Init Default Textformat
this.dfrmt_font = dfrmt_font;
this.dfrmt_size = dfrmt_size;
this.dfrmt_color = dfrmt_color;

// Create TextField
createTextfield();

}

private function createTextfield():TextField
{

// New TextField
this.tf = new TextField();

// Set Default TextFormat
setDefaultTextformat();

// Set Properties
this.tf.text = this.txt;
this.tf.name = this.instancename;
this.tf.textColor = this.color;
setAutosize(this.autosize);
setMultiline(this.multilinee);
setWordwrap(this.wordwrap);

trace("Textfield created");

// Add TextField to Displaylist
//addChild(this.tf);
return this.tf;

}

// Getters & Setters......

}
}
and test on timeline:


Code:

import TFCreator;

var ttxt:String = "Halloooo?";

var t1:TFCreator = new TFCreator(ttxt,"inst1",0x666666,"LEFT",false,false,"Arial",13,0x333333);
addChild(t1);
t1.x = 200;
t1.y = 300;
//t1.selectable = false;
t1.setText("Baaaaa");
trace(t1.getText());
//t1.setAutosize("CENTER");
trace(t1.getAutosize());
trace(t1);
getChildByName("inst1");
It seems to work ok it just wont show up on stage.

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 ¬

TextField: Can We Embed HTML In Textfield?
Hello all,

I know that textfield can embed HTML like:

Code:
createTextField("noteText", 1, 100, 100, 300, 30);
noteText.type = "dynamic";
noteText.wordWrap = true;
noteText.border = true;
noteText.html = true;
noteText.htmlText = '<font color="#FF0000">This is HTML</font>';
I wonder if we embed button, HTML input field int Flash textfield?

Code:
noteText.htmlText = '<input name="txtTest" type="text">';
Thanks,

Create Textfield With New Textfield Variable?
flash MX 2004 professional
--------------------------

anyone know if it's possible to create a dynamic textfield AND specify not only an instance name but also a textfield variable?

thx
eve

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