2
我想把我的第一個AIR應用程序的工作,但我不斷收到試圖讓第一空氣應用工作
應用程序描述找不到錯誤
我在一個窗口系統並設置我的環境路徑以包含C:\ air \ bin,因此當我輸入adl時,它會調用該exe文件。我也是從它創建的目錄中運行的項目,所以在命令提示符下運行我就像這樣:
C:_Projects \的 荒地\ HelloWorld的\ ADL HelloWorld.html的
HelloWorld.html的
<html>
<head>
<title>Hello World</title>
<script src=」AIRAliases.js」 type=」text/javascript」></script>
<script type=」text/javascript」>
function appLoad(){
air.trace(「Hello World」);
}
</script>
</head>
<body onLoad=」appLoad()」>
<h1>Hello World</h1>
</body>
</html>
的HelloWorld-app.xml的
<application xmlns=」http://ns.adobe.com/air/application/1.0?>
<id>examples.html.HelloWorld</id>
<version>0.1</version>
<filename>HelloWorld</filename>
<initialWindow>
<content>HelloWorld.html</content>
<visible>true</visible>
<width>400</width>
<height>200</height>
</initialWindow>
</application>
它真的有用!我從教程中複製了代碼,但正如您所說的那樣,存在語法錯誤,並且引號也是錯誤的。謝謝! – chobo 2011-04-15 21:59:04
@chobo,很高興我能幫忙!在...之前,我遇到過這個問題,當你剛剛學習自己時很難知道要解決什麼問題。 – 2011-04-16 02:08:36
謝謝!它也幫助了我! – 2011-10-20 06:20:26