Flex的空气的HTMLLoader空白弹出窗口时,闪光灯内容加载 [英] Flex Air HTMLLoader blank pop up window when flash content is loaded

查看:155
本文介绍了Flex的空气的HTMLLoader空白弹出窗口时,闪光灯内容加载的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个柔性空气程序加载外部内容,使用HTMLLoader。现在,每当我打开一个网页有任何Flash内容空白的系统窗口弹出我的计划之外的某种原因。这是完全空白的,全白具有最小,最大和关闭按钮。如果我关闭它的任何flash内容我装停止工作。对于我的生活中,我无法弄清楚发生了什么,并有在控制台没有消息,没有标题的窗口。

I have a flex Air program that loads external content with the HTMLLoader. Now for some reason whenever I load a page that has any flash content a blank system window pops up outside of my program. It's completely blank, all white with min, max and close buttons. If I close it any flash content I loaded stops working. For the life of my I can't figure out what's happening and there's no messages in the console and no title for the window.

有没有人有什么想法?我AP preciate任何帮助,您可以给。这里的code我使用:

Does anyone have any ideas? I appreciate any help you can give. Here's the code I'm using:

    

private var webPage:HTMLLoader;


private function registerEvents():void
{
	this.addEventListener(gameLoadEvent.GAME_LOAD, gameLoad);
	//webPage = new HTMLLoader();

}

//function called back from Game Command to load correct game
private function gameLoad(event:Event):void
{
	var gameEvent:gameLoadEvent = event as gameLoadEvent;
	loadgame(gameEvent.url, gameEvent.variables);

}


private function loadgame(url:String, variableString:String):void
{
	DesktopModelLocator.getInstance().scaleX = 1;
	DesktopModelLocator.getInstance().scaleY = 1;

    //var url:String = "http://pro-us.sbt-corp.com/aspx/member/LaunchGame.aspx";
    var request:URLRequest = new URLRequest(url);
    //var variables:URLVariables = new URLVariables("gameNum=17&as=as1&t=demo&package=a&btnQuit=0");

  if(variableString != null && variableString != ""){
    var variables:URLVariables = new URLVariables(variableString);
    variables.exampleSessionId = new Date().getTime();
    variables.exampleUserLabel = "guest";
    request.data = variables;
  }

	webPage = HTMLLoader.createRootWindow(true, null, true, null);
	webPage.height = systemManager.stage.nativeWindow.height - 66;
	webPage.width = systemManager.stage.nativeWindow.width;
	webPage.load(request);
	webPage.navigateInSystemBrowser = false;

	flexBrowser.addChild(webPage);		
}

]]>
</mx:Script>


<mx:HTML id="flexBrowser" width="1366" height="658" backgroundAlpha="0.45" creationComplete="registerEvents();" x="0" y="0">
</mx:HTML>

推荐答案

此问题已得到修复在AIR 1.5.2:

This problem has been fixed in AIR 1.5.2:

AIR 1.5.2之前,嵌入的SWF内容,并在透明窗口的HTML容器无法显示。随着AIR 1.5.2,SWF内容可以显示特定的wmode设置。

Before AIR 1.5.2, SWF content embedded in and HTML container in a transparent window could not be displayed. With AIR 1.5.2, SWF content can be displayed with certain wmode settings.

这篇关于Flex的空气的HTMLLoader空白弹出窗口时,闪光灯内容加载的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆