This content has been marked as final. Show 5 replies
You might try packaging at the command line using the "adt" command in the SDK. It will report any errors that occur.
Oliver, thanks for your response. I was able to get the "adt" command line tool up and running and passed in the necessary arguments to try and compile that way. I'm getting 302 and 303 errors for the swf and icon files. Within the descriptor xml file all of the file paths are relative to the xml. I've tried absolute paths as well to no avail. I've also tried relative and absolute paths for the .air file argument being passed in to the adt. Not sure where I'm messing up...
Thanks again for your help.
Here's the error messages I received (with actual folder/file names changed to protect the guilty):
filepath/filepath/myDescFile-app.xml(10): error 302: Root content mySWF.swf is missing from package
filepath/filepath/myDescFile-app.xml(18): error 303: Icon widget_icons/icon_16.png is missing from package
filepath/filepath/myDescFile-app.xml(19): error 303: Icon widget_icons/icon_32.png is missing from package
filepath/filepath/myDescFile-app.xml(20): error 303: Icon widget_icons/icon_48.png is missing from package
filepath/filepath/myDescFile-app.xml(21): error 303: Icon widget_icons/icon_128.png is missing from package
The paths in the descriptor are relative to the root of the package, not the descriptor file. (The location of the decriptor file is basically irrelevant.) So, given the paths in the error message above, your application must have this layout:
If adt was run in the same directory as the mySWF.swf file, then you could package things up like so:
adt [other args] mySWF.swf widget_icons/*
Thanks for your continued help. Once I gave the .air file argument the full path then all of the other relative assets loaded fine and compiled successfully. I can now package AIR files using the "adt"!
I still can't publish the AIR files using Flash CS3, however. It allows me to publish an unsigned certificate but when I try to use the same certificate that I used successfully with the "adt" it leaves me with a nonexistent .air file. I'm assuming it has to do with the certificate, but this was all working fine a few weeks ago so I'm at a loss.
I guess I'll have to wait for some sort of update with error tracing within the Flash CS3 environment. In the meantime I can use the "adt" command line method which seems to work fine, thanks to all of your help.