AIR Icon

261 views
Skip to first unread message

sFoster

unread,
Jul 20, 2010, 9:47:51 AM7/20/10
to DC Flex
Hi guys,

This is a very simple task that has been giving me a curious amount of
trouble and frustration for being so commonplace.

This is a part of my application-app.xml file
<icon>
<image48x48>data/application/icons/MY_ICON.png</image48x48>
</icon>

When I try to export a release build in flash builder, it gives me
error 303 Error creating AIR File, Icon is missing from package

In the 3rd step of exporting from flash builder, under AIR File
Contents (Select the output files to include in the exported AIR file)
I do not have any option to select the icon file.. is it supposed to
appear here, and if so how? Because it is not even displaying my data
folder in this screen, much less let me select a file


I also couldn't find anything under the build path for the project
properties to include assets either. Just source files and swcs.

What am I doing wrong here, this is supposed to be a very simple
task.

Thanks again!

Samer Sadek

unread,
Jul 20, 2010, 10:42:29 AM7/20/10
to dc-...@googlegroups.com
Hey Sean,
Is your descriptor (applicationName.xml) same directory as data?


--
You received this message because you are subscribed to the Google Groups "DC Flex" group.
To post to this group, send email to dc-...@googlegroups.com.
To unsubscribe from this group, send email to dc-flex+u...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/dc-flex?hl=en.




--
Samer Sadek
Software Architect
www.AboutWeb.com

Office: 301.975.8613
Cell: 703.966.0201

sFoster

unread,
Jul 20, 2010, 10:53:53 AM7/20/10
to DC Flex
Structure is as follows:

baseDir / classes / application-app.xml
baseDir / classes / application.mxml
baseDir / data / application/icons/my_icon.png

Samer Sadek

unread,
Jul 20, 2010, 2:51:15 PM7/20/10
to dc-...@googlegroups.com
Shouldn't it be 
 baseDir / classes /  data / application/icons/my_icon.png  ?
Other things to consider:
where is File.documentsDirectory pointing to?
Also I know there is something funky about icons on Linux. Are you working on a Linux machine by any chance?



--
You received this message because you are subscribed to the Google Groups "DC Flex" group.
To post to this group, send email to dc-...@googlegroups.com.
To unsubscribe from this group, send email to dc-flex+u...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/dc-flex?hl=en.

Samer Sadek

unread,
Jul 20, 2010, 3:05:16 PM7/20/10
to dc-...@googlegroups.com
Have you tried this?

sFoster

unread,
Jul 21, 2010, 1:49:38 PM7/21/10
to DC Flex
That was it!
I thought it would be sufficient to have it within the project
workspace, but apparently it had to be in the main source folder like
you were saying.

Thanks!

-Sean

> On Tue, Jul 20, 2010 at 2:51 PM, Samer Sadek <ssa...@aboutweb.com> wrote:
> > Shouldn't it be
> >  baseDir / classes /  data / application/icons/my_icon.png  ?
> Samer Sadek
> Software Architectwww.AboutWeb.com
>
> Office: 301.975.8613
> Cell: 703.966.0201
Reply all
Reply to author
Forward
0 new messages