In this case it's perhaps easier to listen for an event from the ZoomSlider
(change event?) and set the chartPanel's width in the event handler.

On Tue, Sep 23, 2008 at 3:57 PM, netdeep <[EMAIL PROTECTED]> wrote:

>   I have a loop which creates a given number of charts at runtime (based
> on user requests) and
> adds them to my main application. I would like for a slider to be also
> associated with each
> chart so that the width of the chart can be adjusted. I can create
> everything, but I do not
> know how to do the bindings between the chart width and the slider since
> everything is in
> actionscript. Here is a sample of the relevant code from the loop.
>
> var vFrame:VBox = new VBox();
> var zoomSlider:ZoomSlider = new ZoomSlider(); // a custom version of
> HSlider
> vFrame.addChild(zoomSlider);
> vFrame.addChild(chartPanel);
> this.addChild(vFrame);
>
> // this line doesn't work
> BindingUtils.bindProperty(chartPanel, "width", zoomSlider,
> zoomSlider.value*5);
>
> How can I get the binding to work with dynamic elements like this?
>
>  
>



-- 
Haykel Ben Jemia

Allmas
Web & RIA Development
http://www.allmas-tn.com

Reply via email to