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.
If you are facing any programming issue, such as compilation errors or not able to find the code you are looking for.
Ask your questions, our development team will try to give answers to your questions.