一、Director显示日期的呈现方式共有下列几种:
Lingo 举例说明
the abbreviated date Sat, Sep 7, 2007
the long date Saturday, September 7, 2007
the short date 9/7/07
the date 9/7/07
Director显示时间的呈现方式共有下列几种:
Lingo 举例说明
the abbreviated time 1:30 PM
the long time 1:30:24 PM
the short time 1:30 PM
the time 1:30 PM
field (窗体文字)
field是一种动态文字,允许放入语法来改变文字的内容或值..
text field产生的方法为→
1. 先点击 Window→ Tool Palette,
2. Tool Palette工具栏跳出后,再点选field按钮,在舞台上按左键拖拉出一个 field
举例: 有时间及日期显示的画面制作步骤如下:
1. 产生一个Field,把它放在 舞台,时间设为 1 格。并且在Cast Window给予这个Field命名为 "mytime"。
2. 在Frame 1的Behavior加上以下Lingo:
on exitframe me
put the long time && the long date into field "mytime"
go the frame
end
执行预览播放,就会有时间日期的显示了!!
二、从柳洲交过来的茶文化光盘中,我看到他也加了时间日期,他的做法是:
添加两个文本演员“日期”或“时间”,加上lingo:
on exitFrame me
member("日期").text = _system.date()
member("时间").text = _system.time()
go the frame
end
本站仅提供存储服务,所有内容均由用户发布,如发现有害或侵权内容,请
点击举报。