0

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

Community
  • 1
  • 1
PinkyJie
  • 817
  • 3
  • 8
  • 28

1 Answers1

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)

Community
  • 1
  • 1
Kaken Bok
  • 3,395
  • 1
  • 19
  • 21