# I know, another Calendar question :(

**URL:** <https://forum.kirupa.com/t/i-know-another-calendar-question/31060>\
**Category:** flash\
**Created:** [September 17, 2003, 8:23pm UTC](https://forum.kirupa.com/t/i-know-another-calendar-question/31060 "2003-09-17T20:23:52Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![Mikol27](https://avatars.discourse-cdn.com/v4/letter/m/e99b99/32.png) [@Mikol27](https://forum.kirupa.com/u/Mikol27)\
**Post date:** [September 17, 2003, 8:23pm UTC](https://forum.kirupa.com/t/i-know-another-calendar-question/31060/1 "2003-09-17T20:23:52Z")

</div>

Ok, I’m just trying to keep my calendar simple----All I need is a way to determine the current month- and then have it call a static movie that has and individual months on each (I know it means manually creating 12 movies).

This is for younger kids, so our goal is only to bring up the month so they can see the month Name and see the names of the days of the week. The actual days don’t need to conform to a real calendar.

Any help is greatly appreciated.

-Michael

---

<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:** [July 27, 2004, 4:02am UTC](https://forum.kirupa.com/t/i-know-another-calendar-question/31060/2 "2004-07-27T04:02:56Z")

</div>

hi,

i have the similar project like Mikol27, My boss ask me to create a standalone calendar (not for website) for our clients that only display the current month. So I’ll send it each month, ex: for August only send the August calendar. In this calendar, it will display the current date, month (of course), and year. When it shows 27 July, it shows a quote of the day, in 28 July it shows different quote.

- Do I have to add this :

> 

onClipEvent(load){  
now = new Date();  
date = [“1”, “2”, “3”, “4”, “5”, “6”, “7”, “8”, “9”, “10”, “11”, “12”, “13”, “14”, “15”, “16”, “17”, etc];  
months = [“January”, “Febuary”, “March”, “April”, “May”, “June”, “July”,  
“August”, “September”, “October”, “November”, “December”];  
}  
onClipEvent(enterFrame){  
\_root.month=months[now.getMonth()]+" “+now.getDate()+” "+now.getFullYear();  
}

Thanks for your help 🙂

---

<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:** [July 27, 2004, 4:22am UTC](https://forum.kirupa.com/t/i-know-another-calendar-question/31060/3 "2004-07-27T04:22:38Z")

</div>

hi,

i’m new here and still learning actionscript. i have the similar project like Mikol27, My boss ask me to create a standalone calendar (not for website) for our clients that only display the current month. So I’ll send it each month, ex: for August only send the August calendar. In this calendar, it will display the current date, month (of course), and year. When it shows 27 July, it shows a quote of the day, in 28 July it shows different quote. So I make a new dynamic text with var=date

In actionscript I have add this:

> 

[size=1]onClipEvent(load){  
now = new Date();  
dates = [“1”, “2”, “3”, “4”, “5”, “6”, “7”, “8”, “9”, “10”, “11”, “12”, “13”, “14”, “15”, “16”, “17”, “18”, “19”, “20”, “21”, “22”, “23”, “24”, “25”, “26”, “27”, “28”, “29”, “30”, “31”];[/size]

[size=1]months = [“January”, “Febuary”, “March”, “April”, “May”, “June”, “July”, “August”, “September”, “October”, “November”, “December”];  
}  
onClipEvent(enterFrame){  
\_root.month=months[now.getMonth()]+" “+now.getDate()+” "+now.getFullYear();[/size]  
[size=1]\_root.date=dates[now.getDate()];[/size]  
[size=1]} [/size]  
[size=1]if(\_root.date == “1”){  
\_root.holiday\_holder.loadMovie(“quote1.swf”);  
}[/size]

It shows error :P. Anyone could help me? 🙂

Thanks for your help

---

<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:** [July 27, 2004, 6:48am UTC](https://forum.kirupa.com/t/i-know-another-calendar-question/31060/4 "2004-07-27T06:48:10Z")

</div>

Hi,

I just figured it out, i put

> 

[size=1]if(\_root.date == “1”){  
\_root.holiday\_holder.loadMovie(“quote1.swf”);  
}[/size]

in the wrong place :P. It should be in the onClipEvent handler. It works now.  
The new problem is how can i get the quotes without load the external swf. Because the calender will be in one swf or exe file.

I can do that with tellTarget, but perharps you have a better option?

thanks again

---

<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:** [July 27, 2004, 5:03pm UTC](https://forum.kirupa.com/t/i-know-another-calendar-question/31060/5 "2004-07-27T17:03:56Z")

</div>

If it’s just a quote that you want to show up, why not use a dynamic text box and load in the quote from a text file on the server, or make an array with all of your quotes like you did with the days and months above and call it like that? I guess, it all depends on what the quote actually is and if it needs to be a swf or exe file.

---

<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:** [July 28, 2004, 1:55am UTC](https://forum.kirupa.com/t/i-know-another-calendar-question/31060/6 "2004-07-28T01:55:58Z")

</div>

Hi Freddythunder,

thanks for the reply. i think i can’t ise a text file, because it will distributed via email. if it could, how can the swf/exe file from client get the text file from server? how to put the text var?

about the second option, it would be nice. But since i still don’t understand much about actionscript, how could i put the array? Is it like this:  
First, I define the variable:

> 

dates = [“1”, “2”, “3”, “4”, “5”, “6”, “7”, “8”, “9”, “10”, “11”, “12”, “13”, “14”, “15”, “16”, “17”, “18”, “19”, “20”, “21”, “22”, “23”, “24”, “25”, “26”, “27”, “28”, “29”, “30”, “31”];  
months = [“January”, “Febuary”, “March”, “April”, “May”, “June”, “July”, “August”, “September”, “October”, “November”, “December”];  
quote=[“ora et labora”, “sometimes you can do 10 hours of work and it looks like 1”, etc]

Then:

> 

if(\_root.date == “29”){  
\_root.quote=quotes[now.getQuote()];

Is it like that?

Thanks.

ps: sorry for my bad english language
