Hi,

You don't put components in a dataProvider. The ButtonBar reads from the model of a dataProvider which has for example a label property in the list of objects.

You can also just specify an array of strings to be the label names. The ButtonBar will always use a Button for it's button. ;-)

Peace, Mike

On 8/22/06, Gunther <[EMAIL PROTECTED]> wrote:

Why does the following code throws an exception:

Error: ERROR: The dataProvider of 'a ToggleButtonBar' must be
String, ViewStack, Array, or IList.

<mx:ToggleButtonBar x="10" y="60" width="640" height="202">
<mx:Array>
<mx:Button label="Button 1" />
<mx:Button label="Button 2" />
<mx:Button label="Button 3" />
</mx:Array>
</mx:ToggleButtonBar>

If I use this code:

<mx:ToggleButtonBar x="10" y="60" width="640" height="202">
<mx:Array>
<mx:String>Test</mx:String>
<mx:Button label="Button 1" />
<mx:Button label="Button 2" />
<mx:Button label="Button 3" />
</mx:Array>
</mx:ToggleButtonBar>

There is no problem ??

I want to make a toggable button bar where each button is skinnable
and has the possibility for an up/down/selected image.






--
What goes up, does come down. __._,_.___

--
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