2 Replies Latest reply on Apr 30, 2010 4:15 PM by mxvx

    Setting background style in a hbox

    mxvx Level 1



      I am using the following HBox inside a repeater to achieve alternatingitem color


      <mx:HBox id="hbox1" horizontalGap="0" backgroundColor="{(objRepeater.currentIndex%2==0 ? '#ffffff': '#000000')}" width="100%" >


      If I give a # or alphabets I am getting an error Implicit coercion of a value type String to an unrelated type uint


      Note:  The following is working fine



      id="hbox1" horizontalGap="0" backgroundColor="{(bundleCatagoryProductsListId.currentIndex%2==0 ? 111111: 000000)}" width="100%" >


      Any solutions?


      Thanks  & Regards