| 首页 | 新闻 | 网页 | 设计 | 色彩 | 原创 | 视觉 | 素材 | 动漫 | 酷站 | 策划 | 文案 | 访谈 | 运营 | 编程 | 数据库 | 服务器 | 下载 | 图库 | 
您的位置: 幽幽天空 > 网页 > 网页制作 > Flash教程 > ActionScript教程 > 文章正文 用户登录
如何加入透明Flas
为新浪博客添加fl
flashget下载联盟
265联盟:“Flash
新易网络提供100M
龙太极/100m/asp/
无限网络提供50M 
霞光科技50M/Htm/
苏能科技100M/FTP
悠博科技50M/FTP/

AS创作-实时时钟           

AS创作-实时时钟

作者:佚名 来源:不详 更新:2007-1-13 20:46:03 错误报告 我要投稿
 这两天做了一个实时的时钟~ 发上来和大家分享一下!
点击浏览该文件
点击浏览该文件

newDate = new Date();
newDate.month = newDate.getMonth()+1;
DateTextField =
newDate.getFullYear()+"-"+ newDate.month +"-"+ newDate.getDate();
now_hours = newDate.getHours();
if(length(now_hours)<2){
 now_hours = "0" + now_hours;
}
now_minutes = newDate.getMinutes();
if(length(now_minutes)<2){
 now_minutes = "0" + now_minutes;
}
now_seconds = newDate.getSeconds();
if(length(now_seconds)<2){
 now_seconds = "0" + now_seconds;
}
TimeTextField =
now_hours +":"+ now_minutes +":"+ now_seconds;
_root.second._rotation = newDate.getSeconds()*6; 
_root.minute._rotation = newDate.getMinutes()*6 + newDate.getSeconds()*(1/10);;
_root.hour._rotation = newDate.getHours()*30 + newDate.getMinutes()*(1/2);

原文件传上来,想要学的朋友可以下栽去看看
点击浏览该文件

文章录入:skyuu    责任编辑:skyuu 
  • 上一篇文章:

  • 下一篇文章:
  • 【字体: 】【发表评论】【加入收藏】【告诉好友】【打印此文】【关闭窗口
    网友评论:(只显示最新10条。评论内容只代表网友观点,与本站立场无关!)
    发表评论:
    姓名:  评 分: 1分 2分 3分 4分 5分
     
  • 严禁发表危害国家安全、政治、黄色淫秽等内容的评论。
  • 用户需对自己在使用幽幽天空服务过程中的行为承担法律责任。
  • 本站管理员有权保留或删除评论内容。
  • 评论内容只代表机友个人观点,与本网站立场无关。