Hi, Neeraj:
Thanks for your input. My xmllist is lightweighted and i think it's not the
point.
As your second solution : breaking  for loop..................
Do you mean that the loop for creating ColumnSeries may lead to this error.
But i have to filter out the "online" data to the ColumnChart . "online"
data will changed dynamically  in xmllist. So i can't predefine how many
Columnseries  need at  some time and It 's runtime thing. What can i do ?
Thanks.

2009/7/23 Neeraj <[email protected]>

>
> I think your xmllist is too long ..... you solve this error bye two
> way . one by increasing default time out or other by breaking  for
> loop..................
>
> Neeraj
>
> On Jul 22, 6:51 am, Liang Ma <[email protected]> wrote:
> > Hi,guys:
> > I got Flex #1502 error upon the Flex "ColumnChart" after running for a
> few
> > hours.
> > The stacktrace shows :
> > *Error: Error #1502: A script has executed for longer than the default
> > timeout period of 15 seconds.*
> >     at mx.core::UITextField/set moduleFactory()
> >     at _SCCASEPerfMonitor_mx_managers_SystemManager/create()
> >     at
> >
> mx.core::UIComponent/createInModuleContext()[E:\dev\3.1.0\frameworks\projects\framework\src\mx\core\UIComponent.as:9035]
> >     at
> >
> mx.core::UIComponent/createInFontContext()[E:\dev\3.1.0\frameworks\projects\framework\src\mx\core\UIComponent.as:9008]
> >     at
> >
> mx.charts.series::ColumnSeries/updateTransform()[C:\work\flex\dmv_automation\projects\datavisualisation\src\mx\charts\series\ColumnSeries.as:1272]
> >     at
> >
> mx.charts.chartClasses::Series/validateTransform()[C:\Work\flex\dmv_automation\projects\datavisualisation\src\mx\charts\chartClasses\Series.as:1486]
> >     at
> >
> mx.charts.chartClasses::Series/updateDisplayList()[C:\Work\flex\dmv_automation\projects\datavisualisation\src\mx\charts\chartClasses\Series.as:828]
> >     at
> >
> mx.charts.series::ColumnSeries/updateDisplayList()[C:\work\flex\dmv_automation\projects\datavisualisation\src\mx\charts\series\ColumnSeries.as:1354]
> >     at
> >
> mx.core::UIComponent/validateDisplayList()[E:\dev\3.1.0\frameworks\projects\framework\src\mx\core\UIComponent.as:6293]
> >     at
> >
> mx.managers::LayoutManager/validateDisplayList()[E:\dev\3.1.0\frameworks\projects\framework\src\mx\managers\LayoutManager.as:605]
> >     at
> >
> mx.managers::LayoutManager/doPhasedInstantiation()[E:\dev\3.1.0\frameworks\projects\framework\src\mx\managers\LayoutManager.as:678]
> >     at 
> > Function/http://adobe.com/AS3/2006/builtin::apply()<http://adobe.com/AS3/2006/builtin::apply%28%29>
> >     at
> >
> mx.core::UIComponent/callLaterDispatcher2()[E:\dev\3.1.0\frameworks\projects\framework\src\mx\core\UIComponent.as:8565]
> >     at
> >
> mx.core::UIComponent/callLaterDispatcher()[E:\dev\3.1.0\frameworks\projects\framework\src\mx\core\UIComponent.as:8508]
> >
> > *I use flex "ColumnChart" with dynamic columns to represent some dynamic
> > info. And the dataprovider for the "ColumnChart" refreshed at a regular
> > interval. I use following code to create and refresh the columns :*
> >             ..........
> >             var series : Array  = new Array;
> >             var index : int = 0;
> >             for each(item in xmlList)
> >             {
> >                 if(item.state == "online")
> >                 {
> >                     var columnSeries : ColumnSeries = new ColumnSeries();
> >                     var yField : String = item.name;
> >                     var value : String = item.connections_active;
> >                     columnSeries.yField = yField;
> >                     columnSeries.displayName = yField + ": " + value;
> >                     columnSeries.setStyle("fill",fill[index]);
> >                     columnSeries.setStyle("labelPosition","inside");
> >                     series[index] = columnSeries;
> >                     index ++;
> >                 }
> >             }
> >
> >             IdInstancesConnectionChart.series = series;
> >             IdInstancesConnectionChart.validateNow();
> >             ........
> > *Could you pls take a look at it. Any feedback is great helpful.Thanks.*
> >
> > Grant Ma
> >
>

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Flex 
India Community" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/flex_india?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to