Flasher Archive

[Previous] [Next] - [Index] [Thread Index] - [Previous in Thread] [Next in Thread]


Subject: Re: FLASH: Internet Clock - Mac users with IE!! (#2)
From: Helen Triolo
Date: Fri, 1 Sep 2000 02:53:05 +0100

Hi again, Motomichi,

Motomichi wrote:
>
> Hi, Helen and all
>
> I got your great sample(htriolo_alarm.fla) and working on it now. The script
> I have so far is below.
>
> I have several questions on the file.
>
> 1. How can I always display the number as "01","02" instead of "1","2"?

that's what this part is for:

if (length(sNowMinutes) == 1) {
sNowMinutes = "0"+sNowMinutes;
}
> 2. How can I control military time or not?

You can format the time anyway you want. See the Date object
description in the Flash help section for a description of all the
methods and what they return. The strangest is the month, which returns
0-11 instead of 1-12, but I'm glad mm stuck to the emca standard if
that's what it is.

> 3. How can it use customized graphics for the all the numbers? I would like
> add some sort of animation effect for each number.

Again, it's up to you to format, animate, do whatever you want with
it. Date() just hands you the current month,day,year,hour,minute,second
(and even msec) -- you do what you want with it.

> 4. I have the year, month, date, hours, minutes, milliseconds in the clock,
> For some reason Month and milliseconds don't work, the rest is ok. Any
> reason for this?

Maybe it's the 0-11 month problem?

> 5. At last, I uploaded the files to the server but when I try to open it
> fails to open .swf file nor html file with the file. It works fine locally..

I only meant for it to run locally. The example at the top of the
page is a simplified version to show that the time part works in a swf
(on a server or local). But the "instructions" I put at the page say
publish it as an exe. If you just want an online clock, take a look at
Branden's at http://www.figleaf.com/development/flash5/ -- cleanest
code on the net!


ciao,
Helen
---------------------------------------------------------------
Flash 5 Journal: http://i-technica.com/flash5 (new: alarm 8/31)
Flash Q&A archive: http://i-technica.com/flashlist

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
NudeGuru.com is proud to sponsor the Flasher list
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
IT'S THE ART OF MONEY, HONEY!
Tips and Advice from some of the most popular Flash
artists + industry power-brokers on how to hold onto
your rights, negotiate contracts and get full value
for your work.http://www.nudeguru.com from Franke James
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
To unsubscribe or change your list settings go to
http://www.chinwag.com/flasher or email helpatchinwag [dot] com


Replies
  Re: FLASH: Internet Clock - Mac users wi, Motomichi

[Previous] [Next] - [Index] [Thread Index] - [Next in Thread] [Previous in Thread]