Friday, 15 February 2013

actionscript 3 - Set an item flex Combo box -



actionscript 3 - Set an item flex Combo box -

i have 1 combo box(flex 4),i want set item.

var tempobject:object; tempobject.clientname="raju"; clientlist.selecteditem = tempobject;

is correct? .but shows error

*typeerror: error #1009: cannot access property or method of null object reference.*

my combo box:

<s:combobox id="clientlist" width="14%" height="85%"change="clientlist_changehandler(event)" dataprovider="{clientlistforcombo}" labelfield="clientname" prompt="select one"/>

why not init tempobject?

try this:

var tempobject:object = new object(); tempobject.clientname="raju"; clientlist.selecteditem = tempobject;

actionscript-3 flex actionscript air

No comments:

Post a Comment