PinkyJie
PinkyJie

Reputation: 825

using flex components in pure actionscript without any mxml

my Main.as extends flash.display.Sprite, I want to use a ComboBox component 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

Upvotes: 0

Views: 1167

Answers (1)

Kaken Bok
Kaken Bok

Reputation: 3395

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)

Upvotes: 1

Related Questions