Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6578785
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T15:48:56+00:00 2026-05-25T15:48:56+00:00

im building this interface in FLASH CS5, where i want to place a digital

  • 0

im building this interface in FLASH CS5, where i want to place a digital clock, i created a MovieClip InstanceName “RELOJ” in that MovieClip i have two layers, one with two Text Fields that are going to display Time and the other the Date, and on the other layer is the actionscript (AS3) of the whole clock and date.

ok, now i place that movieclip on my Main TimeLine, i play the swf but i dont see the clock working.

I have tried placing an Actions layer on my main timeline and writing “RELOJ.play()” but nothing…

How do i play that MovieClip?

UPDATE: This is the code inside the MovieClip. The Fonts are Embedded.

dateDisplay.addEventListener(Event.ENTER_FRAME,showTime);
diaDisplay.addEventListener(Event.ENTER_FRAME,showDia);

function showTime(event:Event):void {

  var myTime:Date = new Date();

  var theSeconds=myTime.getSeconds();
  var theMinutes=myTime.getMinutes();
  var theHours=myTime.getHours();
  var ampm:String;


  if (theHours>=12) {
    ampm="pm";
  } else {
    ampm="am";
  }

  if (theHours>=13) {
    theHours=theHours-12;
  }

  if (String(theMinutes).length == 1) {    
    theMinutes="0"+theMinutes; 
  } 
  if (String(theSeconds).length == 1) {     
    theSeconds="0"+theSeconds; 
  } 

  dateDisplay.text =theHours+":"+theMinutes+":"+theSeconds+" "+ampm;
} 

function showDia(event:Event):void {

var myDia:Date = new Date();

var dayText:String;

var theDia=myDia.getDay();
var theFechaDia=myDia.getDate();

if(theDia == 0) {
    dayText = "Domingo";
    } else if(theDia == 1) {
      dayText = "Lunes";
        } else if(theDia == 2) {
        dayText = "Martes";
            } else if(theDia == 3) {
            dayText = "Miercoles";
                } else if(theDia == 4) {
                dayText = "Jueves";
                    } else if(theDia == 5) {
                    dayText = "Viernes";
                        } else if(theDia == 6) {
                        dayText = "Sabado";
}


diaDisplay.text =dayText+" "+theFechaDia;

 }
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-25T15:48:57+00:00Added an answer on May 25, 2026 at 3:48 pm

    Select your textfield. Make it dynamic. Select what characters you want to embed. Test again. If nothing changes, add som graphics to the movieclip so you know it shows.

    enter image description here


    Your code works fine …

    enter image description here

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have an application that uses the .NET framework 3.5. I am building this
I'm working on building up an interface that I want to function as a
I am building a small GUI interface and I have a QLabel that draws
I'm building a data entry interface and have successfully bound the columns that have
I have this weird problem.. I'm building an in-house app that should register all
Hi all im building a web user interface. In this interface i use popup
I'm building this website and I have basically two questions about this page: http://sites.publishyours.com.br/silviamecozzi/pt/obra/deserto_das_palmas.php
I am building a class and in the interface for my class(es) I have
I have the following code: @interface Building : GameObject { CGPoint mapSquarePos; CGPoint SquareSize;
I have a class defined like this : @interface ServerCall : NSObject { //

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.