发新话题
打印

[Flash] 汽车标志连连看制作详例(四)

汽车标志连连看制作详例(四)

12Ctrl+F8,新建一个名字为“上传积分介面”的MC元件,新建6个图层,在图层1的第2帧按F7,导入一张PS好的背景图片,在20帧处按F5,图层2的第第2帧按F7,导入一张PS好的图片(就是图9中小游戏的图片),在22帧处按F6,确保图层2仍然选中,在第3帧按F7,加入文字“无排可消,重排一次”,在第21帧按F7;选中图层3,在第2帧按F7,加入文字“游戏结束”,在第22帧按F7,加入文字“恭喜你,过关了”;选中图层4,在第2帧按F7,用文字工具加入一个动态文本框,变量名为:_root.the_good,在第22帧按F6;选中图层5,在第2帧按F7,加入文字“保存你的积分”,第22帧按F6;选中图层6,第2帧按F7,导入一张PS好的图片,放在适当位置,按F8,转化为btn元件,在属性面板加入实例名:scjf,在22帧按F6;选中图层7,在第一帧加入ASstop(); 2帧加入AS
stop();
tellTarget ("_level0.thetimer") {

stop();

}
//End of TellTarget
tellTarget ("_level0") {

gotoAndStop(5);

}
//End of TellTarget
my_data = new Date();
year = my_data.getFullYear();
month = my_data.getMonth()+1;
if (month<10) {

m_month = "0"+month;

} else {

m_month = month;

}
//end if
date = my_data.getDate();
if (date<10) {

m_date = "0"+date;

} else {

m_date = date;

}
//end if
hour = my_data.getHours();
if (hour<10) {

m_hour = "0"+hour;

} else {

m_hour = hour;

}
//end if
minutes = my_data.getMinutes();
if (minutes<10) {

m_minutes = "0"+minutes;

} else {

m_minutes = minutes;

}
//end if
seconds = my_data.getSeconds();
if (seconds<10) {

m_seconds = "0"+seconds;

} else {

m_seconds = seconds;

}
//end if
for (i=0; i<6; i++) {

this["num"+i] = random(10);

}
//end of for
my_str = new String();
_root.orderId = my_str.concat(year, m_month, m_date, m_hour, m_minutes, m_seconds, num0, num1, num2, num3, num4, num5);
21帧按F7,加入ASstop();

附件

clip_image002.gif (50.12 KB)

2008-2-5 23:00

clip_image002.gif

TOP

汽车标志连连看制作详例(五)

22帧按F7,加入AS
stop();
tellTarget ("_level0.thetimer") {

stop();

}
//End of TellTarget
tellTarget ("_level0") {

gotoAndStop(5);

}
//End of TellTarget
my_data = new Date();
year = my_data.getFullYear();
month = my_data.getMonth()+1;
if (month<10) {

m_month = "0"+month;

} else {

m_month = month;

}
//end if
date = my_data.getDate();
if (date<10) {

m_date = "0"+date;

} else {

m_date = date;

}
//end if
hour = my_data.getHours();
if (hour<10) {

m_hour = "0"+hour;

} else {

m_hour = hour;

}
//end if
minutes = my_data.getMinutes();
if (minutes<10) {

m_minutes = "0"+minutes;

} else {

m_minutes = minutes;

}
//end if
seconds = my_data.getSeconds();
if (seconds<10) {

m_seconds = "0"+seconds;

} else {

m_seconds = seconds;

}
//end if
for (i=0; i<6; i++) {

this["num"+i] = random(10);

}
//end of for
my_str = new String();
_root.orderId = my_str.concat(year, m_month, m_date, m_hour, m_minutes, m_seconds, num0, num1, num2, num3, num4, num5);
按住Shift键,同时选中36的第3帧,按F7

9

TOP

发新话题