Quero passar esse bloco de código que tem uns 15 semelhantes usando o
repeater


<!--repeater de 10-->
<mx:HBox width="100%" height="100%">

<mx:LinkBar direction="vertical"
dataProvider="{viewStack_{repeat.currentIndex}}" />

<mx:ViewStack id="{'viewStack_'repeat.currentIndex}" width="100%"
height="100%">

<mx:Canvas label="Relatório {repeat.currentIndex}"
icon="@Embed('assets/images/report.png')" width="100%" height="100%">


</mx:Canvas>

</mx:ViewStack>

</mx:HBox>
<!--repeater de 10-->



Tentei usar o seguinte código



<mx:Repeater dataProvider="{new Array(10)}" id="repeat">

<!--repeater-->
<mx:HBox width="100%" height="100%">

<mx:LinkBar direction="vertical"
dataProvider="{viewStack_{repeat.currentIndex}}" />

<mx:ViewStack id="viewStack_{repeat.currentIndex}" width="100%"
height="100%">

<mx:Canvas label="Relatório {repeat.currentIndex}"
icon="@Embed('assets/images/report.png')" width="100%" height="100%">


</mx:Canvas>

</mx:ViewStack>

</mx:HBox>
<!--repeater-->

</mx:Repeater>

Aparece o erro

'viewStack_{repeat.currentIndex}' is not a valid identifier.

Como devo proceder ?








--~--~---------~--~----~------------~-------~--~----~
Você recebeu esta mensagem porque está inscrito na lista "flexdev"
Para enviar uma mensagem, envie um e-mail para flexdev@googlegroups.com
Para sair da lista, envie um email em branco para [EMAIL PROTECTED]
Mais opções estão disponíveis em http://groups.google.com/group/flexdev
-~----------~----~----~----~------~----~------~--~---

Responder a