Ask a Question related to Macromedia Flash Actionscript, Design and Development.
-
Rogerio62 #1
Deleting text in a dynamic text box
I am trying to delete the last character entered (be it alpha or numeric) into
a dynamic textbox (that i am populating using only buttons on a form). The
trick is I want to use a button to delete the last character. so far my code
for the delete button looks like
on(release)
var L = mytxt.length
Selection.setFocus("mytxt")
Selection.setSelection((L-1),L)
mytxt.replaceSel("")
however all this does is select the text and does not write over it. i have
tried every other way i know of and Flash will not write a null string over an
existing character. is there anyway to do this??
Rogerio62 Guest
-
load external text to dynamic text field in levels
Dear Sir I found the Tech Noe Index #16238 is useful in creating dynamically loaded text from external text file. However, the method mentioned... -
How to center text in dynamic HTML text field ???
In Flash MX 2004 I suddenly find myself comletely helpless trying to align all text to the center in my dynamic text field. I dont recall running... -
Dynamic text fields. Continuing text over columns
Hi I'm doing a mock up news paper article over 4 columns in flash mx and the text loads in dynamically. I have 4 dynamic text boxes sitting side... -
Deleting text from text boxes
a "footer" on this document. I actually discovered this feature myself by accident the other day. In the document, click on "view" and drag down... -
Dynamic text in smooth scrolling text field - help
here's links to the files. http://www.anicespot.com/test/ http://www.anicespot.com/test/easing_textScroller-01.html... -
sneakyimp #2
Re: Deleting text in a dynamic text box
when you create your dynamic text box on the flash stage, you can assign a
variable to it (look at the properties window for VAR in flash mx). then, in
your code, if you change that variable, the contents of the textbox will change.
if myString is your variable, then you could do something like this
myString = myString.substring(0, myString.length);
or something like that....you might need to experiment.
sneakyimp Guest



Reply With Quote

