1 Reply Latest reply on Mar 27, 2007 2:47 PM by Newsgroup_User

    History Manager - FFox - Debug Player

    Level 7
      Hi,

      I'm getting a weird security exception. My setup is:

      1 main application
      2 load external module through the moduleloader
      3 use a view state component in the main module to enable the history
      management.

      I am getting:
      Error #2044: Unhandled SecurityErrorEvent:. text=Error #2047: Security
      sandbox violation: LocalConnection.send: mydomain.com cannot access
      http://local.mydomain.com/home.swf.

      Where home.swf is the main module.

      This only happens in Firefox.

      Does somebody ran accross that and got it to work?

      Thanks,
      JG


        • 1. Re: History Manager - FFox - Debug Player
          Level 7
          I will just reply to myself :-) I figured it out, Flex does some weird
          things. I suspected that some class was not included or instanced at the
          beginning of the application to handle the history manager. The setup I had
          was:

          main app:
          <mx:ModuleLoader url="home.swf" ready="progressBox.visible = false"
          id="home" left="0" right="0" bottom="0" top="0"/>

          home module:
          <mx:ViewStack id="views" horizontalCenter="0" verticalCenter="0"
          width="100%" height="100%" historyManagementEnabled="true">
          ...
          </mx:ViewStack>


          That's when I was getting the bug. So, my quick fix is:

          main app:
          <mx:ViewStack height="100%" y="0" width="100%" x="0"
          historyManagementEnabled="true">
          <mx:ModuleLoader url="home.swf" ready="progressBox.visible = false"
          id="home" left="0" right="0" bottom="0" top="0"/>
          </mx:ViewStack>

          home module:
          same as before

          and voila :-)

          JG




          "Jose Guevara" <jose.guevaraAT@tampadigitalDOT.com> wrote in message
          news:eubtog$5l5$1@forums.macromedia.com...
          > Hi,
          >
          > I'm getting a weird security exception. My setup is:
          >
          > 1 main application
          > 2 load external module through the moduleloader
          > 3 use a view state component in the main module to enable the history
          > management.
          >
          > I am getting:
          > Error #2044: Unhandled SecurityErrorEvent:. text=Error #2047: Security
          > sandbox violation: LocalConnection.send: mydomain.com cannot access
          > http://local.mydomain.com/home.swf.
          >
          > Where home.swf is the main module.
          >
          > This only happens in Firefox.
          >
          > Does somebody ran accross that and got it to work?
          >
          > Thanks,
          > JG
          >
          >