打开APP
userphoto
未登录

开通VIP,畅享免费电子书等14项超值服

开通VIP
Director日期及时间的显示
一、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
本站仅提供存储服务,所有内容均由用户发布,如发现有害或侵权内容,请点击举报
打开APP,阅读全文并永久保存 查看更多类似文章
猜你喜欢
类似文章
【热】打开小程序,算一算2024你的财运
java时间戳和日期相互转换
PL/SQL变量
Oracle中根据Date型转换成Java对应的long型毫秒数
官方文档:javascript字段
英语口语简单学:时间和日期英语口语句型
jstl fmt功能说明
更多类似文章 >>
生活服务
热点新闻
分享 收藏 导长图 关注 下载文章
绑定账号成功
后续可登录账号畅享VIP特权!
如果VIP功能使用有故障,
可点击这里联系客服!

联系客服