Re: [flexcoders] Is it possible to add Flex components to the Stage?

2011-09-23 Thread ganaraj p r
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

[flexcoders] Is it possible to add Flex components to the Stage?

2011-09-22 Thread Hogs Haven
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

Re: [flexcoders] Is it possible to add Flex components to the Stage?

2011-09-22 Thread grimmwerks
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

Re: [flexcoders] Is it possible to add Flex components to the Stage?

2011-09-22 Thread Jeffry Houser
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,