使用Firebug或写写入你的痕迹,HTML页面,通过外部JS功能的功能...
public static function screenTrace(traceMessage:String)
{
ExternalInterface.call('screenTrace', traceMessage);
}
function initializeScreenTrace() {
tracesWindow = window.open('','traces','width=400, height=300')
tracesWindow.document.writeln(
'<html><head><title>Console</title></head>'
+'<body bgcolor=white onLoad="self.focus()">'
+'</body></html>'
)
}
function screenTrace(targetString) {
if (tracesWindow != undefined)
{
tracesWindow = window.open('','traces','width=400, height=300')
tracesWindow.document.writeln(
'<html><head><title>Console</title></head>'
+'<body bgcolor=white onLoad="self.focus()">'
+'</body></html>'
)
tracesWindow.document.writeln("<br>" + targetString);
}
}
这应该让你得到一些痕迹找出问题所在。
SCREENTRACE
开始追踪。
您无法在IDE中以全屏模式进行测试,只能在浏览器中进行测试,并且您应该在HTML中将allowFullscreen设置为true。此外,请查看舞台的fullscreenRect属性(http://help.adobe.com/zh_CN/FlashPlatform/reference/actionscript/3/flash/display/Stage.html?filter_flex=4.1&filter_flashplayer=10.1&filter_air=2 #fullScreenSourceRect),您可以使用它在全屏模式下配置可见区域。你正在谈论浏览器中的全屏模式,对吧? – 2010-12-07 15:32:45
我正在运行.ext文件,有一个全屏选项,但正如你在IDE中所说的那样,没有全屏选项。我使用allowFullscreen设置,所以在我双击.exe文件后,它会自动进入全屏。我还没有嵌入到浏览器。 – 2010-12-07 15:36:08