Select to view content in your preferred language

Why won't all my asset/images get moved to the bin-debug folder when I compile

2486
6
05-18-2012 11:29 AM
MichaelBartlett
Occasional Contributor
This just started.  I am using the 2.3.1 viewer with Flash Bulder 4.

A few of my png files (specifically the w_close.png) do not get copied to the bin-debug or bin-release folder when I build and/or run it.

Most of the other files work fine.  Have I accidently marked this somewhere to be ignored?

Not sure where to look.

Michael
Tags (2)
0 Kudos
6 Replies
RobertScheitlin__GISP
MVP Emeritus
Michael,

   If anywhere in the code an asset is embeded than Flash Builder does not copy that asset to the bin-release folder as it doesn't beleive that it is necessary because it is embeded. When you say this had started all the sudden it is likely because you have deleted or Flash Builder has deleted (because of a clean command) the assets.
0 Kudos
RhettZufelt
MVP Notable Contributor
So, how does one tell if an image is "embedded"?

I have the icon in the "About" tab set to
<img src='assets/images/logo2.png'/>
.

I have to manually copy the file to the releasebuild folder after I clean/build.

I also have to manually copy the w_close.png file fairly often, but not always.......

R_
0 Kudos
RobertScheitlin__GISP
MVP Emeritus
Rhett,

   Simply search your project for that assets name and see if at ny point you use it in an embed statement.
0 Kudos
RhettZufelt
MVP Notable Contributor
Guess I don't quite understand why/when one would want to embed an image vs sourcing it.   Do some of the images have to be embedded or could one make the changes below without causing issues (on any widget embed statement)?

from:

source="@Embed(source='assets/viewer/i_save.png')"

To:
source="(source='assets/images/i_save.png')"

I find that I am constantly having to recopy the w_close.png i_save.png after some cleans or builds.

Thanks,

R_

PS, any idea where the bookmark.mxml is looking for the i_save.png?
this is the line of code
wTemplate.addTitlebarButton(WIDGET_URL + "i_save.png", saveLabel, saveGraLay,false);
but there is no path, and it doesn't seem to matter where I put it now, it will not show.  Was working fine until I did a clean.
0 Kudos
RobertScheitlin__GISP
MVP Emeritus
Rhett,

    There are a couple of scenarios where an assets has to be embedded but most of the time it is not necessary.

wTemplate.addTitlebarButton(WIDGET_URL + "i_save.png", saveLabel, saveGraLay,false);
This line of code looks like it comes from the eDrawWidget.mxml and not the BookMarkWidget.mxml. But you need to look for the WIDGET_URL var and see what the string is set to.
0 Kudos
RhettZufelt
MVP Notable Contributor
Of course, didn't even see the + sign as a concatenate, guess I just blended it into the commas and saw it as a parameter 🙂

Since you said it looked like eDraw code, I looked again, and it is from my Bookmarkwidget.mxml.  However, I noticed that it IS the code from the eDraw widget.  For some reason, some how the entire code of the bookmark widget got replaced with the code from eDraw???????

This also explains my missing bookmarks icons.....

R_
0 Kudos