Using Background Image with Spark BorderContainer
Very simple example shows how to use Background Image with Spark Container
<?xml version="1.0" encoding="utf-8"?>
<s:Application xmlns:fx="http://ns.adobe.com/mxml/2009"
xmlns:mx="library://ns.adobe.com/flex/mx"
xmlns:s="library://ns.adobe.com/flex/spark">
<fx:Script>
<![CDATA[
[Bindable]
[Embed(source="sampleImage.jpg")]
public var ImageSample:Class;
]]>
</fx:Script>
<s:BorderContainer
backgroundImage="{ImageSample}"
width="100%" height="100%">
</s:BorderContainer>
</s:Application>
Tags: backgroundImage, BorderContainer, Spark
Hi, Stranger! Leave Your Comment...