Of course. I know better. ;)

The component appears within a VBox. It is a Custom view in my
application.

--
<mx:CustomComponentCanvas
id="myCanvas"
backgroundImage="Embed(source='/assets/images/elements/background.png')"/>
--

I have tried doing it through the external CSS as well as follows:
--
(MXML Code)
<mx:CustomComponentCanvas
id="myCanvas"
styleName="bgCanvas" />

(Within the style sheet)
.bgCanvas{
backgroundImage: @Embed(source='/assets/images/elements/background.png')
}
--

The element does appear within design view, but fails to appear when
the SWF is compiled and run.

Other points to note, it is a transparent PNG I am attempting to
embed. I have tried 8, 24, and 32 bit to no avail.

Thanks for the help.




Reply via email to