Entheos
HOME   |  CONTACT
CUSTOM SERVICES
FLASH TUTORIALS
 Flash MX Tutorials
 Motion tween
 Shape tween
 Working on layers
 Motion Guide
 Masking
 Custom curser
 Bouncing effect
 Straight ripple effect
 Circular ripple effect
 Simple Preloader
 Timeline Preloader
 Digital Clock
 Analog Clock
 Free Flash Games!
   
FREE STUFF
 Flash MX 2004 Tutorials
 Fireworks Tutorials
 Dreamweaver Tutorials
 Web Design Tutorials
 Photoshop Tutorials
 Promotion Articles
 Free Backgrounds
 Free Flash Games
 Free Web Templates
 Inspirational ecards
 Web Resources
 Sign Our Guestbook
   
FREE NEWSLETTER
 

Email :
Subscribe
Unsubscribe

Flash MX 2004 Digital Clock with download .fla

 Written by
 Jayanthi

This tutorial will explain how to create a digital Clock in Flash MX 2004. The download .fla file is also included at the end of the tutorial.
Please note:
1. You need to have Flash Player 7.0 installed to view the Flash animation.
2. Flash MX 2004 must be installed in your system to download the .fla file.

It is very simple to build a digital clock. All you need to do is follow the steps given below.

STEPS TO FOLLOW

  1. Insert 3 layers in your timeline window and name them, "background", "text" and "actions". Similar to the one shown below


  2. Select Frame1 of background layer, Design the framework for your digital clock.
  3. Select frame2 and press F5

  4. Now go to Frame1 of your text layer and insert Dynamic text field in your work area. Select frame2 and press F5

    To insert a Dynamic text field- Select text tool from your tool box,
    Select Dynamic text from Text pop-up menu in the Property inspector.
    Click on your work area wherever you want the digital clock to appear.

  5. Name this Dynamic text field instance as "clock_txt"
  6. Go to frame1 of actions layer. Copy and paste the below mentioned script in the action panel


    time=new Date(); // time object
    var seconds = time.getSeconds()
    var minutes = time.getMinutes()
    var hours = time.getHours()
    if (hours<12) {
    ampm = "AM";
    }
    else{
    ampm = "PM";
    }
    while(hours >12){
    hours = hours - 12;
    }
    if(hours<10)
    {
    hours = "0" + hours;
    }
    if(minutes<10)
    {
    minutes = "0" + minutes;
    }
    if(seconds<10)
    {
    seconds = "0" + seconds;
    }
    clock_txt.text = hours + ":" + minutes + ":" + seconds +" "+ ampm;



  7. Now go to frame2 of actions layer and press F6 to insert a new keyframe.
    Still keeping the play head on the frame2, go to action panel and copy paste the below mentioned script.

    gotoAndPlay(1);

Congratulations!! your digital clock is ready.
Press Ctrl+Enter to view your clock.

Download the .fla file


This page is part of the Entheos free tutorials section. These tutorials cover Flash MX 2004 Tutorials, Fireworks tutorials and effects, Dreamweaver tutorials, Photoshop effects, Web design tutorials and Promotion articles. If you enjoyed our tutorials, please do sign our guestbook with your comments and feedback.

No portion of these materials may be reproduced in any manner whatsoever, without the express written consent of Entheos. Any unauthorized use, sharing, reproduction or distribution of these materials by any means, electronic, mechanical, or otherwise is strictly prohibited.


Newest Ready-made Flash, Photoshop & Dreamweaver Website Templates

Thousands of ready-made Flash, Photoshop, Dreamweaver & Frontpage website templates in more than 100 categories! Templates priced at $40 - $65 only!

With each template you buy you will also receive a free membership at Ultravertex and can download more than 8000 professional photos, 3500 clipart items and 900 fonts for FREE!

 WEBSITE DESIGN
 LOGO DESIGN
 FLASH DEVELOPMENT
 BUSINESS CARDS
 PRINT DESIGN
 BANNER DESIGN
   
READY-MADE WEBSITE DESIGNS
 WEBSITE TEMPLATES
 DWT TEMPLATES
 FLASH ANIMATED
 FULL FLASH TEMPLATES
 FULL WEBSITES
 FULL PACKAGE
 ECOMMERCE WEBSITES
 ZEN CART TEMPLATES
 FLASH PHOTO GALLERY
 DYNAMIC FLASH
 FLASH INTROS
 PHOTOSHOP LOGOS
 FIREWORKS LOGOS
   
READY-MADE TEMPLATES
 All Categories
 Business
 Christian
 Family
 Fashion & Beauty
 Flash
 Flash Intros
 Food / Restaurant
 Full Flash
 General
 Government
 Health & Medical
 Interior Design
 Music
 Studio MX 2004
 Online Learning
 Personal
 Pets / Animals
 Photography
 Photoshop
 Professionals
 Real Estate
 Sports
 Telecom
 Travel / Recreation
   
Home | About | Services | Package Deals | Website Templates | Portfolio | Client Testimonials | Free Tutorials | Jobs | Site Map | Contact
Copyright © 2004-2005 www.entheosweb.com - Entheos. All Rights Reserved. Privacy Policy.