Ask a Question related to Macromedia Director Basics, Design and Development.
-
Moggie webforumsuser@macromedia.com #1
Removing a character
Probably very easy, but I'm stumped!!
I have this:
on keyDown me
legalCharacters = "abcdefghijklmnopqrstuvwxyz"
if legalCharacters contains the key then
put "*" after member "star"
to create a * for each letter typed. How can I get member "star" to decrease the number of * if the user presses backspace?
Morag
Moggie webforumsuser@macromedia.com Guest
-
Extract Character By Character in PDF
Hi I have requirement to read the content of the PDF file. I achieved it using Adobe SDK and VB.NET. I used the GetJsObject, getPageNthWord and... -
InDesign ME Character Problem! Character-Change by Printing or saving *.PS!
Hi everybody! I have some problems with ME Version. When i want to print a page with FARSI-Text in it, he changes one character! on screen he... -
Removing red eye
I am following the "how to" instructions for removing red eye but the pupils now look an eery silver instead of the evil red. I selected default... -
Removing desktop icon from one account is removing from all accounts
Using XP Professional. I want the Guest account to have only a few icons. The other two accounts should have many more. When I remove the icon... -
Removing XP
Someone loaded Windows XP Professional onto my grandson's PC and we can't register it because we don't own it. He doesn't know who loaded it and... -
Rob Dillon #2
Re: Removing a character
Make these few changes and you can use the backspace/delete key:
thisManyChars = member("star").char.count> on keyDown me
> legalCharacters = "abcdefghijklmnopqrstuvwxyz"
if the keyCode = 51 and thisManyChars > 0 then
member("star").char[thisManyChars].delete()
end ifend if> if legalCharacters contains the key then
> put "*" after member "star"
end
--
Rob
_______
Rob Dillon
Team Macromedia
[url]http://www.ddg-designs.com[/url]
412-243-9119
[url]http://www.macromedia.com/software/trial/[/url]
Rob Dillon Guest
-
Gretchen webforumsuser@macromedia.com #3
Re: Removing a character
<<
on keyDown me
legalCharacters = "abcdefghijklmnopqrstuvwxyz"
if legalCharacters contains the key then
put "*" after member "star"
to create a * for each letter typed. How can I get member "star" to decrease the number of * if the user presses backspace?>>
legalCharacters = "abcdefghijklmnopqrstuvwxyz"
if legalCharacters contains the key then
put "*" after member "star"
else if charToNum(the key) = 8 then
str = member("star").text
delete the last char of str
member("star").text = str
end if
Gretchen Macdowall
updateStage, inc.
Gretchen webforumsuser@macromedia.com Guest
-
Moggie webforumsuser@macromedia.com #4
Re: Removing a character
Thank you, Gretchen. It works perfectly.
Morag
Moggie webforumsuser@macromedia.com Guest



Reply With Quote

