Select to view content in your preferred language

Export Release Build: No longer including all asset (images)

949
5
08-20-2012 10:20 AM
DanielJohns
Frequent Contributor
The 'Export Release Build' has started to omit certain images from the build (15 total out of 240). I've been making some changes (adding new widgets and modifying code). I'm not sure if I've accidentally changed something.

The easy one to catch is the 'i_table.png'. It worked fine up until last week, now I have to copy it into the folder. I've looked at the options dialog and confirmed the 'copy non-embedded files to output folder' option is checked.

Any suggestions?

Thank you,
Daniel
Tags (2)
0 Kudos
5 Replies
MLowry
by
Frequent Contributor
I actually had this exact problem, even missing the i_table.png as well. No idea how, but it fixed itself after many clean and builds over a few days. Sorry I couldn't help more, but try a clean, and restart your machine, and build again.
0 Kudos
DanielJohns
Frequent Contributor
Thanks. I tried it, but had no success. I'll continue those steps and see if will eventually work.
0 Kudos
AnthonyGiles
Honored Contributor
Daniel,


If anywhere in your code you have embedded a particular image then the Flex Builder will not export out that image to the bin-release folder as for some reason the application thinks that it does not need to. I would not worry about changing your code to try and resolve the problem all you need to do is manually add those missing images to the bin-release folder.

Regards

Anthony
0 Kudos
IvanBespalov
Frequent Contributor
Embedding asset types (Adobe)

I think, the problem is "the same asset is embedded in one place and just referenced by URL in another". Just make all assets embedded.

1 - used in 2 places + not embedded -> exists in bin-release
<?xml version="1.0" encoding="utf-8"?>
<s:Application xmlns:fx="http://ns.adobe.com/mxml/2009" 
      xmlns:s="library://ns.adobe.com/flex/spark" 
      xmlns:mx="library://ns.adobe.com/flex/mx">
 <s:layout>
  <s:VerticalLayout />
 </s:layout>
 <s:Image source="assets/images/i_bookmark.png" />
 <!--<s:Image source="@Embed(source='assets/images/i_bookmark.png')" />-->
 <s:Button label="Bookmark"
     icon="assets/images/i_bookmark.png" />
 <!--<s:Button label="Bookmark"
     icon="@Embed(source='assets/images/i_bookmark.png')" />-->
</s:Application>

2 - used in 2 places + embedded -> exists in bin-release
<?xml version="1.0" encoding="utf-8"?>
<s:Application xmlns:fx="http://ns.adobe.com/mxml/2009" 
      xmlns:s="library://ns.adobe.com/flex/spark" 
      xmlns:mx="library://ns.adobe.com/flex/mx">
 <s:layout>
  <s:VerticalLayout />
 </s:layout>
 <!--<s:Image source="assets/images/i_bookmark.png" />-->
 <s:Image source="@Embed(source='assets/images/i_bookmark.png')" />
 <!--<s:Button label="Bookmark"
     icon="assets/images/i_bookmark.png" />-->
 <s:Button label="Bookmark"
     icon="@Embed(source='assets/images/i_bookmark.png')" />
</s:Application>

3 - used in 2 places + embedded & not embedded -> NOT exists in bin-release
<?xml version="1.0" encoding="utf-8"?>
<s:Application xmlns:fx="http://ns.adobe.com/mxml/2009" 
      xmlns:s="library://ns.adobe.com/flex/spark" 
      xmlns:mx="library://ns.adobe.com/flex/mx">
 <s:layout>
  <s:VerticalLayout />
 </s:layout>
 <s:Image source="assets/images/i_bookmark.png" />
 <!--<s:Image source="@Embed(source='assets/images/i_bookmark.png')" />-->
 <!--<s:Button label="Bookmark"
     icon="assets/images/i_bookmark.png" />-->
 <s:Button label="Bookmark"
     icon="@Embed(source='assets/images/i_bookmark.png')" />
</s:Application>


[/HR]

... for some reason the application thinks that it does not need to ...

Hmm :rolleyes: Application thinks? Much simpler. Flex compiler. It does not think, but it is configurable.
Advanced developers, can extend compiler using FLEX 4 Compiler API, FLEX 3 Compiler API
0 Kudos
MLowry
by
Frequent Contributor
Wow nice info. Ivan! Thanks! +1 Voted.
0 Kudos