I'm using Flash 8. I have an instance of DateChooser named calendar_dc in a movie named calendar. I have an instance of calendar in my main scene name calendar_mc.
In my calendar movie frame 1 I have actionsscript setting the style of calendar_dc.
calendar_dc._y = -45;
calendar_dc._x = -120;
In frame 1 of scene1 I use action script to collect data from a database (using a web service) to list events that exist when you click on a date.
What I'm trying to do is change the font color of the dates where there is an event. I have a function that goes through the dates to highlight and outputs the appropriate col and row number to use in this setstyle:
EX: _root.calendar_mc.calendar_dc.dateGrid["dayBock" + row + "label" + col].setStyle("color", "0xFFFFFF")
It seems that once the calendar is completely loaded I can't just set a style, so by the time my movie gets to the the ...dateGrid[..].setStyle... part of my code it's too late.
What would you suggest as a solution? Is there a way to Dynamically change the style of a DateChooser without having to reload it?