Clear, practical technology insights BSOD Code Lookup · Windows Error Code Lookup · Wi-Fi Troubleshooting · PC Troubleshooting Checklist

Macromedia Flash - Digital Clock: Timedate

Timedate is the focus of this article. Time is money and we must always know how to hold it. Review the key facts and practical impact.

Table of Contents

Macromedia Flash - Digital Clock: Timedate covers the essential facts behind the topic, including what changed, why it mattered, and how it affected users.

Timedate Overview

Step 1 Create a new Flash file with size of 250 x 70px Step 2 Use the Text Tool (T), in the Properties Panel ( Ctrl + F3 ) set the Static Text and enter the Time text, under Time enter Date. See the picture below!

Macromedia Flash - Digital Clock: Timedate

Macromedia Flash - Digital Clock: Timedate (2)

Macromedia Flash - Digital Clock: Timedate (3)

Step 3 Then select the Text Tool (T), in the Properties Panel (Ctrl + F3) set the Dynamic Text, use the drag and drop method to draw 2 rectangles to describe the time and date as shown below.

Macromedia Flash - Digital Clock: Timedate (4)

Step 4 Select the two rectangles you just drawn and press F8 on the keyboard to convert it into a Movie Clip as shown below

Macromedia Flash - Digital Clock: Timedate (5)

Step 5 Double-click the newly created Movie Clip (rectangle) or right-click the image and select Edit in Place.

Macromedia Flash - Digital Clock: Timedate (6)

Step 6 Select the rectangle corresponding to Time, open the Properties Panel (Ctrl + F3), in the Var section enter the time.

Macromedia Flash - Digital Clock: Timedate (7)

Macromedia Flash - Digital Clock: Timedate (8)

Step 7 Select the rectangle corresponding to Date, in the Properties Panel in Var enter date

Macromedia Flash - Digital Clock: Timedate (9)

Step 8 Go back to the main scene (Scene1) select the rectangles that have moved the Movie Clip, open the Action Script Panel (F9) and include the following script:

OnClipEvent (load) { days = new Array ('Sunday', 'Monday', 'Tuesday', 'Wednesday', 'thursday', 'Friday', 'Saturday', 'Sunday'); months = new Array ('January', 'February', 'march', 'April', 'May', 'June', 'July', 'August', 'September', 'October', 'November', 'December'); timedate = new Date (); } onClipEvent (enterFrame) { hour = timedate. GetHours (); minutes = timedate. GetMinutes (); seconds = timedate. GetSeconds (); todaydate = timedate. GetDate (); day = timedate. GetDay (); dayname = days [day]; month = timedate. GetMonth (); monthname = months [month]; year = timedate. GetFullYear (); if (Length (minutes) == 1) { minutes = "0" + minutes; } if (Length (seconds) == 1) { seconds = "0" + seconds; } time = hour + ":" + minutes + ":" + seconds; date = dayname + "" + todaydate + "" + monthname + "" + year; delete timedate; timedate = new Date (); }

And the last thing is to check our products. Is it too easy? You can download the source file here if you don't have time to do it yet.

FAQ

What happened in Macromedia Flash - Digital Clock: Timedate?

Macromedia Flash - Digital Clock: Timedate covers the essential facts behind the topic, including what changed, why it mattered, and how it affected users.

What factors influenced Timedate?

Timedate Overview Step 1 Create a new Flash file with size of 250 x 70px Step 2 Use the Text Tool (T), in the Properties Panel ( Ctrl + F3 ) set the Static Text and enter the Time text, under Time enter Date.

What was the practical impact on users?

See the picture below!.

Discussion

Reader Comments 0

Sign in with email or Google to join the discussion.