本文介绍了ADL错误而载入初始内容的Adobe AIR的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我是新来AdobeAir。我开始用的HelloWorld应用程序,只需按照下面的链接。

I am new to AdobeAir. I started with helloworld app by just following the following link.

http://help.adobe.com/en_US/air/build/WS144092a96ffef7cc4c0afd1212601c9a36f-8000.html

我能够编译HelloWorld.mxml的成功文件,但我不能够通过以下命令ADL的HelloWorld-app.xml中运行应用程序。该错误消息说..错误而载入初始内容。

I am able to compile HelloWorld.mxml file successfully, but i am not able to run the app by following command adl HelloWorld-app.xml . the error message says .. error while loading initial content.

另外我附上的HelloWorld-app.xml的

Also I am attaching the HelloWorld-app.xml

<?xml version="1.0" encoding="UTF-8"?>
<application xmlns="http://ns.adobe.com/air/application/1.0">
    <id>samples.flex.HelloWorld</id>
    <version>0.1</version>
    <filename>HelloWorld</filename>
    <initialWindow>
        <content>HelloWorld.swf</content>
        <visible>true</visible>
        <systemChrome>none</systemChrome>
        <transparent>true</transparent>
        <width>400</width>
        <height>200</height>
    </initialWindow>
</application>

和HelloWorld.mxml的是

and HelloWorld.mxml is

<?xml version="1.0" encoding="utf-8"?> 
<s:WindowedApplication xmlns:fx="http://`enter code here`ns.adobe.com/mxml/2009" 
                       xmlns:s="library://ns.adobe.com/flex/spark" 
                       xmlns:mx="library://ns.adobe.com/flex/mx" 
                       title="Hello World"> 

    <s:Label text="Hello AIR" horizontalCenter="0" verticalCenter="0"/> 
</s:WindowedApplication>

请帮我。

推荐答案

感谢你,你的回答帮助了的IntelliJ IDEA 和最新的Flex / AIR包来解决我的问题。为了解决这个错误,我不得不为我的模块修改后的应用程序描述符文件,因为自动生成的人有此设置:

Thank you, your answer helped to solve my issue with IntelliJ Idea and the latest FLEX/AIR package.To solve that error I had to provide a modified application descriptor file for my module, since the automatically generated one had this setting:

<application xmlns="http://ns.adobe.com/air/application/2.0">

下面创建一个自定义应用程序描述符文件所需的步骤:

Here the steps needed to create a custom application descriptor file:

文件 - Projext结构 - 模块 - AIR包 - 自定义模板 - 创建

选择您的最小版本的AIR(实际上是Flex的4.10,我认为这是AIR 3.8)和你的模块将编译和运行没有任何问题。

Pick your minimal AIR version (actually for Flex 4.10 I think it is AIR 3.8) and your module will compile and run without problems.

见截图 here

See screenshot here

这篇关于ADL错误而载入初始内容的Adobe AIR的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

10-24 05:48