0 Replies Latest reply on Jun 21, 2007 8:07 AM by Keltaz

    Skinning CS3 Components

    Keltaz
      I'm having trouble understanding how to skin the flash components other than just changing around the original skin. I've looked over google and the docs and haven't had much luck. What I want to do is change the color of a row on the datagrid based on a value. But I'll settle for changing the text color, setting the row as "selected" by default with actionscript instead of the mouse or changing individual cells, but I haven't had a whole lot of luck figuring out how.

      Here are some things that I'd tries that don't work:

      var middleRow:Object = dg.getItemAt(1);
      middleRow.selected=true;
      middleRow.setStyle("backgroundColor",0xFFFF00);
      dg.setStyle("backgroundColor",0xFFFF00);

      All of these don't do anything, I don't get an error but no colors change either.

      Can someone help? Thanks so much!