|
Try this… What you need to do
is add the index to be selected to the selectedIndices array. Here is an
example, I didn’t try this, but it should work. Let me know if you
have problems. var licenseArray : Array =
result.licenseStates.split(","); for (var i : int =
0;i<statesDP.length;i++) { for
(var j : int = 0;j<licenseArray.length;j++) { if
(statesDP[i] == licenseArray[j].label) parentApplication.mainDisplay.rtvr.licenseStates.selectedIndices.push(i); } } From: I am trying to dynamically select the items in a multi
select list -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com
SPONSORED LINKS
Your email settings: Individual Email|Traditional
Change settings via the Web (Yahoo! ID required) Change settings via email: Switch delivery to Daily Digest | Switch to Fully Featured Visit Your Group | Yahoo! Groups Terms of Use | Unsubscribe __,_._,___ |

