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