Is it possible to save text of textarea in some variable or so and with its textformat (more than one color) and then reuse it to replace text in textarea?
I tried saving htmlText of textarea but the problem is when i replace it in textarea <p> tags causes problem.There will always be another extra line.
Is it possible to save text of textarea (flash 10, as3, cs5) in some variable or so and with its textformat (more than one color) and then reuse it to replace text in textarea?
I tried saving htmlText of textarea but the problem is when i replace it in textarea tags causes problem. There will always be another extra line.
If anyone wants to view p tags problem try following. Just click on text and then move your down arrow key, cursor will go to next line.
I'm having issues with the property "editable" of textArea control. I have a component: OrderView.mxml and it's associated data class OrderViewData.as. Orderview.mxml is inside a viewStack to enable navigation from a component to another. In this particular case, OrderView.mxml is called by another component: SearchResult.mxml. I can thus navigate from SearchResult.mxml to OrderView.mxml, and back to SearchResult.mxml... OrderView.mxml has textArea and textInput control, that have to be editable or nonEditable depending on the property var isEditable:Boolean from OrderViewData.as.
When the application is launched, isEditable = true. So, all textInput and textArea controls are editable the first time the user gets to OrderView.mxml. When the user clicks on the button order from OrderView.mxml, isEditable = false. When the user goes back to SearchResult.mxml, isEditable = true (again) --> Until here, everything works fine. The thing is: when the user goes back to OrderView.mxml for the second time (and beyond), even if the property isEditable = true, textArea controls are still non editable... But the textInput controls are editable!
Setting the text property of a flex DateField makes the selectedDate property of that DateField go to null.I need to set the text property so that I can use a particular format (DD-MMM-YYYY).
Unfortunately, when I start placing text in this text area. Either through code or user input, the text will be placed on a new line after about 80-100 pixels. Yet I want it to start a new line after 320 pixels (it's length).
I want to display text in textarea in two columns. [code]...
Depending on text width in Column1 text in Column2 will be shifted. So all rows in Column2 are going to be aligned. How can I do this without html <table>?
if you feed the textarea text attribute with an tag that has a valid src url, then for some reason flex will try to render everything as html.Eg, try this:<mx:TextArea id="textArea" width="100%" height="90%" text="<img src='http://url-to-a-valid-img"/> and instead of it rendering it as raw text it will render it as an html.
Then htmlText doesn't support Spark Textarea. Hence produces error. How does one go about displaying HTML formatted text with spark Text Area Property.
I am attempting to insert text from a database into a custom TextArea component, using the following: var front:CaptionTextArea = myFlashcardFrontsides[adjIndex] as CaptionTextArea; var back:CaptionTextArea = myFlashcardBacksides[adjIndex] as CaptionTextArea; var passage:CaptionTextInput = myVersePassages[adjIndex] as CaptionTextInput; front.text = passage.text; back.text = str;
This works 100% of the time for smaller strings. However, if I insert long strings of text, the application will hang consistently. The maxchars for the textarea is set to 1200, and the text that is inserted into the text area is always smaller than the character limit: backside.maxChars = 1200;
I have a TextArea and a DataGrid. I've populated the DataGrid with a list of text files in a directory. Now I'm trying to load the selected file into the TextArea. I'm getting a null pointer exception when selecting a file from the list, which tells me I'm not accessing it right...I think.
I am using actionsript 3 and flex 3.5. Is there any way to change the font color of a part of text in TextArea control without using "htmlText" property?
For example I have a string "dog, cat, fish". I want to change the color of "cat" word to red.
I've been experimenting with MXML- and spark-textarea (and richtexteditor)when I copied some formatted texts like Test tes1 from MS Word 2007 and paste them inside the flash textarea , the formattings are gone (I only receive the plain texts)But when I do the same to the Jwysiwyg (a jquery wysiwyg text editor), the formatting doesn't disppear.Is there a way to make flash textareas receive formatted texts without destroying the formattings?
Take a look at this demo, how do they accomplish the Inline Changes feature? To me it looks like they are floating a movieclip over the textarea. What I can't figure out is how they anchored the movieclip to stay in the correct position. If you type something before the movieclip it moves position along with the text, the movieclips even move to the next line when the text word wraps. Does anyone have an idea?
I am trying to use a text area to display some text on a mobile AIR app. It works fine whenever I am using the phone emulator on my desktop to debug, however whenever I put the app on my phone, the text displays, then disappears. I've also noticed that if I lock the screen and unlock, the text will display just fine when I come back.
One other interesting thing to note is that it only happens on certain Views, and only on Views in the first ViewNavigator tab. This leads me to believe that there isn't really anything wrong with my use of the TextArea, but something else happening at a higher level in the application.
I am attempting to dynamically change the color of a subset/portion of text in a Spark TextArea control. Using the MX-based TextArea, I could leverage the mx.controls.textClasses.TextRange type and change the color directly as follows:
1st argument: The TextArea control that will provide access to the underlying textField property 2nd argument: Indicates the TextRange will not modify the content of the TextArea 3rd argument: The beginning index position in the TextArea text string 4th argument: The ending index position in the TextArea text string
How would I go about doing this for a Spark-based TextArea control? I am looking to dynamically change the font color for a range of text, not just the entire TextArea AND I cannot statically specify the font color. The problem I run into when trying to re-use the TextRange type is that the 1st argument is expected to provide the textField property, which is currently not on the Spark-based TextArea control. I thought about extending the Spark-based TextArea control to provide this accessor property but that seems like overkill and is probably not the best approach.
(Flex 3) I have a TextArea component which needs to hold the user's clipboard content. The TextArea does the job relatively well for most cases but when pasting a large amount of data, I can't seem to get the content in the component at all due to the script execution timeout.
I've done a fair deal on investigation to try and hopefully find how I could make this work. I found that the TextArea is using a IUITextField (which is in my case an instance of TextField at runtime) do handle the job of obtaining the pasting data and then throws an event when it is done.
I have found no way to take a look at the source of TextField as it is a class in the playerglobal.swc library.
Is there a way for me to maybe see the source of that class or is there something I'm missing in my approach to figure out a way to make this work?
the second instruction just does not work, and the textarea scrolls to the beginning (as a consequence of the first assignment). Has anyone else run into this and have you come up with any workaround?
This only happens in AIR, not FP, and only with TextArea, not with a plain input text.
Because the color of the background image in my application is very dark, and the Alpha is very low, when I hover my mouse over a checkbox, the text is scarcely visible. I've scoured the interwebz in vain for what property to set, either at design-time or in the MouseOver event for the checkbox and just can't figure out what property or setStyle property to alter to be able to control the color of the checkbox text when the mouse pointer is hovering over it.
I have created a textArea element but cannot display my HTML content. If I just display regular text it works or if I change the textArea element to a RichEditableText element it works fine. Since this is for a mobile app I would prefer to use the textArea element as recommended by Adobe.Here is the MXML code for the textArea. All I get is the border and no content displayed.
I extended a mx.controls.TextInput to create a custom component with a different behavior.I'm trying to set the text property on the keyDownHandler(), and for some reason it doesn't work as I expected. The text on the component just kinda ignore the change.I'm using Flex 3.6.Down here is a simple example code that explains what's going on:
I'm trying to convert an MXML component to an ActionScript Class. The component consists of a Form with a TextInput, TextArea, and two buttons - Save and Cancel, and a Validator for the TextInput, and other logic to handle events that occur. This component is currently extended by several other components. Now, in the MXML component binding the TextInput text property to a property in an Object was very easy: <mx:TextInput text="{_itemToEdit.name}" />
But in ActionScript, I'm creating the TextInput and setting the text property before the Object is set, and the TextInput is not being updated: public var itemToEdit:Object = {}; private var nameInput:TextInput = new TextInput(); public function MyClass() { nameInput.text = itemToEdit.name; }
How can I make sure that the TextInput text property is bound to the specified property in the Object?