Ned,
Thank you immensely for looking into this. It took me a couple of extra days to try few things. Here are my latest findings:
- I have no problem at all running the file. Everything is as intended except the buttons borders.
- If I preview the output/movie into Flash or Browser I can see the buttons borders. It doesn’t matter if the color is the original White fill or any other color.
- If I include the file in the ASP page I also can see the borders when the XML file is empty (each button is a room on a floor plan and when the SQL query returns no room then no button is re-painted) and all rooms stay (again) the original White fill.
- If any room is found and the button is repainted then the borders disappear. This made me think that the buttons are not re-painted the correct way. Here are the few lines of code involved in the process:
for each (var Zone:XML in myXML.zone)
{
var ColorUp:ColorTransform = new ColorTransform();
ColorUp.color = Zone.@up;
var ColorOver:ColorTransform = new ColorTransform();
ColorOver.color = Zone.@over;
for each (var btn:XML in Zone.room)
{
myButton = getChildByName("btn_" + btn.@number);
if (myButton != null)
{
myButton.upState.transform.colorTransform = ColorUp;
myButton.downState.transform.colorTransform = ColorUp;
myButton.overState.transform.colorTransform = ColorOver;
Thank you again!
Tin