English 中文(简体)
说明 2.0: 闪电中方言
原标题:actionscript 2.0:Check TextField in flash

我在检查两个文本领域时有一些问题。 案文比较。 1个文本领域。 案文价值来自计算和其他案文。 外地是用户投入。 当我检查这两个文本时,案文领域。 案文价值没有显示,我可以比较这两个。 我如何在行动说明2.0中进行比较。 请帮助我! 提前感谢!

最佳回答

如果案文领域是正确的,那么你所做的事情就应当ok。

以下是它应如何发挥作用的例子:

//with the text tool, make two textFields on the stage
//In the Properties window, set the instance name of one to  dynamicText 
//and set it s text type to be Dynamic Text
//Set the other one to be named  inputText 
//and make it of text type Input Text
//enter some dummy text in each field to start with

dynamicText.text="pAssw0rd" //for example

inputText.onChanged= function() {
trace("match is "+(dynamicText.text == inputText.text));//true or false
}

如今,在输入Text领域尝试打字......

问题回答

暂无回答




相关问题
Find the closest time from a list of times

So, here s the scenario. I have a file with a created time, and I want to choose a time from a list of times that that file s created time is closest or equal too...what would be the best way to ...

PHP Comparison Operators and Data Types

I m currently working through O Reilly s "Programming PHP" and have come across this table titled "Type of comparison performed by the comparison operators": First Operand | Second ...

Loop Until Condition Reached, iPhone

I have a problem here... After a button is pressed I want a loop to run until a condition is reached: - (IBAction)buttonclick1 ... if ((value2ForIf - valueForIf) >= 3) { ... I would like a loop ...

nuSoap or Zend Soap? [closed]

I would like to know the differences between nusoap and ZendSoap, which is the best? what benefits and disadvantages of each? Anyone who has used both technologies could make this comparison? Thank ...

Logic for a file compare

I trying to write a programm for file compare. For example: file1 1 2 3 4 5 file2 1 2 @ 3 4 5 If I do it line by line, I get: 1 == 1; 2 == 2; 3 != @; 4 != 3; 5 != 4; != 5; But, the truth is ...

热门标签