ActionScript 2.0 :: Text Editor - Creating Function To Delete Entries

Sep 27, 2004

I'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.

View 2 Replies


Similar Posts:


ActionScript 3.0 :: Delete Duplicate Entries In An Array?

Jul 28, 2011

I want to delete the duplicate entries in an array. So I have tried the code I atach to this post. I have proved all the posible combinations but no one seems to work.This is the code I have writen:

Code:
package
{

[code].....

View 5 Replies

ActionScript 2.0 :: Creating A Text Editor?

Jun 21, 2006

What 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 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 3 :: Making A Delete Button To Delete Text In The Inputtext Field

Nov 12, 2010

I got these four errors when I tried to create a button on the stage that would delete the text I inputted in the inputtext(ti). Based on the scripts I have and the errors, what should I write to create the delete button?

[Code]....

View 2 Replies

Flex :: Combobox Backspace Or Delete Key Does Not Delete Highlighted Text

Mar 26, 2010

I am implementing a flex auto-suggest combobox - as the user types in each character: Consider the string 'Stackoverflow' and user input = 'st'

1) the data provider is filtered to show all items starting with 'st'
2) text is set to auto-suggest string such that the un-typed part is highlighted.

So for instance, the combobox text may contain st'ackoverflow', where 'ackoverflow' is highlighted using setSelectedIndex()When I hit back-space or delete, and check the 'this.text' value, I expect that the last un-highlighted character ('t' in the above case) gets deleted and the data provider is filtered to show all items starting with 's'. However the text property contains 'st', as before

View 2 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

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

ActionScript 3.0 :: Use The AlivePDF Library To Export Text From A Text Editor Created Into A PDF?

Jun 9, 2011

I'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 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 3.0 :: Call Getters And Setters From The Editor Without Using Static On The Editor?

Jan 13, 2011

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 Replies

ActionScript 2.0 :: Input Text Field Text Editor?

Jan 28, 2009

I 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

View 4 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

Jquery :: Any Gui Visual Editor That Use Javascript/jquery For Creating Animations Like Adobe Flash?

Jan 10, 2012

I am a web designer and I do like to hand code using jquery however, I think it would be much faster to use gui applications like flash to create animations especially on the fly as well as support for writing and editing source code.

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

ActionScript 3.0 :: Text Editor And SetTextFormat?

May 23, 2011

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. (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].....

View 2 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

ActionScript 3.0 :: Possible To Delete A Function?

Feb 4, 2009

Is it possible to delete a function?

I have a reusable function, on the first frame it works, but on the 2nd it doesn't load properly and duplicates itself because the other function is still running in the background.

View 2 Replies

ActionScript 2.0 :: Name And Delete Function?

Jul 4, 2009

I want to name a function, and in the next frame of the movieclip to delete it.[code]...

View 7 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

Php :: Get The Correct Coordinates Of Text From That Flex Editor?

Mar 1, 2012

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 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 :: 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

ActionScript 2.0 :: News Editor And Text Formatting?

Mar 9, 2005

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]......

View 8 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

Flash8 :: Delete A Function From One Clip To Another?

Oct 2, 2009

The order of events are this. From the main stage I load a movie clip (movie clip 1), within that movie clip I have a button that loads another movie clip (movie clip 2) and also starts a timer that will automatically unload movie clip 2 . Within movie clip 2 I would like to create a button that stops the timer on movie clip 1 and starts it again.

I need to stop a function in movie clip 1 from movie clip 2 and then start that same function on movie clip 1 from movie clip 2.

This is the code I am using

This is the movie clip 1 code:

PHP Code:

function moreTimerFun(moreTime) {
this.onEnterFrame = function() {
if ((getTimer()/1000)-moreTime>7) {
delete this.onEnterFrame;

[Code].....

View 3 Replies

ActionScript 1/2 :: Delete / Set A Timer On A Function?

Dec 2, 2009

I have a function that creates a snowfall effect in Flash as2.

What I want is to be able to delete the two functions that create this effect after 30 seconds or remove the attachMovie after 5 seconds.[code]...

View 5 Replies







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