我正在开发一个现有的 Flash 项目(基于 Flash 的游戏),我需要在其中集成社交登录小部件 Gigya。我使用 Adobe Flash Platform Services Social 进行研究并最终确定。
问题是,我成功地将它集成到我最初准备的测试 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。
有没有人遇到过这样的错误?
请帮帮我。
谢谢。