flash数字数的AS3 (count the number of characters in dynamic text
来源:学生作业帮 编辑:拍题作业网作业帮 分类:英语作业 时间:2024/04/29 01:39:02
flash数字数的AS3 (count the number of characters in dynamic text field)
要制作一个flash,
内容为计算字数.
在stage上有一个dynamic text field为"My email address is XXXX@XXX.XXX,(email-dtf)
在下方有一个空白的dynamic text field作为之后会出现"Your email address is XX characters long." (feedback_dtf)
请问这样的AS要怎么写?
目前只会写这个
feedback_dtf.text="Your email address is" + (something magical goes here) + "characters long.";
完整的应该怎么写?
要制作一个flash,
内容为计算字数.
在stage上有一个dynamic text field为"My email address is XXXX@XXX.XXX,(email-dtf)
在下方有一个空白的dynamic text field作为之后会出现"Your email address is XX characters long." (feedback_dtf)
请问这样的AS要怎么写?
目前只会写这个
feedback_dtf.text="Your email address is" + (something magical goes here) + "characters long.";
完整的应该怎么写?
这里给第一个你说的dynamic text field命名为:targetField
那么你的feedback_dtf.text那句则改为以下几句:
var preStringLength:int="My email address is ".length; //获得除EMAIL以外的文字前缀成
var emailString:String=targetField.text.substring(preStringLength); //得到EMAIL字符串,截取文本框中前缀长度开始的位置
feedback_dtf.text="Your email address is" + emailString.length + "characters long.";
如果还有进一步的需求,好好研究一下AS3自带帮助文档中关于String类的方法吧
那么你的feedback_dtf.text那句则改为以下几句:
var preStringLength:int="My email address is ".length; //获得除EMAIL以外的文字前缀成
var emailString:String=targetField.text.substring(preStringLength); //得到EMAIL字符串,截取文本框中前缀长度开始的位置
feedback_dtf.text="Your email address is" + emailString.length + "characters long.";
如果还有进一步的需求,好好研究一下AS3自带帮助文档中关于String类的方法吧
3.The number of the people in the street are hard to count.翻
shakespeare create quite a number of wonderful characters in
-A number of students( )in the dining hall.-Let me count.The
count the number of toys before collecting them in the toy b
英语翻译The number of American students who study in other count
英语翻译This understanding of a dynamic to the biblical text ove
Circle the number of the main idea of the text .
dynamic deformation of shaft with clearance of the shaft in
Romance is in the Flash of the
英语翻译The dynamic response of turbine flowmeters in low densit
一句不明白的英文 急“His characters dove in the depths of the ocean in
can you count the number of English words you know?