ActionScript 2.0 :: Call Text In To Flash From ASCII Text Editor?
Jan 31, 2012I'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'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'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]...
Anyone know of a good program such as:WYSIWYG text editor for hyperlinks and text formatting that exports to swf.
View 2 RepliesI'm trying to use the AlivePDF library to export text from a text editor created in AS3 into a PDF. Can anyone link me to documentation or a tutorial that can help teach me how to integrate it into a normal AS3 file? I have no idea how to use the library and the only documentation I've seen for it is how to use it in Flex/Air, which is not what I'm looking for.
View 2 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
my main class is Editor my sub class is a CustomTextField i need my Editor to keep track of what the active CustomTextField is, since there can be more than one. i want to have a variable, activeTextField:String to keep track of the active CustomTextField. i created getters and setters on editor to keep track of activeTextField. how do i call these getters and setters from the editor w/out using static getters and setters on the editor? this has to be confusing to read because i am utterly confused writing it...
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 Repliesi 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 uses ajax rich text editor. I want to input a flash file into this editor.
View 1 RepliesFirstly, 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.
I'm trying to build an RSS feed reader to display inside a swf on a webpage. I need to figure out how to create the RSS feed reader as it's the last bit I need to create for this website.
Here's the code I'm using:
var rssLoader:URLLoader = new URLLoader();
var rssURL:URLRequest = new URLRequest("http://teachercenter.scps.k12.fl.us/education/rss.php?sectiondetailid=69411");
rssLoader.addEventListener(Event.COMPLETE, rssLoaded);
rssLoader.load(rssURL);
[code]....
I keep getting an error message that reads:
1061: call to a possibly undefined method addItem through a reference with a static text type flash.text.Textfield.
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 RepliesI created a text editor in AS3 to administer a site online, but i have a problem when i select a word, put it in bold, save the text and load it, all the text after this word becomes bold too. (to put a word in bold i select that world and use a button that turn this word in bold)Here is my code
Code:
var formatGlobal12:TextFormat = new TextFormat ("_serif", 12);
txt_references_springbok_fr.setTextFormat (formatGlobal12);
[code].....
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 RepliesWhat I want to do is create a flash movie that will work as a update method for a news section on a website. Now Im not a big Actions scripter but I think its a preety cool idea. basicly I'm guess in It could be done using input text or something like that. But the idea is you can login to a webpage(with the text editing swf in it) and it would have say 3 input text boxes one that says date, subject, and then the news to be added. And using a submit button it would update a text file that is dynamicly loaded into the main website swf. Does that make sence??3 If anyone has anyidea on how I could acheive this I would really apriciate it. I am really excited about the consept lol I just dont really have the AS knowledge at the moment to do it.
View 4 RepliesI am very new to flex and have trouble capturing the text change event of my text control:
<mx:Text id="description"
text=""
textAlign="center"
[code].....
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.
We have an image editor in Flex to add text and other changes. Once all the changes are complete, we need to save this to the server.We are using php to save the images by accepting coordinates from flex about what all edits are made for that image. Using this we are editing that image using imagick function in PHP. But the problem is output is different from what we see in flex. The issue is mainly with text alignment in flex editor and in the output we get after editing in php.Is there any other way to do this without making the user to wait for a long time to save the images? Is it possible to get the correct coordinates of text from that flex editor. Our issue is flex is passing the x,y of the container of that text editor. For this reason, test is misaligned in the output.
View 1 RepliesI 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.
Do you know Kirupa's News Editor tutorial?O.K. I have problems with text formatting. I need "title" in a different font than "body".Here is the part of original code:
ShowNews = function(news_xml){
if (!news_xml.firstChild.hasChildNodes()){
content_txt.text = "No news available.";
[code]......
I created a text editor in AS3 to administer a site online, but i have a problem when i select a word, put it in bold, save the text and load it, all the text after this word becomes bold too. Here is my code
[Code]...
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'm creating something like a text editor. I have text-movieclips at set coordinates. I'm trying to create a function to delete entries. My idea is that my cursor is at the text-mc's coordinate so I'd like to be able to connect the delete key to any clip that happens to match my cursor(x,y). Like this:
if ((Key.getCode() == Key.DELETEKEY)){
if((anytxtclip == cursor._x) && (anytxtclip == cursor._y)) {
delete anytxtclip
}}
I think I'm looking for a world variable to describe anytxtclip.
I am trying to get Chinese text using XML file. it's loading text BUT it doesn't display Chinese text in it,It only displays Square/Box. I have used TAHOMA font for that text box. is there any solution?
View 1 RepliesI'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 have load html text from an xml file, like below [code]...
in above code I want call a flash funtion when roll over on "on roll over in this text" text.