Flasher Archive

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


Subject: Re: FLASH: Internet Clock - Mac users with IE!! (#2)
From: Motomichi
Date: Thu, 31 Aug 2000 23:28:14 +0100

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"?
2. How can I control military time or not?
3. How can it use customized graphics for the all the numbers? I would like
add some sort of animation effect for each number.
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?
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..
Please take a look.
http://www.juvenilemedia.com/testarea/clocktest.html

Thanks thanks and many thanks to you all

onClipEvent (load) {
dNow = new Date();
}
onClipEvent (enterFrame) {
sNowFullYear = dNow.getFullYear();
sNowMonth = dNow.getMonth();
sNowDate = dNow.getDate();
sNowHour = dNow.getHours();
sNowMinutes = dNow.getMinutes();
sNowSeconds = dNow.getSeconds();
sNowMilliseconds = dNow.getMilliseconds();
if (length(sNowMinutes) == 1) {
sNowMinutes = "0"+sNowMinutes;
}
stfDisplayTime =
+sNowFullYear+":"+sNowMonth+":"+sNowDate+":"+sNowHour+":"+sNowMinutes+":"+sN
owSeconds+":"+sNowMilliseconds;
// Turn on alarm if current time is equal to or past event time
if (_root.dInTime <= dNow && !_root.lAlarmOn && !_root.lMessageRead) {
// the next stmt prevents this loop from being executed repeatedly,
// which retriggers mcAlarm so it never gets a chance to flash
_root.lAlarmOn = true;
_root.mcDisplayTime.mcAlarm.gotoandPlay("alarmOn");
sDisplayMinutes = _root.dInTime.getMinutes();
if (length(sDisplayMinutes)==1) {
sDisplayMinutes = "0"+sDisplayMinutes;
}
_root.tfReminder = "(" + string(number(_root.dInTime.getMonth())+1)
+ "/" + _root.dInTime.getDate() + " " + _root.dInTime.getHours() + ":" +
sDisplayMinutes + ") " + _root.reminder1;
}
delete dNow;
dNow = new Date();
}


> From: Helen Triolo <designerati-technica [dot] com>
> Organization: i-Technica
> Reply-To: flasheratchinwag [dot] com
> Date: Thu, 31 Aug 2000 13:08:14 -0400
> To: flasheratchinwag [dot] com
> Subject: Re: FLASH: Internet Clock - Mac users with IE!! (#2)
>
> On second thought, although I love to be self-promoting ;-) if you want
> a Flash 5 fla that does exactly what you want to do, it would be better
> to start with Branden's example at
> http://www.figleaf.com/development/flash5/
> (no extraneous textfile reads and alarm mc's...)
>
> Helen
> ---------------------------------------------------------------
> Flash 5 Journal: http://i-technica.com/flash5 (new: alarm 8/31)
> Flash Q&A archive: http://i-technica.com/flashlist
>
>> Motomichi wrote:
>>>
>>> I tested on Netscape on Mac and works fine, which means that it doesn't work
>>> only on IE(mac). I went to several sites with clock sample as follows and
>>> never works on IE. I believe it's a problem with javascript. Anyone havs any
>>> idea how to fix the script compatible with IE with Mac??
>>>
>>> http://194.78.87.12/berto/clockdate.asp
>>> http://www.flashplanet.com/tutorials/DateTime/datetime_tutorial.html\
>>>
>
> ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> 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
>
>


~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
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, Helen Triolo

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