ActionScript 2.0 :: Select Text From Flash For Printing?
Jan 17, 2007is there any way I could print selected text in flash??
View 1 Repliesis there any way I could print selected text in flash??
View 1 RepliesI have a sprite that has a scrollbar that uses the scrollrect feature. The sprite has several bitmaps and textfields. When I print the outer sprite (The one with the scrollrect) all of the textfields outside the scrollrect are cut after the first line. In case anyone else is having problems with printing sprites with scrollrects using the bitmap printing option fixes and prints most of the stuff in the sprite. Excluding all textfields outside of the scrollrect. This however can be fixed partially by embedding your fonts.
So now the only problem left is printing multiline textfields that are outside the scrollrect. P.S. Imho the scrollrect should have nothing to do with the printed area of the sprite because the printJob.addPage has a printarea parameter.
How would I go about applying the following text format only to the word 'the' (regardless of caSe) in my textfield?
Code:
my_txt.text = 'The cat jumped over the house.'
/// my format I want to apply
with (_light_S_fmt) {
[Code]....
I am trying to make a box where a student enters their name and then clicks a button so their name is rememered and shows up. I have created an input text instance called "nameText" and a button to submit it called "submitMe".
Second, in this game I would like to keep track of when a specific button is clicked. In this game I'm having incoming freshman into college decide if the statement applies to college or high school by clicking on a button (saying high school or college). I want to keep track of their choices and display them on a result page, then clear when I click the replay button on the results page. Each button has its own name for each of the 12 questions (hs1 for high school c1 for college, and so forth until hs12 and c12).
Third, I'm looking for any advice on how to print in flash. The person I am developing this program for wants students to print their results (with their name on it from the "nameText" input field) and be able to hand it in to her in class. I am not sure how to do this and I can't seem to find a clear way that works. I have made a button called "printMe"
Otherwise I've attached the swf file so you can see what I'm thinking.
I'm trying to print the contents of a scrollable text field. Why after all these years this is such an impossible task in Flash is beyond me. But maybe I'm overlooking something?
Right now I have two text fields. One for display and one for printing that is hidden from the user and is roughly the size of A4 paper. The content of the print text field is scrolled as many times as is necessary and each time is added to a print page.
The function looks like this:
function printText(e:MouseEvent):void {
var printer:PrintJob = new PrintJob();
if (printer.start()) {
[Code]....
Unforntunately this is not very reliable because the size of the print text field does not correspond exactly to the size of the A4 paper and of course the print margins set by the user can differ as well. This results in an overlap of text between the different pages coming out of the printer.
I have been working on product configurator with AS3 for several months now.I am not proficient with AS3.Now, it seems that maybe my design is all wrong.I
I have a main timeline that has movie clips showing images of different options for the product.On the first frame, I use buttons to select the choice for option 1 from the Option1_mc.Then I store the choice in a variable.I use a button to go to the next choice (frame 10.)
On frame 10, I use buttons to select the choice for option 2 from the Option2_mc.This is stored in another variable.
There are about 10 options that are selected and stored in variables.Some are text values and others are instances of images from the Option movie clips.
I made a Print_mc to use for printjob.I can't get the values of the variables to display in the first frame for printing.
I am getting the the output in Flex from PHP as...
appSes = new ArrayCollection (ArrayUtil.toArray(event.result));
I need the value to be stored in textInput...
<mx:TextInput id="keyword" styleName="glass" width="100%"/>
How to ??
Its all about printing a Sprite that holds (besides others) a TLFTextField instance thats textFlow has been imported from an external XML file.
Everthing works fine, the content is formatted in correct way, the textfield is aligned at the desired coordinates so that i have nothing to complain about concerning what is visible ON THE SCREEN.
I then instantiated the PrintJob class, added the sprite to the job and sent it to the printer.
But no text from inside the TFLTextField is printed. Except for that, everything else (I added a background color to the sprite holding everything and a normal TextField instance with dummy text) is processed well.
Here is an excerpt from my sourcecode:
ActionScript Code:
var canvas:Sprite = new Sprite;
canvas.graphics.beginFill( 0xFFFF00 );
canvas.graphics.drawRect( 0, 0, 800, 600 );
[Code].....
I have a dynamic text field that scrolls. When I print I can only print what is viewable on the screen and not all the text being scrolled. How do I print what is not viewable within the scrollable text field?
Oh yeah, and I don't want to parse the XML content and dynamic Flash conent into several diff frames to print like that since I am using 1 scroller to handle like 30 diff pieces of XML & Flash driven content.
I have a project that needs to take dynamic text and arc it. Similar to this: http:[url]...In this example, select a font then click create text item.At this point you can slide the meter to change the arc of the text. This is exactly what I need to do.My understanding of what needs to be done is I need to first break the letters of the text field into separate text fields, loop thru them then position and rotate each char to the desired arc. The problem is my trigonometry really bites. I have tried many tutorials and I have gotten similar results, mainly arcing text into a complete circle at different radiuses. But all I need to do is whats in the example, which is allowing the user to gradually arch the text.
View 0 RepliesI need to select the text copy and paste the text in to clipboard.. i am able to select the text and on right click i have provided the menu for copying the text... after selecting the text, i am clicking the copy text option in the menu.. but it is not pasting the text..
I am using the syntax:
System.setClipboard(text).
I have a swf file containing some text. When I print it from flash the text is coming out blurry and is not as crisp as I would like.
View 2 RepliesI have a dynamically generated swfs with text fields in a html page which have to be printed/have pdfs made from them. The text is virtually unreadable when printed. I have tried setting the sharpness settings on the text fields to highest, rendering the text fields as bitmaps, nothing seems to improve them. Is it possible to get text to print as clear from swf in html page as from plain html text? I have seen the PrintJob class in as3 but this seems to relate to only one swf at a time. Is there possibly a way to use this for highres printing?
View 1 RepliesI am using Flash CS3 and AS2. I have a dynamically generated text string that is displaying in a multiline dynamic text box. This dynamic text box is inside a container movie clip which contains everything that I want my user to be able to print (other dynamic text fields, graphics etc.) When I view my swf on screen it displays exactly as I intended - if the text exceeds the text-box length, then it word-wraps. But when I print the container movieclip, the overflow is hidden and does not wrap to the next line.
View 1 RepliesWhen you select text in a Text or Label or TextArea (or other) control in a Flex application, the selection is shown in white text on a black background. Always.
I have a request to change that — and it seems to be a simple enough thing to want — but I can't find a style (or property) anywhere that permits that. Any ideas out there about how to do this, or reasons why it definitively can't be done?
I am printing a dynamic text from flash. Every thing works fine, But I get unwanted spaces/ small boxes at the end of every page. Using string functions I tried to remove the last character if it is a space.Even though I am getting this problem.
View 6 RepliesI have a swf file containing some text. When I print it from flash the text is coming out blurry and is not as crisp as I would like.
View 0 RepliesI'm trying to print an MC that is on screen with a dynamic text field in the MC - its printing just fine but the placement of one of the elements is off. Basically I have a dynamic text field centered on the stage, however when I print it, the text field moves to the very right on the printed page, while the rest of the contents of the MC stay centered. To clarify on the printed page I basically have this nice page with centered text, but the dynamic textfield is moved all the way to the right of the page.
View 1 RepliesI have a comboBox and values like basic and advanced. And viewstack container conatains 2 grids.When i select the base option in Combobox, the first grid has to be selected. select the advanced value in comboBox, the second grid has to be selected.
<mx:ViewStack id="viewstack1" width="95%" height="85%" x="0" y="63" >
<tables:KeyMetricsBasicTable basicArrayDataProvider="{basicArrayResult1}" width="100%" height="100%"/>
<tables:KeyMetricsAdvTable advArrayDataProvider="{advArrayResult1}" width="100%" height="100%"/>
</mx:ViewStack>
Flex 4 Combobox is extended with a Text Input that helps in getting to the item that is searched for.I have created a Check Box as an itemrenderer for this Flex 4 Combobox. I would like to Add a Select All and Select None options in the drop down of the Combobox. I know that i could accomplish by editing the dropdownfactory in case of a Flex 3 Combobox. But in Flex 4 the dropdownfactory doesnt exist.
View 2 Repliesi know this was asked, but i can't find the answer anywhere. Type a word in a text box and find it and highlight it.
View 3 Replieshow to select all the text in the textarea on a single click? For example, if I click on the textarea, I would like to select all the text in it or if I click on a button, I would like to select all the text in the textarea.
View 1 RepliesI want to make a dynamic text field so that when a user clicks on it all the contents of the text box are selected to avoid users having to click and drag to select the contents. Is there some actionscript to get make the textbox select all when focused?
View 2 RepliesI know this is an easy question but how do you select all text inside of an input box?
View 2 RepliesI'm working on a page where the user enters their password, then confirms it, so of course their are two dynamic text boxes.
For the first text box, they enter keys on a keyboard and of course the text goes into the text field, like so.
myTextField_txt.appendText(myKeyPressedString);
Works fine.
However, I can't seem to figure out when they are done with the first password how to switch them to the second text field. Clicking on the area where the second dynamic text field is doesn't highlight it or give me a cursor.
We really want to do this on one page, not two. Is there some way to make the second field selectable to change the target for the keyboard?
This is the most frustrating program ever. No where can I find an answer. I've tried everything I've read on how to change text but I can never get the selection tool to select the text. Some say use the T tool but all that does is create a new white box over top of it to type new text in
The layer isn't locked and the closest I can get is a blue box around the button. Well it's not a button and in the library the icon is a movie clip. Its also in my "bitmaps" folder as and image? (tree icon) Does that matter? I'm begining to think this is a whole image?
I have used a tool to convert a pdf to a swf but i need to be able to select and hightlight the pdf's contents. How would I do this using flex/action script?
View 1 Replieshow to provide the text selection option in flash,
1. I have a main SWF,
2. Inside that im loading a external swf which contains text & images
3. i want to select the text in the loaded swf
I want to find a text in the particular text field when we enter a word in the find text field and click find button. I have the following objects on the stage.One big input text box (input_txt), one small text box (find_txt) and one button (find_btn) on the stage. I have written following code in action.[code]But it finds and selects only one word and stops. It is not finding another word if there is one more similar word.For example, if there are two words "story", it finds last entered word "story" in the input_txt and stops. I want to find and select all similar words one after another in the full text field as in the normal text program like notepad and word.
View 2 Repliesif it's possible via an Actionscript 2 function to automatically have the text in a specified TextField selected.
View 5 Replies