#32002/5/29 21:44:16
我不是什么高手,但前不久作过类似的东西,给你借鉴一下:
加到需要的sprite上
global passWord
on keyDown me
changeSecret("password","*")
end
on changeSecret memberName,sign--改变指定的成员membername的内容为符号sign
if charToNum(the key)>=33 and charToNum(the key)<=126 then
put sign after member(memberName)
put the key after password
else if charToNum(the key)=8 then
member(memberName).char[member(memberName).char.count].delete()
delete passWord.char[passWord.char.count]
else if charToNum(the key)=13 then
return password
end if
end changeSecret
[img]http://61.144.28.245/hjc/web/non-cgi//usravatars/paladin.gif[/img]
I thirst for freedom