Results 1 to 2 of 2

Thread: SWFLoader throwing RTE

  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

  2. #2
    Join Date
    Dec 2008
    Location
    Brussels
    Posts
    407

    Default sub applications not supported yet

    Hi there,

    as of right now, Spring Actionscript only supports module loading, not sub-application loading. We'll try to get that in for version 1.1, but for now it won't work properly.
    I'm sorry.
    To work around it for now, you can try to add a custom ObjectSelector to your DefaultAutowiringStageProcessor, one that will disapprove the type of your subapplication, that way the stage wiring objects won't try to wire your subapplication.
    Check out this doc section with more information about the IObjectSelector functionality:

    http://www.springactionscript.org/docs/reference/html/container-documentation.html#how_to_determine_which_stage_co mponents_are_eligible_for_configuration

    cheers,

    Roland
    Last edited by 666shooter; Mar 31st, 2010 at 01:57 AM. Reason: added some more info

Posting Permissions

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