all groups > flash actionscript > december 2006 >
You're in the

flash actionscript

group:

date / login issue


date / login issue nevin
12/5/2006 7:50:37 PM
flash actionscript:
Hi - I am struggling with a script that is working perfectly except for
December each year.. Here is the script:

-------------------------------------------------
if (currentMonth == "October" || currentMonth == "November" || currentMonth
== "December") {
if (_root.mylogin == "2537") {
gotoAndPlay("Scene 2", 1);
} else {
logintimes = (logintimes+1);
_root.mylogin = "";
trace(logintimes);
if (logintimes == 3) {
gotoAndStop("Scene 3", 1);
} else {
_root.mylogin = "";
_root.errorlogin.gotoAndStop("Scene 1", 1);
}

--------------------------------------------------------------------------------
------------

It seems very strange to me that each other month of the year works fine.. I
gone over an over it and cant see anything off in the code around "December"..
Any ideas out there?

Much appreciated

Chris


Re: date / login issue kglad
12/5/2006 9:32:03 PM
Re: date / login issue nevin
12/5/2006 9:42:26 PM
Re: date / login issue kglad
12/5/2006 9:46:05 PM
i didn't write that code and i surely cannot see where currentMonth is defined,
but it must be defined somewhere.

use the actionscript find button to search for currentMonth and see where it's
defined and, if it's defined to be an array element, find the array definition.
Re: date / login issue nevin
12/5/2006 9:59:28 PM
Got it - thank you very much.. I found the code on the root and it was missing 1 month.. I appreciate your input!
Re: date / login issue kglad
12/5/2006 10:40:21 PM
AddThis Social Bookmark Button