Results 1 to 2 of 2

Thread: SWFLoader throwing RTE

Threaded View

  1. #1

    Default SWFLoader throwing RTE

    I am trying to add a swf file in a VBox. Its as simple as below:

    Code:
    <mx:VBox>
    <mx:SWFLoader source="assets/elixir_clock.swf" width="190" height="190"/>
    </mx:VBox>
    When I execute the app, it throws me RTE:

    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
    ........
    ............
    Here is the response I got from Flexcoders forum which attracted my attention to springactionscript api..

    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.
    Can anyone guide me like where I am going wrong?

    Thanks.
    Last edited by manuraj.dhanda; Mar 30th, 2010 at 03:44 PM. Reason: missed a tag in code

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •