[flexcoders] Re: Null object error on test for null

2010-08-17 Thread Sunil D
Which line does the null pointer error occur on? Not that this is you problem, but I always check for null when casting with 'as'. Sunil --- In flexcoders@yahoogroups.com, Tom McNeer tmcn...@... wrote: In the function below, I begin by testing to see if a particular object is null (the

[flexcoders] useVirtualLayout not working for simple Image based itemRenderer

2010-03-03 Thread Sunil D
Hi all, I ran into an issue where my List control was creating an itemRenderer for each list item even though useVirtualLayout=true. Not sure if this is a known issue, or really even a bug. I found several ways to work around the problem. The issue seems to be that if I use a simple

[flexcoders] Re: Change grid font size via actionscript?

2010-03-03 Thread Sunil D
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

[flexcoders] Re: A question about stage resizing

2010-02-19 Thread Sunil D
I think you're comparing apples and oranges here. On the Flex side you're using Canvas inside a ViewStack. I don't have much experience w/Flash CS3, but I think it's safe to assume you're not using these controls on the CS3 side. The ViewStack's dimensions will be that of the initial active