Actionscript stringOne和stringTwo的操作脚本

Actionscript stringOne和stringTwo的操作脚本,actionscript,for-loop,Actionscript,For Loop,我有两条线。一号线和二号线 我有代码,我想为一个名为TXT的变量运行 我怎么能像 for (stringOne and for stringTwo) { TXT = stringOne (or) stringTwo; ... stringOne or stringTwo = TXT; } 您必须将这两个字符串放在一个数组中,并使用foreach对字符串执行一些操作 看这个 FOR中的所有内容我都想对这两个字符串执行,但是我不想为它们中的每一个键入序列if操作。我希望有一个FOR语句,这样每个字

我有两条线。一号线和二号线

我有代码,我想为一个名为TXT的变量运行

我怎么能像

for (stringOne and for stringTwo) {
TXT = stringOne (or) stringTwo;
...
stringOne or stringTwo = TXT;
}

您必须将这两个字符串放在一个数组中,并使用foreach对字符串执行一些操作

看这个


FOR中的所有内容我都想对这两个字符串执行,但是我不想为它们中的每一个键入序列if操作。我希望有一个FOR语句,这样每个字符串都会经历对其执行的一系列操作。本系列的第一步是将一个名为TXT的字符串设置为其当前所在字符串的值。最后一步是将它当前所在的字符串设置为新值。