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

Macromedia Flash - Create Current Date and Time Notifications

Macromedia Flash is the focus of this article. In this lesson, you will learn how to create a file that announces the current date with flash.

Table of Contents

Understanding Macromedia Flash requires more than a headline. The overview below breaks down the key facts, changes, and user impact.

Macromedia Flash Overview

Step 1 Open a new Flash file, format the width and height of the file (Ctrl + J). Step 2 Select the Text Tool (T) and go to the Properties Panel (Ctrl + F3). In the left part, you will see a Text Type box drop down. Select Dynamic Text in this menu box:

Macromedia Flash - Create Current Date and Time Notifications

Draw a rectangle to display the date in this rectangle

Macromedia Flash - Create Current Date and Time Notifications (2)

Step 3 Go back to the Properties Panel (Ctrl + F3), in Var section enter date

Macromedia Flash - Create Current Date and Time Notifications (3)

Step 4 Repeat steps 2 and 3 to draw another text box to display the time right below the date range you just drawn, and the var value of this cell you enter time Step 5 Select the two text boxes you just drew, press F8 (Convet to Symbol) to convert this text box into a Movie Clip Symbol Step 6 Pick the Selection Tool (V) and click on the newly created Movie Clip. Go to the Action Script Panel (F9) and include the following code:

OnClipEvent (load) { weekdays = ["Sunday", "Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday"]; months = ["January", "February", "March", "April", "May", "June", "July", "August", "September", "Month" 10 "," November "," December "]; } onClipEvent (enterFrame) { myDate = new Date (); day = weekdays [myDate. GetDay ()]; Month = months [myDate. GetMonth ()]; Date = myDate. GetDate (); Year = myDate. GetFullYear (); Hour = myDate. GetHours (); Min = myDate. GetMinutes (); Ssec = myDate. GetSeconds (); date = "Today," + TAY + "date" + Date + "" + Month + ", year" + Year; time = "Now:" + Hour + "hour" + Min + "minutes" + Ssec + "seconds"; }

Try checking the product you just created. If not, you can download the source file here!

FAQ

What is the main topic of Macromedia Flash - Create Current Date and Time Notifications?

Understanding Macromedia Flash requires more than a headline.

Why is Macromedia Flash important?

The overview below breaks down the key facts, changes, and user impact.

What should readers remember about Macromedia Flash?

Macromedia Flash Overview Step 1 Open a new Flash file, format the width and height of the file (Ctrl + J).

Discussion

Reader Comments 0

Sign in with email or Google to join the discussion.