Flash :: Asp.net - Ajax Rich Text Editor - Input A File
May 6, 2011I uses ajax rich text editor. I want to input a flash file into this editor.
View 1 RepliesI uses ajax rich text editor. I want to input a flash file into this editor.
View 1 RepliesI'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]...
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.
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 RepliesI 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.
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].........
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.
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 RepliesI want to create an input text field that can be editable by the user and essentially when they click submit it turns this into HTML code with p, br, strong and em tags.
I don't know if it is possible, I assume it would be, but my searches are not turning up much.
I want the user to be able to select a section of text and click a B button to surround that selected text with strong tags, same for italics.
I also want to give the ability to at least record when the user presses enter in order it insert p tags and maybe even br tags if they press shift+enter
In terms of HTTP request performance should I pick AJAX or Flash? To be more specific, I'm more into Flash than AJAX and I'm currently working on a wide scale web project. I wanted to try AJAX out for once and now it's getting too messy for me. Before it gets more complicated I thought may be I can run Flash on the background for HTTP Requests and use it with javascript. I couldn't find any benchmark on the Internet, but I think AJAX is faster than Flash. So what's your personal experience? Is there too much difference between Flash and AJAX?
View 4 RepliesHow does one apply rich text to Flash at runtime? Specifically, I need to dynamically create bullet-points and paragraphs with line breaks.
View 2 RepliesIs 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 RepliesI 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 RepliesHow 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
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 RepliesHow do you dynamically save an input text to a .txt file which can be read to another file in Flash CS3? And how do i retrieve the data from the txt file if i want to call it from another file?
View 3 RepliesI'm trying to create a sleek and styled button that when clicked allows the user to select a file. When the file has been selected, an event should fire, allowing me to reconstruct the form. Also the file should be uploaded without reloading the page. Preferably events should also be fired for upload progress and completion.
Obviously neither pure HTML or JavaScript can do all this by themselves. I need to let Flash do the uploading. I've been searching around for a nice clean JavaScript library that implements Flash for file uploads and makes the aforementioned events available to the programmer. All I've managed to find are "all-or-nothing" type libraries that does everything for me, giving me little or no freedom. Often the upload interface is also static and in flash.
Are there are professional, clean JavaScript libraries out there that does what I'm after? To reiterate, I'm looking for a JavaScript library that uses Flash only to upload one or more files asynchronously and offer events to keep track of the upload.
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 RepliesI'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 RepliesI need to load contents of an external html document through AJAX. The problem is the external page has some Flash application embedded. Now I need to show this html with the embedded flash in my own webpage.
View 1 RepliesI have this problem.When I publish my Flash file to html, input text would't recive @.Instead it paste whatever is in my clipboard.I tried with diferent encodings, fonts,....
View 7 RepliesDoes 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 RepliesDoes 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 RepliesDoes 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 RepliesNoob 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 RepliesI 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?
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.
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.
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 RepliesI have problems with facebook application based on flash which communicate with PHP using FBJS-bridge.When someone use the application for the first time, he/she is asked for various permissions. After that, flash contact PHP with ajax but request is never sent. When you refresh page, everything is working without any problems.If you remove the application on privacy settings, refresh the page and try again -same bug happens.If you allow application, refresh page, in other tab remove application and start application in previous tab - user is asked for permissions but everything is working after allowing application.This is FBJS code
function openPermissions(){
Facebook.showPermissionDialog(/*permissions string*/, permissionOnDone);[code]......
openPermissions is called to display permission dialog, and on allow flash function allow() is called. In flash, allow() calls JS function ajaxCall(), which should make ajax request. But, ajax.post never sends request. I know that for sure, because flash function parseAjax was never called and also debugging tools in browsers are not showing any ajax requests. URL and parameters are same as when it is working. No flash or JS errors are detected...