为什么有些用户在Flash应用程序中出现rsl错误?

时间:2017-04-28 16:13:14

标签: flash flex rsl

当我的某些用户尝试访问我的Flash应用程序时,他们会收到错误

RSL Error 1 of 1

就是这样,没有错误代码或任何东西。此页面适用于Internet Explorer,但主要使用Chrome。它也适用于我和Chrome中的另一位同事。我们在同一个网络上。

这是我的.actionScriptProperties文件

  <?xml version="1.0" encoding="UTF-8"?>
    <actionScriptProperties mainApplicationPath="Works.mxml" version="3">
      <compiler additionalCompilerArguments="-locale en_US -strict=true -debug=true -optimize=true -link-report output.xml -use-network=false" copyDependentFiles="false" enableModuleDebug="true" flexSDK="Flex 3.2" generateAccessible="false" htmlExpressInstall="true" htmlGenerate="true" htmlHistoryManagement="true" htmlPlayerVersion="9.0.124" htmlPlayerVersionCheck="true" outputFolderPath="bin-debug" sourceFolderPath="src" strict="true" useApolloConfig="false" verifyDigests="true" warn="true">
        <compilerSourcePath/>
        <libraryPath defaultLinkType="1">
          <libraryPathEntry kind="4" path="">
            <modifiedEntries>
              <libraryPathEntry kind="3" linkType="4" path="${PROJECT_FRAMEWORKS}/libs/flex.swc" useDefaultLinkType="true">
                <crossDomainRsls>
                  <crossDomainRslEntry autoExtract="true" policyFileUrl="" rslUrl="flex.swf"/>
                </crossDomainRsls>
              </libraryPathEntry>
              <libraryPathEntry kind="3" linkType="4" path="${PROJECT_FRAMEWORKS}/libs/framework.swc" useDefaultLinkType="false">
                <crossDomainRsls>
                  <crossDomainRslEntry autoExtract="false" policyFileUrl="" rslUrl="https://example.com/rsl/framework_3.2.0.3958.swz"/>
                  <crossDomainRslEntry autoExtract="false" policyFileUrl="" rslUrl="https://example.com/rsl/framework_3.2.0.3958.swf"/>
                </crossDomainRsls>
              </libraryPathEntry>
              <libraryPathEntry kind="3" linkType="4" path="${PROJECT_FRAMEWORKS}/libs/utilities.swc" useDefaultLinkType="true">
                <crossDomainRsls>
                  <crossDomainRslEntry autoExtract="true" policyFileUrl="" rslUrl="/rsl/utilities.swf"/>
                </crossDomainRsls>
              </libraryPathEntry>
            </modifiedEntries>
          </libraryPathEntry>
          <libraryPathEntry kind="1" linkType="1" path="libs"/>
        </libraryPath>
        <sourceAttachmentPath/>
      </compiler>
      <applications>
        <application path="Calendar.mxml"/>
        <application path="testImage.mxml"/>
        <application path="XMLCreate.mxml"/>
        <application path="book.mxml"/>
        <application path="Works.mxml"/>
        <application path="cpapp.mxml"/>
        <application path="books.mxml"/>
        <application path="flashup.mxml"/>
        <application path="Eyeballs.mxml"/>
        <application path="albums.mxml"/>
        <application path="DragDrop.mxml"/>
        <application path="flexpaint.mxml"/>
        <application path="testdrop.mxml"/>
        <application path="TextTicker.mxml"/>
        <application path="slideshow.mxml"/>
        <application path="test.mxml"/>
        <application path="bifedit.mxml"/>
        <application path="test_canvas.mxml"/>
        <application path="canvas.mxml"/>
        <application path="LayoutBuilder.mxml"/>
        <application path="ComponentBuilder.mxml"/>
        <application path="BIF.mxml"/>
      </applications>
      <modules/>
      <buildCSSFiles>
        <buildCSSFileEntry destPath="bin-debug" sourcePath="src/CSS/grey.css"/>
        <buildCSSFileEntry destPath="bin-debug" sourcePath="src/CSS/timeless3.css"/>
        <buildCSSFileEntry destPath="bin-debug" sourcePath="src/CSS/letter_photography.css"/>
        <buildCSSFileEntry destPath="bin-debug" sourcePath="src/CSS/bobday.css"/>
        <buildCSSFileEntry destPath="bin-debug" sourcePath="src/CSS/wdt.css"/>
        <buildCSSFileEntry destPath="bin-debug" sourcePath="src/CSS/sigart.css"/>
        <buildCSSFileEntry destPath="bin-debug" sourcePath="src/CSS/save_on_crafts.css"/>
        <buildCSSFileEntry destPath="bin-debug" sourcePath="src/CSS/creativehabitat.css"/>
        <buildCSSFileEntry destPath="bin-debug" sourcePath="src/CSS/acmoore.css"/>
        <buildCSSFileEntry destPath="bin-debug" sourcePath="src/CSS/kamans.css"/>
        <buildCSSFileEntry destPath="bin-debug" sourcePath="src/CSS/ipi.css"/>
        <buildCSSFileEntry destPath="bin-debug" sourcePath="src/CSS/bachphoto.css"/>
        <buildCSSFileEntry destPath="bin-debug" sourcePath="src/CSS/tfstyle.css"/>
        <buildCSSFileEntry destPath="bin-debug" sourcePath="src/CSS/front_slide.css"/>
        <buildCSSFileEntry destPath="bin-debug" sourcePath="src/CSS/fonts.css"/>
        <buildCSSFileEntry destPath="bin-debug" sourcePath="src/CSS/abm.css"/>
        <buildCSSFileEntry destPath="bin-debug" sourcePath="src/CSS/appo.css"/>
        <buildCSSFileEntry destPath="bin-debug" sourcePath="src/CSS/benfranklin.css"/>
      </buildCSSFiles>
    </actionScriptProperties>

编辑: 好的,用户没有向我发送包含错误编号的整页 完整的错误是:

RSL Error 1 of 1
Error #2048

EDIT2: Crossdomain.xml(位于https://example.com/crossdomain.xml

<cross-domain-policy>
  <allow-access-from domain="*"/>
</cross-domain-policy>

编辑3: 我看了一下开发者网络信息。看起来在我的机器上它甚至没有尝试请求跨域文件,而在我的同事的机器上,它正在http和https上请求它。

以下是嵌入flash的代码:

<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" id="Works" name="Works" width="990" height="670" codebase="http://fpdownload.macromedia.com/get/flashplayer/current/swflash.cab">
    <param name="quality" value="high" />
    <param name="movie" value="/sites/all/misc/cfa_flex/canvas.swf" />
    <param name="wmode" value="transparent" />
    <param name="bgcolor" value="#ffffff" />
    <param name="allowScriptAccess" value="always" />
    <param name="allowFullScreen" value="true" />  
    <param name="flashVars" value="prodid=&amp;prjid=&amp;apptype=canvastransfer&amp;pid=elegance" />  
    <param name="apptype" value="canvastransfer" />  
    <param name="prodid" value="" />  
    <param name="prjid" value="" />  
    <param name="allowFullScreen" value="true" />  
    <param name="domain" value="https://example.com" />
    <script type="text/javascript" src="/sites/all/misc/js/AC_OETags.js"></script>
    <script type="text/javascript" src="/sites/all/misc/js/detectflash.js"></script>
    <script type="text/javascript" src="/sites/all/misc/js/miscscripts.js"></script>
    <script type="text/javascript" src="/misc/jquery.js"></script>
    <script type="text/javascript" src="/sites/all/misc/js/tl.js"></script>
    <script type="text/javascript" src="/sites/all/modules/contrib/thickbox/thickbox.js"></script>
    <script language="JavaScript" type="text/javascript">
      //<![CDATA[
        if (hasReqestedVersion) {var content = '<embed src="/sites/all/misc/cfa_flex/canvas.swf?k" quality="high" bgcolor="#ffffff"'
        + 'id="Works"'
        + 'allowFullScreen="true"'
        + 'width="990" height="670" name="Works" align="middle"'
        + 'wmode="transparent"'
        + 'play="true"'
        + 'loop="false"'
        + 'quality="high"'
        + 'allowFullScreen="true"'
        + 'flashVars="apptype=canvastransfer"'
        + 'allowScriptAccess="always"'
        + 'type="application/x-shockwave-flash"'
        + 'pluginspage="http://www.adobe.com/go/getflashplayer">'
        + '</embed>';
        document.write(content);

        } else {
        document.write('<h3 style="font-family:Arial, Helvetica, sans-serif; color:#999999;">You do not have the latest version of Macromedia Flash Player.</h3><a href="http://www.macromedia.com/go/getflashplayer" target="_blank"><img src="http://www.macromedia.com/images/shared/download_buttons/get_flash_player.gif" border="0" width="88" height="31" alt="Get Adobe Flash Player" /></a><a href="http://www.adobe.com/go/getflash/">The website requires 9 or higher version of flash to display the content.</a><p>To Download Flash Player on Android, see: <a href="http://forums.adobe.com/thread/1061194">http://forums.adobe.com/thread/1061194</a>.</p>');

        }
      //]]>
    </script>
  </object>

编辑4: 此外,当从我的同事计算机调用跨域时,使用我们的其他域

调用它
https://www.example2.com/crossdomain.xml
http://www.example2.com/crossdomain.xml

而原始页面的请求是

https://example.com/cfa/canvastransfer

问题是这些都需要在我们所有的3个域上工作。

编辑5: 更新了allowScriptAccess,而不是嵌入flash的代码上的sameDomain。没有变化。

编辑6: 在我的一个mxml文件中,我正在调用它(仍有相同的问题):

Security.loadPolicyFile("https://example.com/crossdomain.xml");

2 个答案:

答案 0 :(得分:2)

您是否在为rsls提供服务的服务器上部署了crossdomain.xml文件?

当您通过https投放应用swf时尝试通过http加载rsl也可能导致这种情况。

答案 1 :(得分:2)

一旦我加载了crossdomain.xml文件,我仍然遇到问题

Security.loadPolicyFile(getRootDomain() + "crossdomain.xml");
Security.loadPolicyFile(getRootDomain() + "policyFile.xml");

public static function getRootDomain():String
{
  return "https://" + ExternalInterface.call("getRoot") + "/";
}

基本上确保所有网址都使用https而不是http似乎解决了问题,以及loadPolicyFile行。