开发者

using flex components in pure actionscript without any mxml

开发者 https://www.devze.com 2023-03-23 13:28 出处:网络
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 witho

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.1


You 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)

0

精彩评论

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