Internet Commerce

Partners & Affiliates

Developer Channel


Featured Flash FLA
Gallery Downloads 11401 Flash Movies | 5 New Flash Movies Added
What's New | Top 100

Featured FLA

»  Author: Nick Kouvaris
»  Title: Znax
»  Description: Znax is a board game. Click 4 tiles of the same color and form squares as big as you can. You will erase all the tiles inside the square and collect points. Get maximum score if you make a square with game edges.
»  More by: Nick Kouvaris


Random FLAs | Add Flash Movie
Featured Flash Site
Gallery Downloads 4941 Flash Sites | 1 New Flash Links
What's New | Top 100 Flash Site

Featured Site

»  Author Agence WOP Digital Agency
»  Title: Electricdrum
»  Description: French WOP Agency, 3D websites, Flash (Papervision, Away 3D), event or institutional projects. The agency operates on all digital projects: consulting, design, graphic design, development, online communication. The WOP agency follows you on the implementation of original, creative and optimized digital projects.


Random Links | Add your own Flash Related Links
Flash Tutorials 1481 Tutorials 7 New Tutorials Added!
What's New | Top100

» How To Make A Simple Animation Using Christmas Clips
» Simple Step by step flash game tutorial Spot the diffrence
» How To Make A Moving Text Slide
» Create Flash Banner With Text Float Effect
» How To Make Zoo Photos Slideshow
» How To Make A Dolphin Photos Slideshow
» How To Make A Fathers Day Slideshow
» How To Make A Transparent Background of Your Flash File
» Create Flash Banner With Text Disco Light Effect Today we will introduce you a Text Disco Light eff
» Unknown Tag: Title10
Random Tutorial | Add Site


Tutorials Home What's New Top Rated Submit myTutes Random!

Search Tutorials


Tutorials Tutorials » Actionscripting/Basic

Categories 12 HOUR Digital Clock
Author: Daniel Agostinelli

 
Page 2
«prev 1 2 3 4 next»

The first step is to create the actual interface. You can do this how you want, as long as you have the dynamic text boxes (more later). for now, to make things easy, just follow how I do it. (By the Way, this is my first ever flash tutorial, so please bear with any mistakes).

Ok, lets begin. open a new flash document, set the size to 550x250, and a frame rate of about 12fps(frames per second). set the background to white. See the image below:

Open your library window (windows/library) if its not already opened. Press the plus sign in the library. Set the behavior to movie clip, name will be interface. You should be taken to a new place, where the stage is fully white. This is where we create/edit out clip "interface". This will be out clock. Select the rectangle tool (stroke: transparent, fill: black). create a rectangle of any size on the stage. using the arrow tool, select the rectangle. with the property inspector open, set the width to 300, and height to 100. open the align window and centre it to the stage.

Select the text tool. In the text tool drop down menu, select dynamic text. Dynamic text boxes can hold user imputed data, changing data or anything else. These are used when the text displayed will not always be the same eg. date and time. Make the text colour a bright green, and make the text size 38. Create a text box to the left of the rectangle, covering about one third or the rectangle. In the box, type "HR". this is so we know out hours will always fit. In the var box, type timehours. This is pretty much the name of the data that will be displayed in the field. Resize the textbox to its minimal size, making sure the text fits on one line. Repeat this another two times, changing the middle text box to var timeminutes, and making the text say MN. In the right text box, set the variable name to timeseconds, and the text in the box should say SC. make the font size of the seconds box size. Create a final text box in the middle of the hour and minutes box. Change the type to static, and make a colen(:).

Finally, create small AM and PM static texts to go along the side. Align everything like i have done below:

«prev 1 2 3 4 next»

» Level Basic

Added: : 2004-05-10
Rating: 6.03 Votes: 26
Hits: 1119
» Author
I am very new to flash, and have just learnt about actionscripting. This is my first tutorial, so please bear with any mistakes.
» Download
Download the files used in this tutorial.
Download (8 kb)
Get conversion and unzipping tools for PC and Mac here!

» Forums
More help? Search our boards for quick answers!

Please rate this tutorial, 10 is the top rating, you can also click the comments link to read/write a review.
10 9 8 7 6 5 4 3 2 1
Read or Post Comments