Quantcast
Channel: Adobe Community: Message List
Viewing all articles
Browse latest Browse all 86170

Re: Converted Path to Button Border Allways hidden

$
0
0

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:

  1. I have no problem at all running the file. Everything is as intended except the buttons borders.
  2. 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.
  3. 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.
  4. 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


Viewing all articles
Browse latest Browse all 86170

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>