|
主题: 如何写if the temi>="???",总是报错?
|
 wuqi
职务:普通成员
等级:1
金币:0.0
发贴:54
注册:2000/11/22 9:08:17
|
#12001/4/3 11:09:42
如何写if the temi>="???",总是报“if the temi>="60"?“这样的错,错在那里? 请帮帮忙!!
|
 wuqi
职务:普通成员
等级:1
金币:0.0
发贴:54
注册:2000/11/22 9:08:17
|
#22001/4/3 11:15:09
是if the time>="xx"!!
|
 Call Me Simon
职务:普通成员
等级:2
金币:2.0
发贴:646
注册:2000/9/19 13:56:51
|
#32001/4/3 11:36:01
the time将反馈回一个string而不是number, 比较大小时要注意这一点。
|
 wuqi
职务:普通成员
等级:1
金币:0.0
发贴:54
注册:2000/11/22 9:08:17
|
#42001/4/3 12:16:09
那该怎么写?老大。我是请教关于等待一定时间后跳转到另一影片的问题,有同志教我用如下方法 如果要跳到另一个 movie 就要用到lingo 了! on biginsrite me starttimer end on exitframe me if the timer>= "需要等待的时间值“-------单位是 ticks 60ticks=1second go movie "xx"
end if end exitframe 我对此是刚刚接触,希望老大给予帮助,最好能说的详细一点,谢谢!!!!
|
 dexn
职务:普通成员
等级:1
金币:1.0
发贴:157
注册:2000/12/7 21:54:20
|
#52001/4/3 13:36:38
property pstarttime on beginsprite me pstarttime=the timer end on exitframe me mytime=(the timer)-pstarttime if mytime>3*60 then --3*60为你需要等待的时间值(3秒钟) go to the frame+1--需要跳转到的地方 else go to the frame end if end the timer可以用the milliSeconds代替.单位是毫秒(1秒=1000毫秒)
starttime是数字电影,声音等的属性,在这好象不起作用的. the time 正如flyingbird所说,返回的是string,其值是系统时间,如果用来判断停留的时间,估计精度不够,它以分钟计,当然你可以参考long time.
|
 Call Me Simon
职务:普通成员
等级:2
金币:2.0
发贴:646
注册:2000/9/19 13:56:51
|
#62001/4/3 13:39:36
是的, timer是系统属性, 不过startTimer可以使timer 回零。
on beginSprite me
startTimer
end
on exitFrame me
if the timer <=5*60 then --不要忘了then, 这里的等待时间是5秒
go the frame
else
go to movie "xx"
end if
end
编辑历史:[这消息被flyingbird编辑过(编辑时间2001-04-03 13:48:02)]
|