1 Reply Latest reply on Dec 13, 2010 3:48 PM by im_just_here

    color picker not returning the right value?

    im_just_here

      I have a color picker which I set using

       

      Menu.ColorPicker.selectedColor = 0x339900;

       

      It displays the correct color when ran. If I try

       

      trace(Menu.ColorPicker.selectedColor);

       

      it traces 0. Why is this? Even stranger is later I set some xml parameters using

       

      xml.parameter[0] = Menu.ColorPicker.selectedColor;
           xml.parameter[0].@name = "color1";
           xml.parameter[1] = Menu.ColorPicker2.selectedColor;
           xml.parameter[1].@name = "color2";

       

      and sometimes it works and sometimes it doesn't. What is going on here?