使用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