How to embed flash SWF with XML in google sites gadget?

I am pretty new with AS3 and I´m in dark with an issue. I made a flash website and want it to run under sites.google.com The swf file runs fine in any case, not when it´s embedded. The problem is when it runs embedded, as a gadget like google names it, my "playlist.xml" doesn´t load. I have been searching for an answer along all internet sites and foruns and tutorials, but nothing is working. Current Codes are: ------------------ XML in fla file is var myXML:XML = new XML(); var XML_URL:String = this.loaderInfo.parameters.playlistXML; // -< using flashVars in HTML code //var XML_URL:String = "https://sites.google.com/clelsonlopescomposer/playlist.xml"; // <-- used this way too, and relative path like "playlist.xml"; both didn´t work. var myXMLURL:URLRequest = new URLRequest(XML_URL); var myLoader:URLLoader = new URLLoader(myXMLURL); myLoader.addEventListener("complete", xmlLoaded); //XML function function xmlLoaded(event:Event):void{ //Place the XML data into XML object myXML = XML(myLoader.data); } Embed code is HTML Code: I am sure that the problem is in HTML embedding code, but I have no idea how to solve it. Like I said, I´ve been searching for about a week, and my last hope is here. Thank you very much in advance for your attention and help. Best Regards, Clelson Edit: Ok. When I run swf file locally in publishing network access only, I get this error when debugging: > Error #2044: Unhandled securityError:. text=Error #2048: Security > sandbox violation: > file:///C|/Users/Clelson/Documents/Flash%20Projects/MySite/Meusite.swf > cannot load data from > https://sites.google.com/site/clelsonlopescomposer/playlist.xml. at > Meusite_fla::list_mc_22/frame10()[Meusite_fla.list_mc_22::frame10:41] Crossdomain.xml file at https://sites.google.com/crossdomain.xml has the content

以上就是How to embed flash SWF with XML in google sites gadget?的详细内容,更多请关注web前端其它相关文章!

赞(0) 打赏
未经允许不得转载:web前端首页 » HTML5 答疑

评论 抢沙发

  • 昵称 (必填)
  • 邮箱 (必填)
  • 网址

前端开发相关广告投放 更专业 更精准

联系我们

觉得文章有用就打赏一下文章作者

支付宝扫一扫打赏

微信扫一扫打赏