How change chart height and width into 100% from code?

apache-flex, flex3, flex4, flex4.5

Solution

There are properties named percentWidth and percentHeight, set those to 100 .

Problem

I'm trying to dynamically change chart height and width into 100% from action script. " chart " is ID of the chart... chart.height=100% and chart.width=100%. Is this possible?. i did not find proper method to do this.

Original source