Hi Valy
That's perfect scense of use, the selectedItem claims to use to select some
values into the array of binded component and in other hands selectedIndex
it's to select the first item of this component. You don't have to do much
more if you can do this into a function then you will need to use the
creationComplete Property.
Best.
On 2/8/07, Valy Sivec <[EMAIL PROTECTED]> wrote:
If I declare <mx:ComboBox id ="cb" selectedIndex="-1"
dataProvider="{dp}"> and have the data provider populated, it seems that
the first row from the dataprovider shows as selected; if I do
cb.selectedIndex = -1 on creation complete event of the main app it works
as expected.
Am I missing something here?
Regards,
Valy
------------------------------
Expecting? Get great news right away with email
Auto-Check.<http://us.rd.yahoo.com/evt=49982/*http://advision.webevents.yahoo.com/mailbeta/newmail_tools.html>
Try the Yahoo! Mail
Beta.<http://us.rd.yahoo.com/evt=49982/*http://advision.webevents.yahoo.com/mailbeta/newmail_tools.html>
--
----------------------------
Igor Costa
www.igorcosta.org
www.igorcosta.com
skype: igorpcosta