////////////////////////////////////////////////////////////////////////////////
//
// Licensed to the Apache Software Foundation (ASF) under one or more
// contributor license agreements. See the NOTICE file distributed with
// this work for additional information regarding copyright ownership.
// The ASF licenses this file to You under the Apache License, Version 2.0
// (the "License"); you may not use this file except in compliance with
// the License. You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
//
////////////////////////////////////////////////////////////////////////////////
/**
* Alpha level of the color defined by the backgroundColor
* property, of the image or SWF file defined by the backgroundImage
* style.
* Valid values range from 0.0 to 1.0. For most controls, the default value is 1.0,
* but for ToolTip controls, the default value is 0.95 and for Alert controls, the default value is 0.9.
*
* @default 1.0
*
* @langversion 3.0
* @playerversion Flash 9
* @playerversion AIR 1.1
* @productversion Flex 3
*/
[Style(name="backgroundAlpha", type="Number", inherit="no", theme="halo, spark, mobile")]
/**
* Background color of a component.
* You can have both a backgroundColor
and a
* backgroundImage
set.
* Some components do not have a background.
* The DataGrid control ignores this style.
* The default value is undefined
, which means it is not set.
* If both this style and the backgroundImage
style
* are undefined
, the component has a transparent background.
*
*
For the Application container, this style specifies the background color * while the application loads, and a background gradient while it is running. * Flex calculates the gradient pattern between a color slightly darker than * the specified color, and a color slightly lighter than the specified color.
* *The default skins of most Flex controls are partially transparent. As a result, the background color of
* a container partially "bleeds through" to controls that are in that container. You can avoid this by setting the
* alpha values of the control's fillAlphas
property to 1, as the following example shows:
*
* <mx:Container backgroundColor="0x66CC66"/> * <mx:ControlName ... fillAlphas="[1,1]"/> * </mx:Container>* * * @langversion 3.0 * @playerversion Flash 9 * @playerversion AIR 1.1 * @productversion Flex 3 */ [Style(name="backgroundColor", type="uint", format="Color", inherit="no", theme="halo, spark, mobile")]