我正在研究现有的Flash项目(基于Flash的游戏),我需要集成社交登录小工具Gigya。我使用Adobe Flash Platform Services Social进行了研究并最终完成。Flash错误 - 安全沙盒违例 - 在Flash中集成Gigya
问题是,我成功地将它集成到我最初准备的测试Flash文件中。但是,当我在我的实际Flash项目的源文件中集成它,我得到以下错误:
*** Security Sandbox Violation ***
SecurityDomain 'http://cdn.gigya.com/wildfire/WFApi.ashx?f=gs&asver=as3&service=socialize&enabledProviders=facebook%2Ctwitter%2Cyahoo%2Cmessenger%2Cgoogle%2Clinkedin%2Cmyspace%2Caol%2Corkut%2Cwordpress&services=socialize&APIKey=[---myApiKey---]' tried to access incompatible context 'file:///D|/FlashProjects/game.swf'
SecurityError: Error #2070: Security sandbox violation: caller http://cdn.gigya.com/wildfire/WFApi.ashx?f=gs&asver=as3&service=socialize&enabledProviders=facebook%2Ctwitter%2Cyahoo%2Cmessenger%2Cgoogle%2Clinkedin%2Cmyspace%2Caol%2Corkut%2Cwordpress&services=socialize&APIKey=[---myApiKey---] cannot access Stage owned by file:///D|/FlashProjects/game.swf.
at flash.display::Stage/requireOwnerPermissions()
at flash.display::Stage/addEventListener()
at com.Gigya.Lib::FixFocusManagerBugs/addFocusInAndOutHandlers()
at com.Gigya.Lib::FixFocusManagerBugs/onUiTopElementAddedToStage()
at flash.display::DisplayObjectContainer/addChild()
at com.Gigya.Apps.Socialize.Common::BaseForm()
at com.Gigya.Apps.Socialize.Login.Forms::MiniLogin()
at com.Gigya.Apps.Socialize.Login::LoginApp/showLoginUI()
at com.Gigya.Lib::ExternalClassLoader/onSwfLoaded()
at com.Gigya.Lib::ExternalClassLoader/ecl_INIT()
请注意,我也包括 的Security.allowDomain(“cdn.gigya.com”);我的代码中有 ,但它在我的初始测试Flash(最小文件有2个框架,没有额外的组件)中工作,但似乎不适用于我的实际游戏Flash。
有没有人遇到过这样的错误?
请帮我一把。
谢谢。