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.



                






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

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/flexcoders/

<*> To unsubscribe from this group, send an email to:
    [EMAIL PROTECTED]

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/
 



Reply via email to