Disabled

From Frontal Wiki

Jump to: navigation, search

Contents

Purpose

This style determines whether or not an element is enabled.


Value

The disabled style accepts boolean values true (disabled) or false (enabled). The default value is false.

disabled: false;


Remarks

The disabled style causes the Frontal element's "enabled" property to be set appropriately.

When a visual element is disabled, then Flash events that trigger interactions are captured and discarded before they can have any effect.

Setting this style may in turn cause the element to match style sheet selectors that use the ":disabled" pseudo class.


Example

<style><![CDATA[
    #square
        {
			width: 30px;
			height: 30px;
			margin: 4px;
			background-color: red;
            @onMouseDown
                {
                    sS ( "background-color", "blue" );
                }
            @onMouseUpAnywhere
                {
                    sS ( "background-color", "red" );
                }
        }
    #square:disabled
        {
            @onMouseDown { }
            @onMouseUpAnywhere { }
		}
	input[type=checkbox]
		{
			@onClickRaw
			{
				gE ( "square" ).sS ( "disabled", value );
			}
		}
]]></style>
<div id="square" />
<input type="checkbox"><![CDATA[disabled]]></input>


Can Be Applied To

This style can be applied to any visual element:

Personal tools
Get Adobe Flash player