Re: [flexcoders] Why would mx.controls.NavBar.dataProvider not accept an array of DisplayObject? (3.0.0)

2008-05-22 Thread Fiouz
On Sun, May 18, 2008 at 7:09 AM, Ernesto Casasín [EMAIL PROTECTED] wrote: what if you use vs.dataProvider.removeItemAt(2) to remove completely the form button from your ButtonBar, later you could add it using vs.dataProvider.addItem(yourObject) Sorry for the long delay response, but I have to

Re: [flexcoders] Why would mx.controls.NavBar.dataProvider not accept an array of DisplayObject? (3.0.0)

2008-05-22 Thread Fiouz
On Sun, May 18, 2008 at 1:01 PM, Manish Jethani [EMAIL PROTECTED] wrote: Wrapping the view stack children into an array of plain objects is the only way to do that, from what I know. Perhaps this would be cool: ButtonBar id=buttons/ ViewStack id=vs custom:Chart id=chart icons=/

Re: [flexcoders] Why would mx.controls.NavBar.dataProvider not accept an array of DisplayObject? (3.0.0)

2008-05-18 Thread Manish Jethani
On 5/18/08, Fiouz [EMAIL PROTECTED] wrote: On Sat, May 17, 2008 at 6:24 PM, Manish Jethani [EMAIL PROTECTED] wrote: What is the reason behind throwing an error when an array of DisplayObject is given? Why would I have to wrap my DisplayObject instances in order to prevent this error?

Re: [flexcoders] Why would mx.controls.NavBar.dataProvider not accept an array of DisplayObject? (3.0.0)

2008-05-17 Thread Manish Jethani
On 5/16/08, Fiouz [EMAIL PROTECTED] wrote: I'd like to specify a custom Array dataProvider to a mx.controls.ButtonBar instead of binding it to a ViewStack instance. I'm doing the following: var array:Array = new Array(); array.push(chart); // chart is a DisplayObject

Re: [flexcoders] Why would mx.controls.NavBar.dataProvider not accept an array of DisplayObject? (3.0.0)

2008-05-17 Thread Fiouz
On Sat, May 17, 2008 at 6:24 PM, Manish Jethani [EMAIL PROTECTED] wrote: What is the reason behind throwing an error when an array of DisplayObject is given? Why would I have to wrap my DisplayObject instances in order to prevent this error? The idea was to prevent you from doing this:

Re: [flexcoders] Why would mx.controls.NavBar.dataProvider not accept an array of DisplayObject? (3.0.0)

2008-05-17 Thread Ernesto Casasín
Hi, what if you use vs.dataProvider.removeItemAt(2) to remove completely the form button from your ButtonBar, later you could add it using vs.dataProvider.addItem(yourObject) holpe it helps It's unfortunate that it is prevented though, as my goal was to selectively display ViewStack

[flexcoders] Why would mx.controls.NavBar.dataProvider not accept an array of DisplayObject? (3.0.0)

2008-05-16 Thread Fiouz
Hi, I'd like to specify a custom Array dataProvider to a mx.controls.ButtonBar instead of binding it to a ViewStack instance. I'm doing the following: var array:Array = new Array(); array.push(chart); // chart is a DisplayObject instance array.push(grid); //