im sure this issue has been covered somewhere before, but ive done a
lot of searching and didnt come up with anything.

i am using a recordset to populate a combobox (using
DataGlue.bindFormatStrings...but i dont think this problem has
anything to do with remoting).  The first item in the recordset is the
first option displayed in teh combobox...but you cant select that
option. Well, you can select it, but it wont fire a change event, so
you need to select something else first, then go back and select the
first option.

i tried listening for the 'open' event from the combobox, then setting
its selectedIndex to null, but that doesnt work.

i would up setting up these listener methods, but it seems like a long
workaround:

        /**
                stores the currently selected index of the opening combobox
                we store it and compare it to the selectedIndex when the 
combobox closes,
                so that we can disptach a changed event even someone selects 
the same item
        */
        function onCBOpen(evtObj:Object){
                prevIndex = null;
                prevIndex = evtObj.target.selectedIndex;
                trace('prevIndex = '+prevIndex)
                
        }
        /**
                check if someone selected the same item as was previously 
selected,
                if it is manually dispatch an event
        */
        function onCBClose(evtObj:Object){
                if(prevIndex == evtObj.target.selectedIndex){
                        evtObj.target.dispatchEvent({type:'change', 
target:evtObj.target});
                }
        }


anyone have a better solution?
_______________________________________________
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com

Reply via email to