ActionScript 2.0 :: Stuck On Designing A Rich Text Editor In Flash

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


Similar Posts:


ActionScript 3.0 :: Using A Rich Text Editor To Style A Flash Text Field?

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

Flash :: Asp.net - Ajax Rich Text Editor - Input A File

May 6, 2011

I uses ajax rich text editor. I want to input a flash file into this editor.

View 1 Replies

Flex :: AIR: <img> Tag In Rich Text Editor?

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

Flex :: Rich Text Editor That Provides Link?

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

ActionScript 3.0 :: On Creating A Rich Text Editor?

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

ActionScript 2.0 :: Source: Rich Text Editor?

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

Flex :: Rich Text Editor - Limiting The Number Of Characters?

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

ActionScript 3.0 :: Designing Simple SWF Player Editor

Jun 28, 2011

I am developing a simple swf player. I have designed interface. It will have play, pause, previous, next and mute buttons.

View 2 Replies

Actionscript 3 :: Rich Text In Flash TLF?

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

Flex - Paste Rich Text Into Flash?

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

Flash :: Alternatives To Script Rich Text Editors?

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

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

Flex :: Flash Builder - Display Rich Text In AdvancedDataGrid Column?

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

ActionScript 2.0 :: Create A Flash Xml Editor Based On Senocular's News Editor?

Oct 5, 2006

I'm trying to create a flash xml editor based on senocular's news editor but I am having some trouble getting the xml file to load. My xml file is structured as below[code]...

View 2 Replies

ActionScript 2.0 :: Call Text In To Flash From ASCII Text Editor?

Jan 31, 2012

I'm looking to pull dynamic text in to Flash from a text editor, basically someones name and age, is this easy enough to do?

View 1 Replies

ActionScript 2.0 :: Using External Editor - Why Better Than The Native Editor In Flash

Apr 24, 2007

Does anyone have any experience using external actionscript editors? I've given a brief look at SE|PY, but not sure why it's any better than the native editor in Flash.

View 1 Replies

IDE :: Flash Text Editor?

Sep 21, 2010

Does anyone know of a free flash text editor. Something that I can put on my website to update the text without going into the flash file and reuploading.

View 1 Replies

IDE :: A Flash Text Editor

Mar 28, 2009

Does anyone know of a free flash text editor. Something that I can put on my website to update the text without going into the flash file and reuploading.

View 2 Replies

Create Scrolling Text Areas With Rich Text Format Content?

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

Php :: Flex - Convert Actionscript Rich Text To Plain Text?

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

ActionScript 3.0 :: Flash To PHP Web Based Text Editor?

Jan 14, 2011

i got a working flash text editor. It loads up a text file from a database and displays it in a dynamic textbox and allows you to edit it however you want and save it by sending variables to a php script which than saves the changes to the text file. It works great and when i download the tect file from the database it displays what i/anyone has saved. Only issue is when i refresh the page the text box is displaying what the text file used to say. i checked the database and thats not what the text file contains. =/ I have NO idea what would be causing this, as it loads the text file directly when the page is refreshed so it SHOULD display what the text files most recent contents are. any ideas? test it out at Simmpole(dot)com/flips/testtextsaver/tophp.swf

edit : i also tried making a button that forced flash to reload the text file and no luck.i also tried throwing the code that loads the text file in a ENTER_FRAME event and still no luck.

View 0 Replies

ActionScript 2.0 :: Text Editor Made In Flash?

Apr 16, 2005

I've been trying to find a text editor/word processor style app made in flash. I've also been trying to build one but I figure it can't hurt to search as well.

I'm specifically looking for an fla that allows a user to change font, size, colour, bold, italic etc. and allow the user to select parts of the text to change. ie. like how Word or any text editor works.

View 5 Replies

ActionScript 2.0 :: Looking For A Text Editor Made In Flash.

Apr 16, 2005

I've been trying to find a text editor/word processor style app made in flash. I've also been trying to build one but I figure it can't hurt to search as well.I'm specifically looking for an fla that allows a user to change font, size, colour, bold, italic etc. and allow the user to select parts of the text to change. ie. like how Word or any text editor works.

View 5 Replies

Flex 3 :: Get And Set The Rich Text?

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

Html :: Allow To Edit Rich Text With Images?

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

ActionScript 3.0 :: Convert Flash WYSIWYG Text Editor From <font> Tags To CSS?

Sep 5, 2011

I have WYSIWYG text editor for flash. Works great. Allows me to edit text, save it as a text file and then load it either back into flash or alternatively into HTML. Problem is that Flash uses the <font> tag which is deprecated in HTML4 and will be removed in HTML5 due to CSS. So given that flash can use CSS I wonder:Is there a way to build a WYSIWYG text editor in Flash that uses CSS ?Has anyone heard of this being done? or even done it them selves I'm after any information at all even if it's just a reason why it won't work or assurance that it will.

View 5 Replies

Mysql :: Can't Add Html Rich Text To Database From Flex

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

Actionscript 3 :: Adobe Air Vertical Scroll For Rich Text?

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

WYSIWYG Text Editor For Hyper-links / Text Formatting That Exports To Swf?

Jun 12, 2009

Anyone know of a good program such as:WYSIWYG text editor for hyperlinks and text formatting that exports to swf.

View 2 Replies







Copyrights 2005-15 www.BigResource.com, All rights reserved