# Set variable in mx 2004

**URL:** <https://forum.kirupa.com/t/set-variable-in-mx-2004/108542>\
**Category:** Uncategorized\
**Created:** [April 26, 2004, 4:10pm UTC](https://forum.kirupa.com/t/set-variable-in-mx-2004/108542 "2004-04-26T16:10:29Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![amdorsey](https://avatars.discourse-cdn.com/v4/letter/a/858c86/32.png) [@amdorsey](https://forum.kirupa.com/u/amdorsey)\
**Post date:** [April 26, 2004, 4:10pm UTC](https://forum.kirupa.com/t/set-variable-in-mx-2004/108542/1 "2004-04-26T16:10:29Z")

</div>

I have a dynamic textField called “currentYear”  
I want to set the variable to “1767”

I am using the following actionscript which does not work.

currentYear=1767;

Did something change in actionscript 2.0 that I don’t know about?  
This is such a simple thing I just can’t get it to work.
