当我的一些用户尝试访问我的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
编辑2:跨域. xml(位于https://example.com/crossdomain.xml)
<cross-domain-policy>
<allow-access-from domain="*"/>
</cross-domain-policy>
编辑3:我看了一下开发者网络信息,似乎在我的机器上,它甚至没有试图请求跨域文件,而在我同事的机器上,它正在请求http和https。
下面是嵌入闪存的代码:
<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=&prjid=&apptype=canvastransfer&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为always,而不是嵌入flash的代码上的sameDomain。没有变化。
编辑6:在我的一个mxml文件中,我将其称为(仍然存在相同的问题):
Security.loadPolicyFile("https://example.com/crossdomain.xml");
2条答案
按热度按时间kqhtkvqz1#
您是否在提供rsls的服务器上部署了crossdomain.xml文件?
这也可能是由于当你的应用swf是通过https提供服务时,试图通过http加载rsl造成的。
f1tvaqid2#
在加载crossdomain.xml文件后,我仍然遇到问题
基本上,确保所有的URL都使用https而不是http似乎可以解决这个问题,沿着loadPolicyFile行。