Actionscript-3: Dynamic Text
===

To start off, I am quite new at Actionscipt, so please bear with me. I am trying to make a text field that changes as the variable *date* goes up. This is my coding (it is on a layer):
	
    var day:int = 1
    var date:TextField = new TextField();
    if (day = 1) date.txt = "August 1";
    if (day = 2) date.txt = "August 2";
    date.x = 548.1
    date.y = 58.5
    	
    var format: TextFormat = new TextFormat
    format.color - 0xFFFFFF;
    format.font = "Constantia";
    format.bold = false
    txt.setTextFormat( format);
	 
	 stage.addChild(date)

I am getting errors for this however, and I am confused as to why. The error is this: 

1151: A conflict exists with definition date in namespace internal. Source: var date:TextField = new TextField();

Again, I am new at all of this, and I would appreciate any help at all. Thank-you.