Spark container is define in the spark.components package. The application container is the first container of the spark components. Basically it is layout container. you can start adding the contents without using another container or adding another containers in your application. The tag for the spark application container is <s:Application/> for use spark application container. Application container is the default container for the application. User can set size of that application container using width and height in pixel or percentage values. You can set proreties backgroundColor, backgroundImage, backgroundSize, horizontalAlign, padding for the application container.
<?xml version="1.0" encoding="utf-8"?>
xmlns:mx="library://ns.adobe.com/flex/mx" backgroundColor="0x000000"> <s:Button label="Submit" id="Sbutton"/>
In this example you can see how to use Spark application container in flex application. And how to set property for that container.
To view this page ensure that Adobe Flash Player version 10.0.0 or greater is installed.
Posted on: April 24, 2010 If you enjoyed this post then why not add us on Google+? Add us to your Circles