Hi,

I have the following code,

<mx:Script>
<![CDATA[
[Bindable]
public var myArray:Array=["A","B","C","D"];
]]>
</mx:Script>

<mx:ArrayCollection id="myAC" source="{myArray}"/>

<mx:Accordion x="139" y="303" width="200" height="200">
            <mx:Repeater id="myrep" dataProvider="{myAC}">
                <mx:Form id="{myrep.currentItem}" label="{myrep.currentItem}"/>
            </mx:Repeater>
 </mx:Accordion>

The error I get while building is,   '{myrep.currentItem}' is not a valid identifier.   Is this not allowed in this case ?

What I want to do eventually is to get the contents of the array from a back end database & then use them to show the panes of the Accordion. Is there an alternative way to achieve this ?

Thanks,
Aejaz




__._,_.___

--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com





SPONSORED LINKS
Web site design development Computer software development Software design and development
Macromedia flex Software development best practice


YAHOO! GROUPS LINKS




__,_._,___

Reply via email to