bda!
unread,Jun 1, 2010, 4:14:11 PM6/1/10Sign in to reply to author
Sign in to forward
You do not have permission to delete messages in this group
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to Adobe Developers of Greater Orlando
I'm having trouble getting the display of my combo box to update.
with a new FLA and only dragged combobox (cbStuff), and button
(btnAddItem) on the stage,
I add this actionscript to the timeline
var str:String="a b c";
cbStuff.addItem( { label: str } );
cbStuff.selectedIndex=0;
btnAddItem.addEventListener(MouseEvent.CLICK,doAddItem);
function doAddItem(e:Event):void
{
cbStuff.replaceItemAt( { label: str+" d" }, cbStuff.selectedIndex );
}
I wanted to see "a b c d" as the selected item. Instead, "a b c" is
selected and "a b c d" is another choice. When I choose it, the "a b
c" disappears.
I think that the display of the combobox just isn't being updated
until I perform some action on it with the mouse.
Is there some way to force an update?
Brian