9 Replies Latest reply on Mar 12, 2009 9:33 AM by berrekentjespje

    offline flex3 app gives warning

    berrekentjespje
      Hi,

      is it still possible to run a flex app from lets say, a cd ?
      Or do you really have to use air ?

      We have an app that was developed last year. It calls an xml to get the data it needs. This version still works.

      This month i had to change somethings in the app.

      My flex builder is updated to the 3.3 SDK. ( I also tried with the 3 SDK and 2.0.1 hotfix, the last hasn't got the necessary content).

      When i try to run the app from outside the localhost, there is always a message : " the following local application on your computer ... is trying to communicate with this internet-enabled location ..."

      Clicking the settings button doesn't do anything, so i can't add the folder to the trusted places. This wouldn't be a solution if it worked, because all the cd users would have to add the folder also.

      Both the swf and the html are in the same folder.

      Choosing "ok" continues the app, and everything is working, the xml is loaded. So why the warning ?

      I have been looking into the Compiler options :
      - "-use-network=false" has been in there all the time, and so it should
      - deselecting the "require flash player version" doesn't do the trick
      - not enabling integration with browser navigation neither

      I read that the security changed with player 9.0 r124 - the older of the app version worked with 9.0 r115 - so i tried to run the app with older flash players.
      9.0 r115 and 9.0 r47 didn't work.

      If i put the new swf in a folder with the old working html file and change the references for history and .js files it doesn't work either. Still the error message.

      So i guess the problem must be in the swf itself.

      I cannot find anything on this, except the advice to add the app to the trusted places.

      Anybody can help me ? Would be greatly appreciated !

      b
        • 1. Re: offline flex3 app gives warning
          Level 7

          "berrekentjespje" <webforumsuser@macromedia.com> wrote in message
          news:gp896e$5jb$1@forums.macromedia.com...
          > Hi,
          >
          > is it still possible to run a flex app from lets say, a cd ?
          > Or do you really have to use air ?
          >
          > We have an app that was developed last year. It calls an xml to get the
          > data
          > it needs. This version still works.
          >
          > This month i had to change somethings in the app.
          >
          > My flex builder is updated to the 3.3 SDK. ( I also tried with the 3 SDK
          > and
          > 2.0.1 hotfix, the last hasn't got the necessary content).
          >
          > When i try to run the app from outside the localhost, there is always a
          > message : " the following local application on your computer ... is trying
          > to
          > communicate with this internet-enabled location ..."
          >
          > Clicking the settings button doesn't do anything, so i can't add the
          > folder to
          > the trusted places. This wouldn't be a solution if it worked, because all
          > the
          > cd users would have to add the folder also.
          >
          > Both the swf and the html are in the same folder.
          >
          > Choosing "ok" continues the app, and everything is working, the xml is
          > loaded.
          > So why the warning ?
          >
          > I have been looking into the Compiler options :
          > - "-use-network=false" has been in there all the time, and so it should
          > - deselecting the "require flash player version" doesn't do the trick
          > - not enabling integration with browser navigation neither
          >
          > I read that the security changed with player 9.0 r124 - the older of the
          > app
          > version worked with 9.0 r115 - so i tried to run the app with older flash
          > players.
          > 9.0 r115 and 9.0 r47 didn't work.
          >
          > If i put the new swf in a folder with the old working html file and change
          > the
          > references for history and .js files it doesn't work either. Still the
          > error
          > message.
          >
          > So i guess the problem must be in the swf itself.
          >
          > I cannot find anything on this, except the advice to add the app to the
          > trusted places.
          >
          > Anybody can help me ? Would be greatly appreciated !

          Try using JavaScript to code the full path to the swf.


          • 2. Re: offline flex3 app gives warning
            berrekentjespje Level 1
            Hi Amy,

            thank u for ur response.
            I'm not sure what u mean. I let flex builder generate the html wrapper, so the swf is called through javascript.
            The swf is in the same folder as the html.
            Could u give some more explanation please ?

            rgrds,

            b
            • 3. Re: offline flex3 app gives warning
              Level 7

              "berrekentjespje" <webforumsuser@macromedia.com> wrote in message
              news:gp8frv$das$1@forums.macromedia.com...
              > Hi Amy,
              >
              > thank u for ur response.
              > I'm not sure what u mean. I let flex builder generate the html wrapper, so
              > the
              > swf is called through javascript.

              It's probably using a relative reference. You may need to get involved.


              • 4. Re: offline flex3 app gives warning
                berrekentjespje Level 1
                Hi Amy,

                i stripped down the html to this.

                Still the same problem.

                rgrds,

                b
                • 5. Re: offline flex3 app gives warning
                  Level 7

                  "berrekentjespje" <webforumsuser@macromedia.com> wrote in message
                  news:gp8gv1$en3$1@forums.macromedia.com...
                  > Hi Amy,
                  >
                  > i stripped down the html to this.
                  >
                  > Still the same problem.
                  >
                  > rgrds,
                  >
                  > b
                  >
                  > <html lang="en">
                  > <head>
                  > <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
                  > <title></title>
                  > <script src="AC_OETags.js" language="javascript"></script>
                  > <style>
                  > body { margin: 0px; overflow:hidden }
                  > </style>
                  > </head>
                  >
                  > <body scroll='no'>
                  > <script language="JavaScript" type="text/javascript">
                  >
                  > AC_FL_RunContent(
                  > "src", "Impact",

                  ^you need to change this line so that it writes out the ENTIRE path to the
                  swf.


                  • 6. Re: offline flex3 app gives warning
                    berrekentjespje Level 1
                    Hi Amy,

                    I tried this, i filled in the entire path to the swf (working on mac)
                    Users/anciaux/Documents/impact/dataProjects/Impact
                    the app still gives the warning, and after chosing ok it works, so the path is correct.
                    Is this what u meant by entire path ?

                    appreciate the helping !

                    b
                    • 7. Re: offline flex3 app gives warning
                      berrekentjespje Level 1
                      Does this matter if the swf and html are in the same folder ?

                      b
                      • 8. Re: offline flex3 app gives warning
                        Level 7

                        "berrekentjespje" <webforumsuser@macromedia.com> wrote in message
                        news:gp94u5$96d$1@forums.macromedia.com...
                        > Does this matter if the swf and html are in the same folder ?
                        >

                        Not so far as I know.


                        • 9. Re: offline flex3 app gives warning
                          berrekentjespje Level 1
                          I also tried the allowScriptAccess, allowNetworking parameters, didn't work.

                          rgrds,

                          b