登录  
 加关注
   显示下一条  |  关闭
温馨提示!由于新浪微博认证机制调整,您的新浪微博帐号绑定已过期,请重新绑定!立即重新绑定新浪微博》  |  关闭

强大才能生存

国防、国力、国人

 
 
 

日志

 
 

(转) FLASH简单实用时钟制作教程   

2008-12-28 00:27:35|  分类: AS2.0课堂 |  标签: |举报 |字号 订阅

  下载LOFTER 我的照片书  |

 

第1帧代码:

time = new Date();
Day = Array("日", "一", "二", "三", "四", "五", "六");
hour = time.getHours();
minute = time.getMinutes();
second = time.getSeconds();
milli = int(time.getMilliseconds() / 10);
if (minute < 10)
{
    minute = "0" + minute;
} // end if
if (second < 10)
{
    second = "0" + second;
} // end if
if (milli < 10)
{
    milli = "0" + milli;
} // end if
if (hour < 12)
{
    half = "上午";
}
else
{
    half = "下午";
} // end else if
yeahtext = time.getFullYear();
daytext = time.getMonth() + 1 + "月 " + time.getDate() + " 日";
weektext = "星期 " + Day[time.getDay()];
timetext = hour + ":" + minute + ":" + second;
now = new Date();
clSeconds = now.getSeconds();
setProperty("se", _rotation, clSeconds * 6);
now = new Date();
clMinutes = now.getMinutes();
setProperty("mn", _rotation, clMinutes * 6);
now = new Date();
clHours = now.getHours();
clsm = clMinutes / 60;
setProperty("ho", _rotation, (clHours + clsm) * 30);

第2帧代码:

gotoAndPlay(1);
gotoAndPlay(1);
gotoAndPlay(1);
gotoAndPlay(1);

老虎作业:

 

 <P align=center><EMBED src=http://xfsh620627.16789.net/domName/xfsh620627/200862023553527.swf width=400 height=400 type=application/x-shockwave-flash allowNetworking="internal" allowScriptAccess="never"> </P>

 <P align=center><EMBED src=http://xfsh620627.16789.net/domName/xfsh620627/200862014946215.swf width=550 height=650 type=application/x-shockwave-flash allowScriptAccess="never" allowNetworking="internal"> </P>

 

  评论这张
 
阅读(1140)| 评论(3)

历史上的今天

评论

<#--最新日志,群博日志--> <#--推荐日志--> <#--引用记录--> <#--博主推荐--> <#--随机阅读--> <#--首页推荐--> <#--历史上的今天--> <#--被推荐日志--> <#--上一篇,下一篇--> <#-- 热度 --> <#-- 网易新闻广告 --> <#--右边模块结构--> <#--评论模块结构--> <#--引用模块结构--> <#--博主发起的投票-->
 
 
 
 
 
 
 
 
 
 
 
 
 
 

页脚

网易公司版权所有 ©1997-2018