这里有没有人知道如何将下面的这个表达式转换为术语:
for(var channel=1;channel<30;channel+=3)
下面已经有关于如何使用for
语句的示例repeat with
,我的问题是我不知道如何channel+=3
在 lingo 语句中使用,因为它们只提供了channel++
。
//Lingo
on puppetize
repeat with channel = 1 to 30
_movie.puppetSprite(channel, TRUE)
end repeat
end puppetize
// Javascript
function puppetize()
{
for(var channel=1;channel<30;channel++)
{
_movie.puppetSprite(channel, true);
}
}
希望你能帮我解决这个问题。谢谢。