Macromedia Flash - Create current date and time notifications
In this lesson, you will learn how to create a file that announces the current date with flash. Just use the given code to quickly create this file. You can place this file on websites, where it is necessary to display the current date and time.
In addition to being more lively, create more colors or background images for this date and time notification.
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:
Draw a rectangle to display the date in this rectangle
Step 3
Go back to the Properties Panel (Ctrl + F3), in Var section enter date
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!
You should read it
- Macromedia Flash - Making fireworks effects
- Macromedia Flash - Complete Flash banner design
- Macromedia Flash - Advanced icon in the flash menu
- Macromedia Flash - Digital clock
- Macromedia Flash - Push objects away from the cursor
- Macromedia Flash - Advanced masking with action script
- Macromedia Flash - Create menu effects
- Macromedia Flash - Vivid photo effects
May be interested
- Macromedia Flash - Create analog clock in Flashthis tutorial will show you how to create a real working clock using flash effects.
- Macromedia Flash - Create Text running in bannerdetails of this article will guide how to create text running on extremely attractive banner. you can use this text to create in ads, slideshows or websites to stand out. through this article, you will also learn a few tips for creating dynamic flash letters for use for other purposes.
- Macromedia Flash - Create banner text effectthis article will show you how to create a beautiful text effect through some special flash tips. you won't need to use action script but simply create effects based on available tools. this tutorial can be applied when creating banners, advertisements and slideshows ...
- Macromedia Flash - Create premium banners with flashwith this article, you will learn how to create fuzzy flash banners by using masks without using action script code.
- Macromedia Flash - Create a snow effectthrough this tutorial, you will create a snow effect simply and quickly. you can use this effect on headers, banners on holidays or christmas cards ...
- Macromedia Flash - Product image advertising effectsin this article, we will show you how to create a product advertising effect in flash. you can use this effect when you need to introduce a new product launch or in banner ads. this effect does not need to use any action script code but only created with mask in flash.
- Macromedia Flash - The spotlightjust a few simple steps in flash 8.0 you can create a nice effect: the spotlight effect.
- Quickly insert current date and time into a cell in Excelin excel, you can quickly fill out current date, month, and time information as static or dynamic values. the static value is the date and time value at the time of filling without automatically updating on subsequent days when you open or perform calculations on a spreadsheet.
- Macromedia Flash - Vivid photo effectsthrough this tutorial, you will learn how to create a vivid photo effect with some basic flash tips. this article does not need to use action script code.
- Macromedia Flash - Create photo album using mask techniquein this tutorial, we will show you how to create a stylish photo album display using a mask technique in the flash program. you will not have to use any action script fragment in this tutorial. this article can be applied to create photo albums, website banners, advertising galleries ...