I just create an outline of a calander with 7x5 dynamic text blocks. And I set instance names starts from o0 to o34. how to I fill up these calender? the below code doesnt works.
Code:
time = new Date()
var month = time.getMonth()
var year = time.getFullYear()
var arr:Array= new Array(31,28,31,30,31,30,31,31,30,31,30,31);
day1 = new Date(year,month,1,0,0,0,0);
var weekday = day1.getDay()
var str:Array = new Array(arr[month]);
for(var i=0;i<=arr[month];i++){
	str[i] = "o"+String(i);
}
var j=1;
for(var i=weekday;i<=arr[month];i++){
	str[i].text = j;
	Math.floor(j++);
}
week.text = weekday+" "+arr[month];