Solution
One of the Flex projects that I manage for a company uses maven build environment. I added couple of icon images to the assets folder so that it can be used in the code using @Embed notation. The code compiled and work fine on my Macbook pro, however failed to build on the Hudson (now Jenkins) build server. After digging through many online rat holes, I finally figured out the problem was a missing "/" in the begining of the url.
Bad URL
<mx:Style>
#previousButton {
skin: Embed(source="assets/icon/up_22x22.png");
disabled-skin: Embed(source="assets/icon/up_disabled_22x22.png");
}
#nextButton {
skin: Embed(source="assets/icon/down_22x22.png");
disabled-skin: Embed(source="assets/icon/down_disabled_22x22.png");
}
</mx:Style>
Correct URL
<mx:Style>
#previousButton {
skin: Embed(source="/assets/icon/up_22x22.png");
disabled-skin: Embed(source="/assets/icon/up_disabled_22x22.png");
}
#nextButton {
skin: Embed(source="/assets/icon/down_22x22.png");
disabled-skin: Embed(source="/assets/icon/down_disabled_22x22.png");
}
</mx:Style>