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?

Reply via email to