LostMind
01-03-2012, 10:17 AM
Hello!
This is my first post in the year 2012, and I would like to say for everyone Happy New Year!
I want to make a flash screensaver with a name-day function, but when I want to print out the current name, I came to this error message:
ReferenceError: Error #1069: Property 2 not found on String and there is no default value.
Herre is my code(I only copy the January month):
var Jan:Array = new Array("","ÚJÉV","Ábel","Genovéva","Titusz","Simon",
"Boldizsár","Attila","Gyöngyvér","Marcell",
"Melánia","Ágota","Ernő","Veronika",
"Bódog","Lóránt","Gusztáv","Antal","Piroska",
"Sára","Sebestyén","Ágnes","Vince","Zelma",
"Timót","Pál","Vanda","Angelika","Károly,","Adél","Martina",
"Marcella");
var month_name:Array = ["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];
var myDate:Date = new Date();
var cmonth_name = month_name[myDate.month];
var cday = myDate.day;
trace (myDate);
trace ("month name: "+month_name[myDate.month]);
trace ("day in number: "+cday);
trace ("name-day: "+cmonth_name[cday]);//this line not working
Oh, yes, and I want the current name-day to display a dynamic text field, let say it's name is: txt_nameday
Can anyone help? Please can anyone repaire my code?
This is my first post in the year 2012, and I would like to say for everyone Happy New Year!
I want to make a flash screensaver with a name-day function, but when I want to print out the current name, I came to this error message:
ReferenceError: Error #1069: Property 2 not found on String and there is no default value.
Herre is my code(I only copy the January month):
var Jan:Array = new Array("","ÚJÉV","Ábel","Genovéva","Titusz","Simon",
"Boldizsár","Attila","Gyöngyvér","Marcell",
"Melánia","Ágota","Ernő","Veronika",
"Bódog","Lóránt","Gusztáv","Antal","Piroska",
"Sára","Sebestyén","Ágnes","Vince","Zelma",
"Timót","Pál","Vanda","Angelika","Károly,","Adél","Martina",
"Marcella");
var month_name:Array = ["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];
var myDate:Date = new Date();
var cmonth_name = month_name[myDate.month];
var cday = myDate.day;
trace (myDate);
trace ("month name: "+month_name[myDate.month]);
trace ("day in number: "+cday);
trace ("name-day: "+cmonth_name[cday]);//this line not working
Oh, yes, and I want the current name-day to display a dynamic text field, let say it's name is: txt_nameday
Can anyone help? Please can anyone repaire my code?