<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>
I know that sounds more intuitive. Hopefully, next version would have update on it..
I remember, we actually did things that way while we were designing ButtonBar/ToggleButtonBar. But we changed it to current implementation later for some reasons.
-abdul
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, MikeOn 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
- Visit your group "flexcoders" on the web.
- To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]
- Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.
__,_._,___
- Re: [flexcoders] mx:ToggleButtonBar / mx:Button Abdul Qabiz
- Re: [flexcoders] mx:ToggleButtonBar / mx:Button Michael Schmalle
- Re: [flexcoders] mx:ToggleButtonBar / mx:Button Michael Schmalle
- Re: [flexcoders] mx:ToggleButtonBar / mx:But... Abdul Qabiz
Reply via email to

