开发者

How to add list box in action script 3

I want to add simple list/combo box with action script 3 . but i have not found anything in internet.

Can anyone give me sough rough idea with some dummy开发者_如何学Go values

thanks


first add combobox from Window-combobox delete from stage then add the following code

import fl.controls.ComboBox;

var combo:ComboBox = new ComboBox();

addChild(combo);


combo.move(50,50);

combo.addItem( { label: "Item 1"  } );

combo.addItem( { label: "Item 2"  } );


if you are using flash then use the components "combobox" for the simplest dropdown/checkbox. see here for basic skinning etc: skinning-the-combobox-flash-component.

if not then there are plenty of things out there on google that will fit your need, eg: opensource dropdown

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜