Answered
Problem with duplicate movieclip loop
Hello, this is more a programming logic problem than actually
a problem with the code.
I am building a calendar where each month is built on the fly with duplicate movieclip for each day (with an empty textfield). I build the calendar according to how many days the month has, which day of the week it starts, etc, etc.
Then I load an external xml with news items. Afterwards, I need to check which days of this month have news items. At the moment i have 2 items in my xml feed ( http://s50699.gridserver.com/xml/news_en.xml). This all works fine.
However, I am only managing to highlight one day of that month — the last news item—, meaning that the loop is running twice, but it only records the last number, so the highlighted day that shows on the calendar, is, correspondingly, of that last news item.
I am enclosing the code below, and will be really appreciative of any help or general guidance.
I am building a calendar where each month is built on the fly with duplicate movieclip for each day (with an empty textfield). I build the calendar according to how many days the month has, which day of the week it starts, etc, etc.
Then I load an external xml with news items. Afterwards, I need to check which days of this month have news items. At the moment i have 2 items in my xml feed ( http://s50699.gridserver.com/xml/news_en.xml). This all works fine.
However, I am only managing to highlight one day of that month — the last news item—, meaning that the loop is running twice, but it only records the last number, so the highlighted day that shows on the calendar, is, correspondingly, of that last news item.
I am enclosing the code below, and will be really appreciative of any help or general guidance.