I want to convert the following code to ActionScript (mxml works fine):
<mx:Panel title="Some Title" width="400" height="300">
<s:Scroller width="100%" height="100%"/>
<mx:ColumnChart id="myChart" attribute="..." />
This doesn't work straight forward:
setupChart(); //setup myChart
var scroll:Scroller = new Scroller();
scroll.percentWidth = 100;
scroll.percentHeight = 100;
scroll.viewport = myChart;