I am trying to add a swf file in a VBox. Its as simple as below:
When I execute the app, it throws me RTE:Code:<mx:VBox> <mx:SWFLoader source="assets/elixir_clock.swf" width="190" height="190"/> </mx:VBox>
Here is the response I got from Flexcoders forum which attracted my attention to springactionscript api..Code:Error: Error #1023: Stack overflow occurred. at mx.core::UIComponent/get parentDocument()[C:\autobuild\3.4.0\frameworks\projects\framework\src\mx\core\UIComponent.as:2827] at org.springextensions.actionscript.stage::FlexStageProcessorRegistry/getRoot()[C:\workspace\springactionscript\src\org\springextensions\actionscript\stage\FlexStageProcessorRegistry.as:314] at org.springextensions.actionscript.stage::FlexStageProcessorRegistry/getRoot()[C:\workspace\springactionscript\src\org\springextensions\actionscript\stage\FlexStageProcessorRegistry.as:314] at org.springextensions.actionscript.stage::FlexStageProcessorRegistry/getRoot()[C:\workspace ........ ............
Can anyone guide me like where I am going wrong?Stack overflow would mean that you have some recursion going on for ever.
That would often happen if you conditionally create an instance of a class
in that class constructor, or, you have used singletons in business logic
and by loading a module you've made that a multitone. It also looks like
that function FlexStageProcessorRegistry.getRoot() you are calling is trying
to get the topmost object in the display list:
- You shouldn't have been doing that to start with.
- It probably doesn't do it right because some of the objects found in the
display list overrides root getter.
Thanks.


Reply With Quote