Actionscript 3 :: Flash Builder Read-only Rich Text Field?
Mar 19, 2012
How is it possible to DISPLAY text with simple formatting (like font color) in flash TextArea or similar control? I need to add text to this control programmatically and be able to select and copy portions of it to clipboard.
RichTextEditor does not fit my needs sine it has multiple controls to allow user to format text and no way to disable them (?).
UPDATE
how to code formatting. Only <b> does work in the following code:
private function Print(s:String, ... optionalArgs):void {
if( optionalArgs.length == 0 || optionalArgs[0]==0) {
mLog.htmlText = mLog.htmlText + '<b>' + s + '</b><br>';
[Code]....
My mistake was I was using symbolic color names, while flash interpreter looks like do not understand them
View 1 Replies
Similar Posts:
May 23, 2011
I have some rich text created using the flex (flash builder 4) rich text input control. I want to display at least some of it in a column of an AdvancedDataGrid control.
View 2 Replies
Oct 6, 2010
I've been trying to build a user interface that would allow someone to change the content of a dynamic field (loaded from a text file) using a rich text editor. However the editor inserts inline css style tags like <span style="text-decoration: underline;"> which Flash aparently can't understand. If the editor were instead to insert the following: <span class="ul"> where the stylesheet defined it as:
[Code]...
View 1 Replies
Jan 4, 2012
Post Read field of TextInmput text and to execute referring condition to the informed text, AS3.0 To depend the inserted text for the user, flash will be read by the compiler to player, and a connective if goes to define for which picture will be directed or which page web will be linkada with the URLRequest function, or the function gotoAndPlay () for the pictures of timeline. Ultiliza object of field of din £mico text or textInput? input I find.
[Code]...
View 5 Replies
Oct 13, 2010
Basically I have a Dynamic Text Field, whose value should be derived from a database, BUT should not be allowed to be modified by a user! The same issue applies to an Input Field.
View 4 Replies
Oct 8, 2010
How does one apply rich text to Flash at runtime? Specifically, I need to dynamically create bullet-points and paragraphs with line breaks.
View 2 Replies
Oct 8, 2010
Is it possible to capture rich text when pasting into Flash? Using a Flex TextEditArea, I can paste richly formatted text within Flash itself, but if I try to paste from an external source (say web page, microsoft word, etc) it comes in as plain text. Same for the reverse: if I copy rich text from within Flash, and paste to an external source, it goes out as plain text.
View 2 Replies
Oct 8, 2010
I was wondering if there were techniques other than the HTML designMode to build an RTE and work around these in a clean manner.. Maybe in Flash, or as a Java Applet or something?[code]....
View 3 Replies
Jan 11, 2012
So I've tried to build a small utility to view the contents of a JSON file in an easy-to-understand manner (for non-tech people).I have Googled far and wide, high and low, but every example that shows how to consume a JSON file in Flash Builder uses the HTTP service, pointing to a file on the web.Here I am, sitting in front of my MacBook, wondering why I can't make this work. In the documentation I've found (sort of relating to this issue), they always show Windows examples, and they seem to work fine:That doesn't work. I've tried some "resolve to path" syntax, but the HTTP service does not seem to allow for anything but file paths in quotes.
View 1 Replies
May 6, 2011
I uses ajax rich text editor. I want to input a flash file into this editor.
View 1 Replies
Jun 22, 2006
Firstly, I am using a TextField object of type input as the text input area of the text editor. So I am wondering, in your opinion, what would work best for formatting the text in this field?[code]...
Remember the text will always be changing at the user's whim in the movie, and I am looking for simplicity in applying certain styles to only selected portions of the input text and also setting styles for all future text that is input beyond what is already input (Could be a different style than that of the text already input)
Secondly, I am having a little trouble with the TextFormat Object option. I have a textfield, and a toolbar movieclip (with buttons such as bold, underline, italics, etc) on my stage. I am writing an actionscript class for the toolbar. I want to be able to capture the start index and end index of highlighted text in the textbox, so that say when I press the bold button, the text is bolded or unbolded. I have tried using Selection.getStartIndex() and Selection.getEndIndex() but they have not yet worked for me, as the selection loses focus when I click on the toolbar in the movie. I was hoping there was some sort of onHighlightText handler for the Selection class, so that I can capture the start and end indices whenever text is highlighted. However, there appears to be nothing with that functionality.
View 2 Replies
Feb 3, 2007
Currently I'm using javascript which works fine to pass text from textfield A to textfield B:
Code:
window.onload=function()
{
document.forms.form1.shirtText.value=document.forms.form1.KitGroupID_16_TextOption_38.value
}
Is there a way to pass the textfield A text to a dynamic text input (flash) as I'd like to use the font embedding flash offers. I can make it work when loading a value from a txt file but I'm not sure how to access the value identified above as KitGroupID_16_TextOption_38 and make it appear in a dynamic input box. Eventually I might want to have 3 font choices for the user but I'd like to just see if I can get this working properly first.
View 1 Replies
Jul 17, 2003
Is it possible to login through flash using one Dynamic Text Field and one Input Text Field and no buttons? If so how? I have seen many tutorials dealing with logging in to PHP using flash but it requires you to make your own php scripts which i am not familiar with. Can some one tell me how to do this with PHPBBs existing php scripts... I want to be able to login thorugh a Input Text Field box and have it verify it in PHP and also be able to register and view other PHP info such as users online and FAQ..
View 2 Replies
May 14, 2009
Noob question, I hope. I need to create scrolling text areas with rich text format content. I know I can use the textArea component and set the htmlText property but converting all of my RTF to HTML is gonna be a major pain in the @$$. I keep getting into trouble thinking what's mindlessly easy in Director/Lingo is gonna be reasonably simple in Flash/AS3, I hoping this is just my inexperience with Flash getting in the way. Is there an easier way? I thought of embedding a PDF document but apparently that's not an option in Flash either (note: I know how to link a PDF doc, I need this text to display and scroll within the application, not just pop a new window on top).
View 6 Replies
Jun 2, 2011
I have a flex (flash builder 4) application with a rich text editor control. I am storing this rich text output in a database via zend amf <--> php.
Now I want to display the first part of that text in a data grid. To do so it seems it might be easiest to get the plain text version.
I am hoping I can somehow convert it to plain text in PHP before I pass it back to flex?
View 1 Replies
Feb 18, 2010
I want to save the "rich" text to a database, and load it later.So how can I get and set the rich text?I looked at the API and there is a property called text which is only PLAIN text, not what I need. There is another property called textSnapshot which sounds like maybe thats what I need to use, but its READ-ONLY so I can't set it?It turns out I am only going to save it from a RichTextEditor, and I need to set it has htmlText on a Text control,so is there a way to get the rich text and convert it to hmtlText?
View 1 Replies
Mar 11, 2011
Is there is there a way(may be very complicated) to display images in the text area from htmlText property in AIR2?P.S. I know that AIR ignores img tags in HTML content due prevent possible phishing attacks.
View 1 Replies
Aug 24, 2009
I want to make a search button on my site. I have a bunch of pdf files in a specific location on my site. I want to create a search field where the end user inputs text into a field and flash locates and opens the corresponding pdf file.
View 1 Replies
Jul 10, 2009
I am looking for a flex component that could allow me to edit rich text with images.
Something like the RichTextEditor from flex except it allows you to add and preview images too, and which can generate the HTML code too.
View 2 Replies
Nov 25, 2010
I have built a rich Text Editor for Flex 4 using the instruction in the following link: [URL]
it works great. I want to be able to add link to it (user selecting text to link it to external web page). How do I do that?
implement Rich Text Editor with link support if you have any.
View 1 Replies
Dec 13, 2009
I am creating a rich text editor -- and I have found many things convert from textformat to HTML like below marked 1. but then when I get to links and align of the editor -- I am not certain the best approach I am doing a search and replace string method on the html text field (the code is marked 2) but it is not that easy and I was wondering if there was a cleaner approach. And that is just the writing of it. Removing it is even harder but I won't get into that I am just trying to find a easer way.
1.ActionScript Code:
underlineBtn.addEventListener(MouseEvent.CLICK, makeUnderline);
function makeUnderline(event:MouseEvent):void {
if (section.underline == false){[code].........
View 0 Replies
Mar 2, 2007
I've created an Rich Text Editor witch is free to download at [URL]
Some features:
Load / Edit / Save and Preview articlesAdd / Upload imagesUndo / RedoBasic layoutAdding linksTell me what you think of it.
View 1 Replies
Aug 2, 2010
So I want to store richtext in my database created from Flex 3's rich text editor, but I am unable to.
for example this would need to be placed into the database:
<TEXTFORMAT LEADING="2"><P ALIGN="LEFT"><FONT FACE="Verdana" SIZE="10" COLOR="#0B333C" LETTERSPACING="0" KERNING="0">sdfsdfdsfsdfdsf</FONT></P></TEXTFORMAT>
Is it because of all the special characters?
Is it common practice to store formatted text in a database?
View 1 Replies
Jul 8, 2011
I have a rich text component with large amount of text. How to add vertical scrollbar to it? I tried:
<mx:Canvas width="100%" height="100%" verticalScrollBar="vsb">
<s:RichText id="text" width="100%" height="100%" maxDisplayedLines="-1"/>
</mx:Canvas>
<s:VScrollBar id="vsb" height="100%"/>
But it get error: Initializer for 'verticalScrollBar': values of type mx.controls.scrollClasses.ScrollBar cannot be represented in text.
View 1 Replies
Jun 11, 2009
Is there a way to restrict the number of characters in the Flex Rich Text Editor? I guess there should be, since it's possible in a textarea. So, if I could get hold of the textarea contained in the rich text editor, I would be able to do it
View 1 Replies
Mar 30, 2006
I'm making a calculator using Flash MX that works the same way as the basic calculator found on windows (not the scientific one). But having the user input a number, store it as a variable, store which function the user wants to perform and clear the text field then store the new input in the same text field as a different variable and multiply or add or divide or subtract the 2 numbers and getting the equals sign to display the answer when clicked is harder than I thought it would be.
View 3 Replies
Oct 9, 2011
I am using html in xml for some names in actionscript and there is ;quot;
Here is my variable where I want actionscript to read the name as html. Instead of normal text.
var field:TextField = currItem.createH3Black(0, 0, 180, 10, h3Size, h3Leading, font, "Left", _root.white, currItem.name.toUpperCase(), "textItem");
How do I make actionscript treadt the currItem.name.toUpperCase() as html? So that the name shows as HTM with "" . Instead of showing ;quot;
Update here is the full source code:[URL]
View 1 Replies
Nov 15, 2004
I am working on a file that has a rotating dial, and I'd like the dial to reveal contents of a text field (a link) as the dial points in the direction of the text field. I have 4 text fields located at 90, 180, 270 and 360 degrees (top, bottom, left and right). I have it controlled via AS, so I've got all the Math but I was hoping someone might know how to reveal the links when the arrow (in the dial) is pointing in these directions.I set up a text field for testing, which shows the degrees, but I'm getting 'NaN' in the field (problems with Theta and converting degrees to Radians, I think). I thought this might help me figure out how to reveal those links, if I can get the NaN to work.Currently, the file is rotating with an onPress, but I'm going to convert it to a mouse follow, instead, so the user only has to float around to see the links.
View 5 Replies
Mar 27, 2009
I know how to enter information into a field using a button or an event, but I can't find any material on how to do it with the enter key. I want it so you can just enter something into an input field and press enter, instead of using a button.
View 1 Replies
Dec 16, 2010
What I'm trying to do is to write something in an input field and then it should show up in a dinamic field. I can make this happen, but the problem is that the dinamic field shows its new text in the same format as the Input field. For example, the input text is written in TimesNewRoman and the dinamic text is in Arial, but when the dinamic text shows the input, the text is still in TimesNewRoman when I want it to be in Arial.
View 11 Replies