I have searched a lot but could found a code where i can add comobox on screen CAn anyone give me example . like
Var combobox = new Combobox();
i don't have any gui
Where can i get the list/attributes of all the components like API for use in AS3
http://members.cox.net/midian/tutorials/combobox.htm
Try this link...Hope it helps you.
You're not being very clear with the question. If you want to add a ComboBox to the screen in AS3, your code works, except you need to attach it to something. eg,
var c:ComboBox = new ComboBox();
c.dataProvider = yourData;
someCanvas.addChild(c);
However, if you want to build your own ComboBox
and have it pop up in a similar way, you're treading into more complicated land. The basics are that it's just a TextInput
control where you use the PopupManager
to show/hide a List
object depending on the user action (eg, click, typing, etc...). But you will run into lots of focus/event issues.
Take a look at the ComboBox source code in the Flex SDK.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.