# How can I make it display date?

**URL:** <https://forum.kirupa.com/t/how-can-i-make-it-display-date/4963>\
**Category:** flash\
**Created:** [August 27, 2002, 4:48am UTC](https://forum.kirupa.com/t/how-can-i-make-it-display-date/4963 "2002-08-27T04:48:08Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![AirOgre](https://avatars.discourse-cdn.com/v4/letter/a/6bbea6/32.png) [@AirOgre](https://forum.kirupa.com/u/AirOgre)\
**Post date:** [August 27, 2002, 4:48am UTC](https://forum.kirupa.com/t/how-can-i-make-it-display-date/4963/1 "2002-08-27T04:48:08Z")

</div>

Hi,  
In my site I need to have the date available for viewers. I know how to display the date of the user and I would like to create an onion skin animation for each separate chatacter(yes, I know how to create an onion skin animation but not how to do it separate for each character).  
My problem is this: I want to display the name of the month, not the number. Now I want each character animated separately in the date animation.  
for example:  
S would appear with an onion skin animation, then about a quarter second later all the other characters with the same animation, E, P, T, E, M, B, E, R, [space], 2, 4, [space], 2, 0, 0, 2.  
How can I code actionscript so that I can do this with the user’s date? Sorry for my lack of description, its late and I can’t think well. Thanks in advance for any helpful replies.

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [August 27, 2002, 5:02am UTC](https://forum.kirupa.com/t/how-can-i-make-it-display-date/4963/2 "2002-08-27T05:02:50Z")

</div>

Wow, sounds ambitious.

My only ideas would be to follow this tutorial…

[http://www.kirupa.com/developer/actionscript/digital\_clock.asp](http://www.kirupa.com/developer/actionscript/digital_clock.asp)

You don’t need all of it, just the part about the date. Then you can add if statements to activate your animation. Such as…

if (myMonth = “september”){  
\_root.septemberClip.gotoAndPlay(2);  
}

I hope you understand what I mean.

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [August 27, 2002, 5:54am UTC](https://forum.kirupa.com/t/how-can-i-make-it-display-date/4963/3 "2002-08-27T05:54:20Z")

</div>

you might also need to use some string manipulation methods.

I wish I had brought my book with me.(thank god for [http://www.macromedia.com/support/flash/action\_scripts\_dict.html](http://www.macromedia.com/support/flash/action_scripts_dict.html)) I’ll check this code in the morning to see what errrors it has. I know it has some… but the idea is here anyway.

```php

function separateLetters(something){
    new Array letterHolder();
    for(var i=0;i<something.length;i++){
        letterHolder*=something.charAt(i);
    }
}

```

What this does is populate an array called ‘letterHolder’ with each letter in a word. I used something similar for my texacular effects.

From there it’s a simple matter of giving the individual text feilds a value of each of the array elements.

Like I said there might be some errors there… I haven’t tested it yet… but I will when I get a chance.

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [August 27, 2002, 9:03am UTC](https://forum.kirupa.com/t/how-can-i-make-it-display-date/4963/4 "2002-08-27T09:03:37Z")

</div>

That’s the idea. I think Jubby did something like that in his text effect tutorial. You can see it here:  
[Jubby’s tute](http://www.kirupa.com/developer/actionscript/ascript_text_animation.asp)

pom :asian:

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [August 27, 2002, 11:11am UTC](https://forum.kirupa.com/t/how-can-i-make-it-display-date/4963/5 "2002-08-27T11:11:35Z")

</div>

Hey pom… have you noticed that the ‘code’ word doesn’t work anymore to display code? I used ‘php’ here because I saw that lostinbeta had done so earlier with good effect, but I’d like to know why. If you talk to K before me, ask him about it.

I forgot in my example that new array set up should be taken out and placed separately somewhere frame one.

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [August 28, 2002, 10:01am UTC](https://forum.kirupa.com/t/how-can-i-make-it-display-date/4963/6 "2002-08-28T10:01:59Z")

</div>

```auto
testing

```

Must be a glitch in the Matrix, Upu. Quick, take the red pill!
