درس الساعه والتاريخ باكشن بسيط للفلاش
يالله نبدء الدرس
اليوم درس سهل وبسيط عن الساععه والتاريخ في الفلاش
اول شي نختار اسيرت نيو سمبل insert+new symbol بعدين نختار موفي كلب
بعدين نروح لويندوز بعدين بنالس بعدين تكست اوبشن windos + panels +****options
بعدين نروح نختار dynamic **** بعدين اختر ادادة الكتابة A ارجع للمربع
dynamic **** واكتب في خانة variable الاسمcurrenttime بعد ما تختار ادادة الكتابه ارسم مربع بعد ما تكتب الاسم حط مربع ثاني من نفس ادادة الكتابه اذا سويت المربع الثاني ارجع لخانة variable الاسمcurrentdate واكتبها
وهذا راح يكون في لير واحد
انا تعبت بريح(((((((((((((((((((((((:





نرجع نكمل الدرس
ادري انكم مليتوا لكن خلاص الدرس قرب ينتهي
نظغط على المربعين ونختار اكشن بعدين حط الاكشن هذا انسخه من هنا والصقه في الاكشن
onClipEvent (load) {
days = new Array('Sunday','Monday','Tuesday','Wednesday','thu rsday','Friday','Saturday','Sunday');
months = new Array('January','February','march','April','May',' June','July','August','September','October','Novem
ber','December');
timedate = new Date();
}
onClipEvent (enterFrame) {
hour = (timedate.getHours()-1);
minutes = timedate.getMinutes();
seconds = timedate.getSeconds();
todaydate = timedate.getDate();
day = timedate.getDay();
dayname = days[day];
month = (timedate.getMonth()+1);
monthname = months[month-1];
year = timedate.getFullYear();
if (Length(minutes)==1) {
minutes = "0" + minutes;
}
if (Length(seconds)==1) {
seconds = "0" + seconds;
}
currenttime = hour + ":" + minutes + ":" + seconds;
currentdate = todaydate + "/" + month + "/" + year;
fulldate = dayname + " " + todaydate + " " + monthname + " " + year;
delete timedate;
timedate = new Date();
}
بعد كذا اوقولم مبروك على نهاية الدرس
هاه ابيكم تخلون الواجب صح
و هذا الساعة الللي انا سويتهاا




مع تحيات الاسير