getFullYear() method is not working

[FONT=Arial][SIZE=3]I created a dynamic text box linked to a movie clip’s keyframe in one layer and the actions code in another layer in order to insert text by code (Actionscript 3.0).[/SIZE][/FONT]

[FONT=Arial][SIZE=3]Oddly enough, the getFullYear(), in the below code, is not retrieving the current year, so, instead of getting the output “© 2008 Artemis Art”, I get just “© Artemis Art”.[/SIZE][/FONT]

[FONT=Arial][SIZE=3]Yet when I did a very simple Flash program ( just the main stage, one layer with a link to a dynamic text box and the below code ) it WORKS ![/SIZE][/FONT]

[FONT=Arial][SIZE=3]What is the bug in this situation ? [/SIZE][/FONT]

[FONT=Arial][SIZE=3]Here is the code:[/SIZE][/FONT]


[FONT=Arial][COLOR=blue][COLOR=blue][FONT=Arial][SIZE=3]**var ydate:Date = new Date();**[/SIZE][/FONT][/COLOR]
 
[COLOR=blue][FONT=Arial][SIZE=3]**var yy = ydate.getFullYear();**[/SIZE][/FONT][/COLOR]
 
[COLOR=blue][FONT=Arial][SIZE=3]**coright.text = "© "+ yy + " Artemis Art";**[/SIZE][/FONT][/COLOR]
[/COLOR][/FONT]

That’s a epic question :lol:

What do you mean, Gazurt ? I:-)