Flex is a complete framework and each and every component follows the rules
of the framework. Without the framework running in the background its
probably impossible to get a component working unless you do a lot of work
to make it work. Perhaps much easier to write a separate AS3 component.
On
From everything I've read, Flex components can only be added to Flex
Components (ie: VBox to Application, VGroup to Panel, etc)
I'm working in an AS3 view library (no Flex, just Sprites) where I need to add
a Scrollable container component to the Stage on a click event. There's no way
to do
Try stage.addElement rather than addChild?
On Sep 22, 2011, at 2:30 PM, Hogs Haven wrote:
From everything I've read, Flex components can only be added to Flex
Components (ie: VBox to Application, VGroup to Panel, etc)
I'm working in an AS3 view library (no Flex, just Sprites) where I
addElement is only defined in spark components; that will just throw a
compile time error.
I'm not sure why you want to add a Flex Component directly to the
stage. I suppose in theory you could; but that would bypass all the
Flex Framework code to position and size the component. You'd,
4 matches
Mail list logo