My problem is very similar to http://forums.adobe.com/thread/823041
I have a Tree data structure whereby its dataprovider changes after a filter function is applied.
The dataProvider is bound and it changes when a custom event is dispatched.
The filtering works and the filtered items are shown on the screen in the tree, but when I try to select the item after the dataprovider has changed the browser freezes and I get the following stacktrace when debugging (the same stacktrace as the thread 823041)
[Fault] exception, information=Error: Error #1502: A script has executed for longer than the default timeout period of 15 seconds.
at mx.controls.listClasses::ListBase/setSelectionDataLoop()[E:\dev\4.5.1\frameworks\projects \mx\src\mx\controls\listClasses\ListBase.as:7380]
at mx.controls.listClasses::ListBase/commitSelectedItems()[E:\dev\4.5.1\frameworks\projects\ mx\src\mx\controls\listClasses\ListBase.as:7314]
at mx.controls.listClasses::ListBase/commitSelectedItem()[E:\dev\4.5.1\frameworks\projects\m x\src\mx\controls\listClasses\ListBase.as:7279]
at mx.controls.listClasses::ListBase/set selectedItem()[E:\dev\4.5.1\frameworks\projects\mx\src\mx\controls\listClasses\ListBase.a s:3466]
at com.db.lrc.creditrisk.common.controls::SelectionTree/visiblySelectItem()[C:\dev\upgrade-f lex-branch\crcommon-upgrade-flex-branch-andreas\common-flex-controls\src\main\flex\com\db\ lrc\creditrisk\common\controls\SelectionTree.as:35]
at mx.core::UIComponent/callLaterDispatcher2()[E:\dev\4.5.1\frameworks\projects\framework\sr c\mx\core\UIComponent.as:12208]
at mx.core::UIComponent/callLaterDispatcher()[E:\dev\4.5.1\frameworks\projects\framework\src \mx\core\UIComponent.as:12146]
I have tried calling validateProperties() just like eprevot123 suggested but to no avail.
I have also found this thread http://forums.adobe.com/message/777903#777903 which suggests to use validateNow() but it still doesn't work.
I'm using Flex 4.5.1
Is this a bug with the SDK?