my Main.as extends flash.display.Sprite, I want to use a ComboBox compone开发者_开发问答nt in the as, without any mxml, how to implement it?
I read this Possible to use Flex Framework/Components without using MXML?, its main as extends spark.components.Application, but still need a mxml file. Its main idea is to rewrite the Application component, and reuse it in mxml file. That is not what I want. I uses Flex SDK 4.1You cannot use Flex components without having your application extend the Flex Application class. The components always require the Flex container.
Either you turn your application into a Flex one - which is possible without using MXML - or you should consider using a pure AS implementation of a ComboBox: GUI Framework for flash (as3)
精彩评论