"Pitchsole" <webforumsuser@macromedia.com> wrote in message
news:ehgito$dkt$1@forums.macromedia.com...
> Hey all, i have come to this fourm a few times and every time i posted
> help i
> got it and i got the right help to. So here i am back again. Now here my
> problem. i made this count down for a certain event. (yes i got help from
> someone) and it works fine i made all the images it works great,,,so i
> though
> then i thought id experament. So i changed my computers time zone and
> guess
> what. The Time changed on the count down. Can i make my count down'er',
> count
> down from a specific time zone so it will count down and be the same for
> everyone? so no matter what time zone you have it will ONLY be for a
> certain
> type of time zone? Heres my Count down so far;
>
>
http://snro.ifastnet.com/wipe.html >
> And heres the script i have for my count down. Can someone give me a
> better
> code, so it will keep my counter the exact same just make it count down
> from
> only 1 specific Time zone? (AS below)
>
> [Q]stop();
>
> currentDate = new Date();
> thisYear = currentDate.getFullYear();
>
> // Date( year, month-1, date [, hour [, minute [, second [,
> millisecond]]]])
> eventDate = new Date(thisYear, 9, 28, 12);
> eventMillisecs = eventDate.getTime();
>
> counter.onEnterFrame = function(){
> currentDate = new Date();
> currentMillisecs = currentDate.getTime();
> this.msecs = eventMillisecs - currentMillisecs;
> if (this.msecs <= 0){
> play();
> return;
> }
> this.secs = Math.floor(this.msecs/1000);
> this.mins = Math.floor(this.secs/60);
> this.hours = Math.floor(this.mins/60);
> this.days = Math.floor(this.hours/24);
> this.msecs = string(this.msecs % 1000);
> this.secs = string(this.secs % 60);
> this.mins = string(this.mins % 60);
> this.hours = string(this.hours % 24);
> this.days = string(this.days);
>
> while (this.msecs.length < 3) this.msecs = "0" + this.msecs;
> if (this.secs.length < 2) this.secs = "0" + this.secs;
> if (this.mins.length < 2) this.mins = "0" + this.mins;
> if (this.hours.length < 2) this.hours = "0" + this.hours;
> while (this.days.length < 3) this.days = "0" + this.days;
>
> for(movie in this){
> if (this[movie]._parent == this) this[movie].evaluateFrameFrom(this);
> }
> };
>
> MovieClip.prototype.evaluateFrameFrom = function(variableClip){
> var nameArray = this._name.split("_");
> var numberSet = variableClip[nameArray[0]];
> var character = number(nameArray[1]);
> var frame = 1 + number(numberSet.charAt(character));
> if (this._currentframe != frame) this.gotoAndStop(frame);
> };[/Q]
>
> Thanks!
>