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 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 = ""; // <-- 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(; } 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 > at > Meusite_fla::list_mc_22/frame10()[Meusite_fla.list_mc_22::frame10:41] Crossdomain.xml file at has the content

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

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

评论 抢沙发

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

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