Home Tutorials Forums Articles Blogs Movies Library Employment Press
Old 09-23-2011, 12:36 PM   #1
Registered User
Join Date: Sep 2011
Posts: 1
Default List selectedItem issue + dataprovider update


I use a list which is filled with objects in flex3. I get my objects from mysql/php.
I have got a timer to refresh my list, in case a new client was added somewhere. To do this I get all my clients from the database again and put them in the list. In this case my selectedItem gets lost aswell as the scrollposition. Scrollposition was easy to fix, with the 'verticalScrollPosition' property. I want to do the same with the selectedItem, but this doesn't work. On the change event I keep my selectedItem in a new object, which I try to set again in the resulthandler of my getClient function.

I get every time that there's a term undefined and without properties, which is about my list.selectedItem. My variable in which I keep my object traces as an object, so this cannot be the problem.

How can I solve this? Also, is there an easier way to update my list?
lies is offline   Reply With Quote

Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

All times are GMT. The time now is 08:16 AM.

Follow actionscriptorg on Twitter


Powered by vBulletin® Version 3.8.5
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Ad Management plugin by RedTyger
Copyright 2000-2013 ActionScript.org. All Rights Reserved.
Your use of this site is subject to our Privacy Policy and Terms of Use.