1 Reply Latest reply on Jun 17, 2008 9:43 AM by matthew horn

    Dynamic variable inside repeater

    Ceção
      Hi,

      I'd like to use a variable as ID in a ProgressBar inside a repeater, to use this (by id) after by Script.
      How is it possible?

      Example:
      quote:


      <mx:Script>
      <![CDATA[
      var cont:int = 0;
      var bar:String = "";
      ]]>
      </mx:Script>

      <mx:Repeater>
      <mx:Script>
      <![CDATA[
      bar = "bar"+i.toString();
      i++;
      ]]>
      </mx:Script>
      <mx:ProgressBar direction="right" mode="manual" barColor="green" width="100%" id="{bar}" />

      </mx:Repeater>



      But it's not working.
      There is another way to do this?

      Thanks