If you want to change a style in Actionscript, you need to use the setStyle 
method:

table.setStyle("fontSize", 12);

Sunil

--- In flexcoders@yahoogroups.com, Raymond Brown <silenttr...@...> wrote:
>
> We have a datagrid which we would like to change the fontsize of dynamically. 
> i.e.
> 
> <mx:DataGrid id="table"/>
> <mx:Button label="+" click="increaseFontSize()"/>
> 
> private function increaseFontSize(): void {
> table.fontSize += 4;
> }
> 
> The problem is you can't do something like table.fontSize.  At least it 
> doesn't work for me.  I want to use a function so we can restrict the size 
> increase and decrease in another function.
>


Reply via email to