PDA

View Full Version : CS4 Descriptor File Error


Imjake9
02-16-2009, 07:21 PM
I am creating my first AIR application, using Flash CS4. I have finished my application's beta version, and want to publish it. So, I went into the AIR Application and installer settings and set the options to the following:

File Name: JVPlayer
Name: jvinstaller
Version: 0.1
ID: my.applications.player
Description: (Blank)
Copyright: (Blank)
Window Style: System Chrome
---Icons---
(All in order, files set.)
---Advanced---
(All default)
-------------------------------
[::] Use custom application descriptor file. (Unchecked)
---Installer Settings---
---Digital Signature Settings---
(Self signed certificate)
---Destination---
C:\Users\Jake\Documents\Flash\JVPlayer.air
---Included Files---
C:\Users\Jake\Documents\Flash\JVPlayer.swf
C:\Users\Jake\Documents\Flash\JVPlayer-app.xml
-----------------------------------------------------------------

So, I press Publish AIR File, and a dialog box appears:
-----------------------------------------------------------------
Error creating air file.
An attribute or element contains an invalid value in the application descriptor file.
(application.initialWindow.content)
-----------------------------------------------------------------
So, I open up the file, and everything seems to be in order. Here's the contents of the initialWindow element:

<initialWindow>
<content>myApplication.swf</content>
<systemChrome>standard</systemChrome>
<transparent>false</transparent>
<visible>true</visible>
</initialWindow>

So, whats the problem? :confused:

nakedkafka
02-17-2009, 12:41 PM
hard to say, but in my flex air apps XML descriptor file I have this in the beginning of every one of these XMLs:

<?xml version="1.0" encoding="UTF-8"?>
<application xmlns="http://ns.adobe.com/air/application/1.0">

<!-- Adobe AIR Application Descriptor File Template.

Specifies parameters for identifying, installing, and launching AIR applications.
See http://www.adobe.com/go/air_1.0_application_descriptor for complete documentation.

xmlns - The Adobe AIR namespace: http://ns.adobe.com/air/application/1.0
The last segment of the namespace specifies the version
of the AIR runtime required for this application to run.

minimumPatchLevel - The minimum patch level of the AIR runtime required to run
the application. Optional.
-->

Imjake9
02-18-2009, 12:36 AM
I finally figured it out. I reopened the XML file, and in the <content> area there was now my Application.swf, with a space! Who knows how that got there, but I fixed it and now it works fine.

Thanks anyways!